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
29
votes
4 answers

Accessing validation data within a custom callback

I'm fitting a train_generator and by means of a custom callback I want to compute custom metrics on my validation_generator. How can I access params validation_steps and validation_data within a custom callback? It’s not in self.params, can’t find…
w00dy
  • 748
  • 1
  • 6
  • 23
29
votes
2 answers

What do minute rates of Timer and Meter metrics indicate?

We are trying to achieve reporting functionality based on information from Yammer metrics. Yammer metrics provides information about Timers and Meters as shown below: METER_METRIC: count = 1 mean rate = 0.01 count/s …
ravikumar
  • 893
  • 1
  • 8
  • 12
27
votes
26 answers

What are the most useful software development metrics?

I would like to track metrics that can be used to improve my team’s software development process, improve time estimates, and detect special case variations that need to be addressed during the project execution. Please limit each answer to a single…
kchad
  • 279
  • 1
  • 3
  • 7
26
votes
3 answers

Mixpanel anonymous user converts to identified user tracking

I'm adding Mixpanel to my web application and I'm curious about the "process" around what happens when a user transitions from "anonymous" (not logged in/registered) to "identified" (when they register / create an account on the site). If a user…
Jim Rubenstein
  • 6,836
  • 4
  • 36
  • 54
25
votes
7 answers

Is there a way to have a moving average in Grafana?

I didn't find a 'moving average' feature and I'm wondering if there's a workaround. I'm using influxdb as the backend.
bbigras
  • 1,311
  • 2
  • 17
  • 32
25
votes
27 answers

What code metric(s) convince you that provided code is "crappy"?

Code lines per file, methods per class, cyclomatic complexity and so on. Developers resist and workaround most if not all of them! There is a good Joel article on it (no time to find it now). What code metric(s) you recommend for use to…
Dandikas
  • 2,426
  • 2
  • 24
  • 32
24
votes
2 answers

What is the maximum depth of HTML documents in practice?

I want to allow embedding of HTML but avoid DoS due to deeply nested HTML documents that crash some browsers. I'd like to be able to accommodate 99.9% of documents, but reject those that nest too deeply. Two closely related question: What document…
Mike Samuel
  • 118,113
  • 30
  • 216
  • 245
23
votes
4 answers

How to monitor disk usage of persistent volumes?

I want to monitor disk usages of persistent volumes in the cluster. I am using CoreOS Kube Prometheus. A dashboard is trying to query with a metric called kubelet_volume_stats_capacity_bytes which is not available anymore with Kubernetes versions…
23
votes
3 answers

How to use EMMA code coverage in android

I'm new to EMMA, I don't know how to use this for android system. Can anyone please give a sample for using this with android. Thanks a lot.
Narendra
  • 231
  • 1
  • 2
  • 3
23
votes
5 answers

Java application profiling

I am looking for a Java code profiler which I can use to profile my application (its a service which runs in backend) on production (so means low over head, and it must not slow down my application). Primarily I want calling tree profiling, that is…
Arry
  • 1,630
  • 9
  • 27
  • 46
23
votes
5 answers

Jensen-Shannon Divergence

I have another question that I was hoping someone could help me with. I'm using the Jensen-Shannon-Divergence to measure the similarity between two probability distributions. The similarity scores appear to be correct in the sense that they fall…
Martyn
  • 1,107
  • 1
  • 10
  • 12
22
votes
2 answers

Is there a way to generate metrics for a GitHub project?

I've several GithHub projects and I wanted to know the metrics of these projects. Is there a tool to generate metrics for a given GitHub project? Even very basic metrics like LOC would be enough (even though more complete metrics would be…
Baptiste Wicht
  • 7,472
  • 7
  • 45
  • 110
21
votes
3 answers

Are there any good tools for static code analysis in typescript?

We have been searching for good tools for measuring the quality of our TypeScript code. Mainly, we are interested in measuring Cyclomatic Complexity, LCOM, Instability and similar metrics. A tool for visualizing dependencies between modules would…
20
votes
8 answers

Seeking clarifications about structuring code to reduce cyclomatic complexity

Recently our company has started measuring the cyclomatic complexity (CC) of the functions in our code on a weekly basis, and reporting which functions have improved or worsened. So we have started paying a lot more attention to the CC of…
RickL
  • 2,811
  • 3
  • 22
  • 35
19
votes
7 answers

Is there an optimizer in keras based on precision or recall instead of loss?

I am developping a segmentation neural network with only two classes, 0 and 1 (0 is the background and 1 the object that I want to find on the image). On each image, there are about 80% of 1 and 20% of 0. As you can see, the dataset is unbalanced…
freshmanData
  • 193
  • 1
  • 1
  • 8