Module metrics

Module metrics 

Source
Expand description

Evaluation metrics for ML models.

Includes regression metrics (R², MSE, MAE) and clustering metrics (inertia, silhouette score).

Functions§

inertia
Computes the inertia (within-cluster sum of squares).
mae
Computes the Mean Absolute Error (MAE).
mse
Computes the Mean Squared Error (MSE).
r_squared
Computes the coefficient of determination (R²).
rmse
Computes the Root Mean Squared Error (RMSE).
silhouette_score
Computes the silhouette score for clustering quality.