sleepless.engine.analyze#
Analyze script.
Functions
|
Compute different metrics on a dataset and saved them as table and figure. |
|
Compute metrics for the scikit-learn pipeline,6 metrics are computed: accuracy, confusion matrix, matthews_corrcoef, balanced_accuracy, linear weighted Kappa and quadratic weighted Kappa. |
|
Compute an analysis of the misclassified and well classified Epochs of a dataset, for each samples of the dataset, one figure (prediction/true label) and a table is generated. |
- sleepless.engine.analyze.metric_stats(dataset, bins=[0, 18, 60, 70, 80, 90, 100, 110])[source]#
Compute different metrics on a dataset and saved them as table and figure.
- Parameters:
- Return type:
- Returns:
list of figures, list of tables and dictionary of metrics
- sleepless.engine.analyze.metrics_computation(data, name)[source]#
Compute metrics for the scikit-learn pipeline,6 metrics are computed: accuracy, confusion matrix, matthews_corrcoef, balanced_accuracy, linear weighted Kappa and quadratic weighted Kappa.
- Parameters:
- Return type:
- Returns:
Matthews_corrcoef, accuracy, linear weighted Kappa, quadratic weighted Kappa and balanced_accuracy are return in common pd.Dataframe(df_metrics) Figure of confusion matrix are return as list of figure