Questions tagged [metrics]

Software metrics are quantitative data related to software.

A software metric is an objective and reproducible quantitative measure of some property of the product, its source code, its specification, or the development process that was applied. These can refer to development time metrics such as or runtime metrics such as .

Although the generic term "metrics" is usually used to refer to the latter especially in server-side development. For further information about metrics and their importance in modern software development you can read the seminal work Measure Anything Measure Everything by Ian Malpass.

This tag should be applied to general questions about metrics or questions that span multiple metrics types or implementations or if your are not sure which specific tag applies. For questions specific to a particular metric system more specific tags such as ,, and so forth.

2802 questions
8
votes
2 answers

Are there frameworks available to track user activity?

Before I start writing my own custom classes, I was wondering if there was a framework already out there to use. This is for a Winform/WPF application. I will be storing things such as battery levels, WiFi strength, hard drive info, RAM info, etc.…
ABR
  • 175
  • 8
8
votes
4 answers

StatHG is non-existent

In the CVS/SVN world, there are various statistics/metrics tools. E.G., StatCVS, StatSVN. There are others I've seen. However, I've not seen similar statistics and visualizations for Mercurial(aka hg). (1) Are there any out there? (2) If so, what…
Paul Nathan
  • 39,638
  • 28
  • 112
  • 212
8
votes
3 answers

YOLOv8 dfl_loss metric

I was wondering how to interpret different losses in the YOLOv8 model. I've easily found explanations about the box_loss and the cls_loss. About the dfl_loss I don't find any information on the Internet. I've also checked the YOLOv8 Docs. I've found…
caro.mss
  • 81
  • 1
  • 3
8
votes
4 answers

OCR: weighted Levenshtein distance

I'm trying to create an optical character recognition system with the dictionary. In fact I don't have an implemented dictionary yet=) I've heard that there are simple metrics based on Levenstein distance which take in account different distance…
leshka
  • 1,764
  • 6
  • 32
  • 42
8
votes
5 answers

Balanced Accuracy Score in Tensorflow

I am implementing a CNN for an highly unbalanced classification problem and I would like to implement custum metrics in tensorflow to use the Select Best Model callback. Specifically I would like to implement the balanced accuracy score, which is…
8
votes
2 answers

Micrometer metrics with spring java (NO spring boot)

I'm fresh new to Micrometer/Prometheus world. I need to use it to get some metrics for existing spring application. No spring boot just plain spring java. And I'm having a lot of trouble registering e.g. MeterRegistry in order to implement Counters…
Nemanja Pavlovic
  • 81
  • 1
  • 1
  • 2
8
votes
1 answer

How get difference between 2 different prometheus metrics?

Consider metric examples: increase(application_executor_recordsWritten[20m]) increase(kafka_server_brokertopicmetrics_messagesin_total{topic="my_topic"}[20m]) If I execute those metrics separate on prometheus graph - everything works. But when try…
Cherry
  • 31,309
  • 66
  • 224
  • 364
8
votes
1 answer

Why is my implementations of the log-loss (or cross-entropy) not producing the same results?

I was reading up on log-loss and cross-entropy, and it seems like there are 2 approaches for calculating it, based on the following equations. The first one is the following. import numpy as np from sklearn.metrics import log_loss def…
Vikash Singh
  • 13,213
  • 8
  • 40
  • 70
8
votes
1 answer

How To Calculate F1-Score For Multilabel Classification?

I try to calculate the f1_score but I get some warnings for some cases when I use the sklearn f1_score method. I have a multilabel 5 classes problem for a prediction. import numpy as np from sklearn.metrics import f1_score y_true =…
8
votes
1 answer

Grafana: custom legend values?

Does anybody knows if it's possible to define custom legend values in Grafana? From the documentation, there are a few possible functions: Legend Values Additional values can be shown along-side the legend names: Total - Sum of all values returned…
Carmellose
  • 4,815
  • 10
  • 38
  • 56
8
votes
2 answers

Are Dropwizard Counter and Meter count the same?

I would like to know whether there is a difference between the "Counter" and the count maintained by the "Meter" class? I understand the Meter measures rates too, but I am curious to know whether if there were a counter and a meter…
Seagull
  • 2,219
  • 6
  • 25
  • 33
8
votes
3 answers

Spark Streaming Processing Time vs Total Delay vs Processing Delay

I am trying to understand what the different metrics that Spark Streaming outputs mean and I am slightly confused what is the difference between the Processing Time, Total Delay and Processing Delay of the last batch ? I have looked at the Spark…
Zak
  • 85
  • 1
  • 5
8
votes
3 answers

Is there any automated metrics collector for my Java project?

I'm trying to collect software code metrics in my Java project on every cycle of continuous integration. I'm interested mostly in size-related metrics like number of classes, number of methods, function points, lines of code, etc. I would like to…
yegor256
  • 102,010
  • 123
  • 446
  • 597
8
votes
3 answers

Spring Boot Actuator to Give CPU Usage

I would like to know is there a way to get the CPU Usage metrics with Spring Boot Actuator? Im able to see other metrics with /metrics and /health endpoints but not getting the CPU Usage. I want to avoid writing an extra class just to see the CPU…
user2340345
  • 793
  • 4
  • 16
  • 38
8
votes
2 answers

Modify scale of Datadog metric

I have a time series presenting time values like this one: I want to change the y-axis to represent hours instead of milliseconds, i.e. divide by 3600. Any idea how to do it?
tashuhka
  • 5,028
  • 4
  • 45
  • 64