astra.metrics¶
This module contains functions for model selection and evaluation.
- astra.metrics.CLASSIFICATION_METRICS¶
A dictionary mapping classification metric names to their corresponding functions. [source]
- Type:
- astra.metrics.REGRESSION_METRICS¶
A dictionary mapping regression metric names to their corresponding functions. [source]
- Type:
- astra.metrics.MULTICLASS_METRICS¶
A dictionary mapping multiclass classification metric names to their corresponding functions. [source]
- Type:
- astra.metrics.KNOWN_METRICS¶
A dictionary mapping all metric names to their corresponding functions. [source]
- Type:
- astra.metrics.SCORING¶
A dictionary mapping all metric names to their corresponding scoring functions. [source]
- Type:
Functions
|
Calculate the Kendall Tau correlation coefficient. |
|
Calculate the Pearson correlation coefficient. |
|
Calculate the Spearman correlation coefficient. |
- astra.metrics.get_kendalltau_score(y_true, y_pred)[source]¶
Calculate the Kendall Tau correlation coefficient.
- Parameters:
y_true (list) -- True values.
y_pred (list) -- Predicted values.
- Returns:
The Kendall Tau correlation coefficient.
- Return type: