BlueBrain / morphoclass

Neuronal morphology preparation and classification using Machine Learning.
https://morphoclass.readthedocs.io
Apache License 2.0
8 stars 4 forks source link

Chance accuracy #50

Closed FrancescoCasalegno closed 2 years ago

FrancescoCasalegno commented 2 years ago

Fixes #49.

Description

This PR introduces a function to measure "chance agreement" (see #49 for details). This value can be used as a baseline to compare against the accuracy of a classification model.

This baseline is also included as a new column in the performance table produced by make_performance_table().

To compute the chance agreement we use the new function introduced by this PR: https://github.com/BlueBrain/morphoclass/blob/ed2d4c974dbb5188180b13228b55d2959768c060/src/morphoclass/metrics.py#L25-L26

How to test?

See tests/.

Checklist