athena__accuracy Module

Module containing functions to compute the accuracy of a model


Uses

    • coreutils

Abstract Interfaces

abstract interface

Interface for the accuracy function

  • public pure function compute_accuracy_function(predicted, expected) result(output)

    Compute the accuracy of a model

    Arguments

    Type IntentOptional Attributes Name
    real(kind=real32), intent(in), dimension(:,:) :: predicted

    Predicted and expected values

    real(kind=real32), intent(in), dimension(:,:) :: expected

    Predicted and expected values

    Return Value real(kind=real32), dimension(size(expected,2))

    Accuracy of the model


Functions

public pure function categorical_score(predicted, expected) result(output)

Compute the categorical accuracy of a model

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real32), intent(in), dimension(:,:) :: predicted

Predicted and expected values

real(kind=real32), intent(in), dimension(:,:) :: expected

Predicted and expected values

Return Value real(kind=real32), dimension(size(expected,2))

Categorical accuracy

public pure function mae_score(predicted, expected) result(output)

Compute the mean absolute error of a model

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real32), intent(in), dimension(:,:) :: predicted

Predicted and expected values

real(kind=real32), intent(in), dimension(:,:) :: expected

Predicted and expected values

Return Value real(kind=real32), dimension(size(expected,2))

Mean absolute error

public pure function mse_score(predicted, expected) result(output)

Compute the mean squared error of a model

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real32), intent(in), dimension(:,:) :: predicted

Predicted and expected values

real(kind=real32), intent(in), dimension(:,:) :: expected

Predicted and expected values

Return Value real(kind=real32), dimension(size(expected,2))

Mean squared error

public pure function r2_score(predicted, expected) result(output)

Compute the R^2 score of a model

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real32), intent(in), dimension(:,:) :: predicted
real(kind=real32), intent(in), dimension(:,:) :: expected

Return Value real(kind=real32), dimension(size(expected,2))

public pure function rmse_score(predicted, expected) result(output)

Compute the root mean squared error of a model

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real32), intent(in), dimension(:,:) :: predicted

Predicted and expected values

real(kind=real32), intent(in), dimension(:,:) :: expected

Predicted and expected values

Return Value real(kind=real32), dimension(size(expected,2))

Root mean squared error