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
1 answer

Keras: handling batch size dimension for custom pearson correlation metric

I want to create a custom metric for pearson correlation as defined here I'm not sure how exactly to apply it to batches of y_pred and y_true What I did: def pearson_correlation_f(y_true, y_pred): y_true,_ = tf.split(y_true[:,1:],2,axis=1) …
user3142067
  • 1,222
  • 3
  • 13
  • 26
1
vote
2 answers

How to create sub-count column by term in Kibana datatable

I am try to customize the data table from the data in Elasticsearch. Suppose I got a field "Department" which can be "Dept A" or "Dept B" or "Dept C" etc... But I can only show the total count of all the records instead of getting sub-total value by…
bill
  • 101
  • 2
  • 9
1
vote
1 answer

I want to get a metrics from host and jmx port through java

I got the metrics from JMX port by using the Nagios agent through curl command here is the syntax. curl -s -X POST http://${hostname}:${agentport}/p1/kdc/monitor -d " {\"hostname\": \"${hostname}\", \"port\": \"${jmxport}\", \"metric\":…
1
vote
1 answer

Using a custom metric with sklearn.neighbors.BallTree gives wrong input?

I'm trying to use a custom metric with sklearn.neighbors.BallTree, but when it calls my metric the inputs do not look correct. If I use scipy.spatial.distance.pdist with the same custom metric, it works as expected. However, if I try to instantiate…
drschwar
  • 21
  • 3
1
vote
0 answers

Apache Storm 0.10.0 : Could not get my custom metrics every timeBucketSizeInSecs

I register my custom metrics in my bolt, code like this, context.registerMetric("et", _executedTuple, 2), this code just count the number of tuples the bolt emitted, and I register metricconsumer in my topology. But I just get the executedTuple…
Aimiyoo
  • 23
  • 3
1
vote
0 answers

Facebook API Metric - how to get: total photo views, comments, share and link click

i am trying to get some data via Facebook API. Currently i can get: organic impression (Metric: page_impressions_organic) organic paid impression (Metric: page_impressions_paid) total likes (Metric: page_fans) total video views (Metric:…
A. Janik
  • 49
  • 1
  • 4
1
vote
3 answers

Configuring DropWizard Programmatically

I have essentially the same question as here but am hoping to get a less vague, more informative answer. I'm looking for a way to configure DropWizard programmatically, or at the very least, to be able to tweak configs at runtime. Specifically I…
smeeb
  • 27,777
  • 57
  • 250
  • 447
1
vote
1 answer

Errors using distance metric in MATLAB

My test feature vector is 'testpg' and trained feature vector is 'trainpg' and both are of dimension 2000*1 .I am aiming to find the distance between the two histogram feature vectors and hence i do distance = norm(trainpg-testpg) Next I compare…
shr m
  • 27
  • 1
1
vote
0 answers

Using a filter on a dimension/metric in Google Analytics embedded api code

var dataChart = new gapi.analytics.googleCharts.DataChart({ query: { metrics: 'ga:pageviews', dimensions: 'ga:pageTitle', filters: 'ga:pageTitle =~ %5ELecture\s.*', 'start-date': '30daysAgo', 'end-date':…
1
vote
1 answer

How to use sklearn's DBSCAN with a spherical metric?

I have a set of data distributed on a sphere and I am trying to understand what metrics must be given to the function DBSCAN distributed by scikit-learn. It cannot be the Euclidean metrics, because the metric the points are distributed with is not…
1
vote
0 answers

Plot-Title whith several expressions was fine, but doesn't work anymore

I once asked the following question on stackoverflow: Old Question to ask for plot-title with several expressions in a row The following answer worked fine for me: title1 <- bquote(atop("Berechnete über gemessener Wellenanlaufrichtung für", …
Nzuri
  • 61
  • 2
1
vote
1 answer

Can we add variable number of tags in graphite?

How easy it is to add new tags in graphite? For example Suppose I am adding data to one metric like this. count.chrome 12 time count.ie 10 time Now I add new tag in graphite metric like this count.chrome.host1 10 time count.chrome.host2 11…
Sameer Shah
  • 123
  • 1
  • 9
1
vote
1 answer

New Relic customizable board

I would like to have couple of different graphs on one page in NewRelic (i.e. App server response time for two different apps)... Is this possible via some kind of customizable New Relics board where I can add graphs that I want?
rastko
  • 567
  • 9
  • 24
1
vote
1 answer

How to quantify system performance values into a single performance value

I have a project where I have multiple nodes in a grid that are operating as storage and compute nodes. These nodes are heterogeneous ranging from dedicated server hardware to alix boards and even Mikrotik routerboards running OpenWRT(consisting of…
tensai
  • 1,628
  • 3
  • 17
  • 22
1
vote
5 answers

Simple matching similarity matrix for continuous, non-binary data?

Given the matrix structure(list(X1 = c(1L, 2L, 3L, 4L, 2L, 5L), X2 = c(2L, 3L, 4L, 5L, 3L, 6L), X3 = c(3L, 4L, 4L, 5L, 3L, 2L), X4 = c(2L, 4L, 6L, 5L, 3L, 8L), X5 = c(1L, 3L, 2L, 4L, 6L, 4L)), .Names = c("X1", "X2", "X3", "X4", "X5"), class =…
Werner Hertzog
  • 2,002
  • 3
  • 24
  • 36
1 2 3
8 9