Questions tagged [metric]

Quoting Wikipedia:

In mathematics, a metric or distance function is a function that defines a distance between each pair of elements of a set. A set with a metric is called a metric space. A metric induces a topology on a set, but not all topologies can be generated by a metric. A topological space whose topology can be described by a metric is called metrizable.

is used in any kind of question related to compute, define, choose a metric, and such.

134 questions
0
votes
1 answer

Can not profile a cuda code with nvprof when using CUPTI functions inside

I'm doing a simple experiment. Everyone may know about callback_metric sample code of CUPTI (located in CUPTI folder: /usr/local/cuda/extras/CUPTI/sample/callback_metric). It contains only a simple code for reading a metric when running a vectorAdd…
0
votes
0 answers

Results of custom top K accuracy differ from Keras top_k_categorical_accuracy

I am using my own top K accuracy metric for multi label classification: def top_K_acc(y_true, y_pred, k): assert y_true.shape == y_pred.shape top_k_indx = np.argsort(y_pred, axis=1)[:,::-1][:,:k] n_guessed = 0 for i in…
0x1337
  • 1,074
  • 1
  • 14
  • 33
0
votes
0 answers

How can create a auto report in to Google Sheet with the metrics is an Event Label?

How can create a auto report in to Google Sheet with the metrics is an Event Label?
0
votes
1 answer

How to add a new metric in Lenskit 3.0?

I'm a student using Lenskit and I would like to implement the Intra-List similarity metric for my project. How can I implement the new TopN-metric from scratch? I'm not used to working with Gradle/Java, Implementing my own re-ranking algorithm was…
Diederik
  • 79
  • 1
  • 12
0
votes
1 answer

change sklearn metrics module python

After downloading sklearn package I've add the purity metric to sklearn metric module by adding it to supervised.py and init.py in cluster folder and init.py in metrics folder just the same as other metrics that are already in module. But after…
user3243416
  • 31
  • 1
  • 6
0
votes
1 answer

Changing Kademlia Metric - Unidirectional Property Importance

Kademlia uses XOR metric. Among other things, this has so called "unidirectional" property (= for any given point x and distance e>0, there is exactly one point y such that d(x,y)=e). First question is a general question: Is this property of the…
Wapac
  • 4,058
  • 2
  • 20
  • 33
0
votes
1 answer

MIB_IPFORWARDROW metric(s) vs. ROUTE's

In the Windows command line, the 'ROUTE PRINT' command yields a tabular list of entries, with a single column labeled 'Metric'. In the Windows Platform SDK, you can fetch the same values (more or less) via the API, through the structure…
Android Eve
  • 14,864
  • 26
  • 71
  • 96
0
votes
1 answer

Custom Metrics in ambari

Is there a way we can monitor bolt specific metrics in ambari? Here is what i have tried. I was able to publish a sample metric with the help…
user2147688
  • 95
  • 1
  • 9
0
votes
1 answer

SQL Service Level Query

I am teaching myself SQL and came across this service level question and was stumped. I was hoping for some assistance on it. I am given a table with three fields. TicketNumber (Number) ex. 53055 CreatedAt (timestamp field) ex 2015-09-16…
dnasim
  • 15
  • 3
0
votes
1 answer

What image metrics to use for selecting pictures for thumbnails?

I would like to automate process of creating thumbnails / contact sheets for videos. They are usually m x n matrixes of pictures, eg 6x11 or 8x12 etc. Randomly selected pictures are sometimes bad quality: contains movement (blurry image), camera…
Konstantin
  • 2,983
  • 3
  • 33
  • 55
0
votes
0 answers

how to interpret the distance values (> 1) in the output of fcluster with metric=cosine in Python

I am trying to do hierarchical clustering in Python over a collection of documents. I used scipy.cluster.hierarchy with method=average and metric=cosine as bellow: distMatrix = pairwise_distances(X_normalized, metric='cosine') L =…
Nima
  • 71
  • 1
  • 4
0
votes
3 answers

Is there a metric to evaluate similarity between two objects, based on their attributes?

Suppose I have an object X with a set of 10 features: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]. Then, I have two more objects: A : [2, 2, 2, 2, 2, 2, 2, 2, 2, 2] B : [0, 0, 0, 0, 0, 0, 0, 0, 0, 20] I need to know which from A or B is "closer" to X. The idea…
Delgan
  • 18,571
  • 11
  • 90
  • 141
0
votes
1 answer

Working with BigIntegers

I creating a program where it takes a base unit in the metric system. (Say grams.) And then when you select a prefix changes it to the equivalent amount. (Such as 1000 grams when you select Kilo would change it to 1 Kilogram.) Problem is when I run…
dpolaristar
  • 69
  • 1
  • 8
0
votes
1 answer

Why does KernelDensity.score_samples compute the distance on each node?

I'm using a KD-estimation with a custom metric. The metric is obviously slower than the builtin euclidean distance, but works fine. When doing kde=KernelDensity(...) kde.fit(X) I get results in a reasonable amount of time. When I then…
user4720834
0
votes
1 answer

Microstrategy multiple filtered metrics based on same attribute

I have an attribute called vehicle type and I want to create two filtered metrics based on this attribute. so I created two metric that gets count of vehicle and applied filter vehicle type = bus and vehicle type = car on the other one. on my report…
Mo T
  • 440
  • 2
  • 9
  • 30
1 2 3
8 9