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.

136 questions
5
votes
0 answers

Sklearn KNeighborsRegressor custom distance metrics

I am using KNeighborsRegressor, but I would like to use it with custom distance function. My training set is pandas DataFrame which looks like: week_day hour minute temp humidity 0 1 9 0 1 1 1 9 0 …
5
votes
2 answers

Shrew Soft VPN Client: Route Metric

After connecting to the business network I have no internet access. route print shows: IPv4 Route Table =========================================================================== Active Routes: Network Destination Netmask Gateway …
Manuel
  • 161
  • 2
  • 9
4
votes
1 answer

Mean Average Precision for Multi-Label Multi-Class Data

I am trying to write a code for computing the Mean Average Precision (MAP) for multi-label data. To give a more intuitive understanding kindly please look below I have written the code for the MAP computation in MATLAB but it is quite slow.…
roni
  • 1,384
  • 3
  • 26
  • 48
4
votes
2 answers

Stackdriver Dashboard - Cannot save a dashboard with a custom log-based metric

I have created a log-based metric for some log messages generated by a Dataflow Job. The filter on which this metric is based is behaving correctly (the expected data is displayed in the logs viewer when using this filter). I am trying to create a…
4
votes
1 answer

Jmeter Body of PUT request Bytes throughput Over Time

My goal is to get Bytes throughput Over Time metric more accurate. General sense of my load test: Load files with a GET HTTP request from localhost, save content of files as different variables like ContentVar. Start PUT loop. Place ${ContentVar}…
3
votes
2 answers

Keras predict gives different error than evaluate, loss different from metrics

I have the following problem: I have an autoencoder in Keras, and train it for a few epochs. The training overview shows a validation MAE of 0.0422 and an MSE of 0.0024. However, if I then call network.predict and manually calculate the validation…
JJ Willems
  • 61
  • 6
3
votes
1 answer

pheatmap default distance metric R

I need to make a heatmap with the function 'pheatmap', using UPGMA and 1-pearson correlation as distance metric. My professor claims this is the default distance metric, although in my case it uses 'Euclidian' as distance metric. Is euclidian and 1…
Sam Vanbergen
  • 115
  • 1
  • 10
3
votes
0 answers

How to create a custom metric in TfLearn or TensorFlow?

TensorFlow offers many common evaluation metrics, but I don't know how to create my own metric. I'm building a CNN model based on AlexNet for grasp detection and I want to use the rectangle metric when evaluating the data (like in this paper:…
3
votes
2 answers

Why do we use metric learning when we can classify

So far, I have read some highly cited metric learning papers. The general idea of such papers is to learn a mapping such that mapped data points with same label lie close to each other and far from samples of other classes. To evaluate such…
Sepehr
  • 31
  • 1
3
votes
1 answer

PAPI: what does Clock reference cycles mean?

i am using PAPI liberary to tune and profile my application. I want to know what (PAPI_REF_CYC : Reference clock cycles ) means actually? Thanks in advance,
abdul
  • 45
  • 5
3
votes
0 answers

Memory usage metric identifier Google Compute Engine

I have installed the monitoring agent in my instance group disk. I need to autoscale instances based on memory usage, however when I am going to configure the target metric in GCE web console I miss the memory usage metric identifier. Which is the…
lmove
  • 317
  • 3
  • 11
3
votes
3 answers

what is the fastest way to get performance metrics of all spring services?

what is the fastest way to get performance metrics of all spring services?
egervari
  • 21,108
  • 30
  • 115
  • 171
3
votes
0 answers

Dropwizard/Jersey custom method annotation for Metric purpose

Does anyone knows how to create a custom annotation, what measures for example the amount of incoming String array parameters? Something like this: @POST @Timed @ExceptionMetered @MeasureArray public Response postJob(String[] array) { …
user3280180
  • 1,373
  • 1
  • 10
  • 26
3
votes
0 answers

Fast rdist replacement in R accepting custom distance metric

I have to calculate the pairwise distances of two-dimensional points. These points are stored in a matrix, the first column containing the x values, the second column the y values. The distance function I need is not the euclidean metric though, but…
z80crew
  • 1,012
  • 1
  • 10
  • 17
3
votes
0 answers

Lévy distance between two empirical CDFs using R

I'm trying to measure the distance between two empirical CDFs generated by the same random variable but with different parameters. In order to do this, I would like to use the Lévy distance given by: Latex: $L(F,G):=\inf\{\varepsilon…
1
2
3
9 10