Metrics
Accuracy
- Description: Calculates the accuracy of the model.
- Function:
accuracy(float *y, float *yHat, int n)
- File:
accuracy.c
Balanced Accuracy
- Description: Calculates the balanced accuracy of the model.
- Function:
balanced_accuracy(float *y, float *yHat, int n)
- File:
balanced_accuracy.c
Cohen's Kappa
- Description: Calculates Cohen's Kappa coefficient.
- Function:
cohens_kappa(float *y, float *yHat, int n)
- File:
cohens_kappa.c
F1 Score
- Description: Calculates the F1 score of the model.
- Function:
f1_score(float *y, float *yHat, int n)
- File:
f1_score.c
IOU (Intersection over Union)
- Description: Calculates the Intersection over Union.
- Function:
iou(float *y, float *yHat, int n)
- File:
iou.c
MCC (Matthews Correlation Coefficient)
- Description: Calculates the Matthews Correlation Coefficient.
- Function:
mcc(float *y, float *yHat, int n)
- File:
mcc.c
Mean Absolute Error
- Description: Calculates the Mean Absolute Error.
- Function:
mean_absolute_error(float *y, float *yHat, int n)
- File:
mean_absolute_error.c
Mean Absolute Percentage Error
- Description: Calculates the Mean Absolute Percentage Error.
- Function:
mean_absolute_percentage_error(float *y, float *yHat, int n)
- File:
mean_absolute_percentage_error.c
Precision
- Description: Calculates the precision of the model.
- Function:
precision(float *y, float *yHat, int n)
- File:
precision.c
R2 Score
- Description: Calculates the R2 score (coefficient of determination).
- Function:
r2_score(float *y_true, float *y_pred, int size)
- File:
r2_score.c
Recall
- Description: Calculates the recall of the model.
- Function:
recall(float *y, float *yHat, int n)
- File:
recall.c
Root Mean Squared Error
- Description: Calculates the Root Mean Squared Error.
- Function:
root_mean_squared_error(float *y, float *yHat, int n)
- File:
root_mean_squared_error.c
Specificity
- Description: Calculates the Specificity.
- Function:
Specificity(float *y, float *yHat, int n)
- File:
Specificity.c