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
1
vote
3 answers

Is there a directed version of the Earth movers distance

I currently have a problem, where I want to compare two 1D distributions. I my case I am trying to find how much I have to move one of the distribution to turn it into another, so I would use the earth movers distance for comparison. However I am…
LiKao
  • 10,408
  • 6
  • 53
  • 91
0
votes
1 answer

Converting string values to their metric equivalents in actionscript?

Can anyone suggest the best approach for metric conversion of string values? for instance distance values,and temperatures For instance say I have a string containing some unknown inches value And the inches sign can either be the proper double…
Bachalo
  • 6,965
  • 27
  • 95
  • 189
0
votes
1 answer

Facebook insights domain_widget_likes -> lifetime don't return results?

I'm doing a query to get the total likes for a domain and I am using the following: https://api.facebook.com/method/fql.query?query=SELECT metric, value FROM insights WHERE object_id=xxxxxxxxx AND metric='domain_widget_likes' AND…
Talu
  • 185
  • 2
  • 7
0
votes
1 answer

Matching Based on Arbitrary Categories and Similarity Measures

I have customer database who have certain attributes, and a customer type. The collection of attributes can vary (they do come from a finite set though), and when I look at a new customer with unknown type, with given attributes, I would like to…
BBSysDyn
  • 4,389
  • 8
  • 48
  • 63
0
votes
1 answer

Proving the edit distance between graphs with no edges is a metric

The problem is finding the minimum edit distance between two graphs with no edges, considering there might be different costs for adding, removing or replacing vertices. I was told this distance is a metric, and there is a easy way to prove it. Is…
0
votes
1 answer

"Distance" between data variable in PHP

Is there any way (using libraries if necesary) to normalize any PHP variable (integer, strings, files, bytarray, etc etc), so this data can be measure by distance among them? With distance I mean, a F("hello") should be close to a…
voskys
  • 121
  • 1
  • 9
0
votes
1 answer

Keras metric produces unexpected values

With some help from a previous question I devised the following implementation of IoU: def iou(y_pred_batch, y_true_batch): intersection = tf.zeros(()) union = tf.zeros(()) y_pred_batch = np.argmax(y_pred_batch, axis=-1) y_true_batch…
Kroshtan
  • 637
  • 5
  • 17
0
votes
1 answer

Portfolio Performance Attribution Metrics

I would like to incorporate a particular performance metric into my portfolio managing software. This metric should be one where I can measure "how much of the potential gains from the selected assets have been captured by the selected portfolio…
mka
  • 53
  • 5
0
votes
0 answers

Microstrategy selector metric

I have made a metric selector to visualize on a board, using an attribute with the name of the metrics and a metric with a 'case', the selector works fine, but the values are unformatted, some idea of how to format them? The number format does not…
macsee
  • 1
  • 2
0
votes
1 answer

Assign strings with integer values when order matters for clustering

I have a network with many computer names. I would like to assign for each computer name an int value so I can cluster computer names that have close int values. Computer names within the same cluster should be computers which share the same prefix…
Yuri
  • 1
0
votes
1 answer

Create RMSLE metric in caret in r

Could someone please help me with the following: I need to change my xgboost training model with caret package to an undefault metric RMSLE. By default caret and xgboost train and measure in RMSE. Here are the lines of code: create custom summary…
Danil
  • 99
  • 1
  • 5
0
votes
2 answers

Microstrategy - creating a simple percentage column

I have a metric that shows sum(Widgets). I want to find out the number of Widgets that were faulty, so I created another metric with that. I now want to find the % faulty from total, and have created a widget for the % calculation, however it will…
Andrew
  • 1,728
  • 8
  • 28
  • 39
0
votes
2 answers

which distance function between two different variables?

What is the best metric to calculate the distance between two objects? The objects are represented by four paremeters (two same variables before and after a procedure). The goal is to assign data points as pairs among the whole set. Additionally …
Ben
  • 1,432
  • 4
  • 20
  • 43
0
votes
1 answer

Google Analytics Custom Metrics not showing up

I want to push the products profit of a transaction to Google Analytics. With this i want to generate a report where i can see the total Product revenue and it's profit for each product that has been ordered. i'm using this api to push custom…
Marco
  • 21
  • 2
0
votes
1 answer

Grafana / Graphite - the time metric was in some state

I have metric "monitor.status" with values 0 and 1. 0 indicating service down state and 1 - up state. I'd like to render downtime period in seconds in Single stat panel. How to get the time metric was in 0 state and render it? Example: Value -…
Alex.Sh
  • 123
  • 1
  • 2
  • 7
1 2 3
8 9