метрики

How do I add micro avg to the classification report from sklearn.metrics?

I output the calculated metrics for the test data: print(classification_report(y_true, y_pred_classes, target_names = CLAS ... 0.92 0.92 0.92 10000 I'm missing micro avg in this report. How do I correct the output to add this line?

Cyclomatic complexity

I need to estimate the complexity of the program by calculating the cyclomatic McCabe number z (G): z (G) = e-v + 2p, where ... little necessary information on the Internet and basically all the information about the mathematical part of this question.