Skip to content
cerebral
cerebral.models.calculate_prediction_errors
Initializing search
    Robert-Forrest/cerebral
    • API Reference
    Robert-Forrest/cerebral
      • cerebral
        • Models
          • Fsetup_losses_and_metrics
          • Fbuild_input_layers
          • Fbuild_base_model
          • Fbuild_feature_branch
          • Fbuild_model
          • Fsave
          • Fload
          • Fcompile_and_fit
          • Ffit
          • Fcalculate_prediction_errors
            • Parameters
              • ptruth
              • ppredictions
              • pprediction_names
          • Fcalculate_regression_metrics
          • Fcalculate_classification_metrics
          • Fevaluate_model
          • Fget_model_prediction_features
          • Fget_model_input_features
          • Fpredict
        • Loss
          • Fmasked_MSE
          • Fmasked_MAE
          • Fmasked_PseudoHuber
          • Fmasked_Huber
          • Fmasked_sparse_categorical_crossentropy
        • Metrics
          • FtprPerClass
          • FtruePositiveRate
          • FfalsePositiveRate
          • FfalseNegativeRate
          • FppvPerClass
          • FpositivePredictiveValue
          • Ff1
          • FtnrPerClass
          • FtrueNegativeRate
          • FnpvPerClass
          • FnegativePredictiveValue
          • Finformedness
          • Fmarkedness
          • Faccuracy
          • FbalancedAccuracy
          • FpositiveLikelihood
          • FnegativeLikelihood
          • FdiagnosticOdds
          • FfowlkesMallows
          • Fjaccard
          • Fcalc_R_sq
          • Fcalc_RMSE
          • Fcalc_MAE
          • Fcalc_accuracy
          • Fcalc_f1
          • Fcalc_recall
          • Fcalc_precision
          • FmeanAbsoluteDeviation
          • FrootMeanSquareDeviation
        • K-folds cross-validation
          • Fkfolds_split
          • Fkfolds
          • FkfoldsEnsemble
        • Feature Permutation
          • Fpermutation
        • Hyperparameter Tuning
          • CHyperModel
            • Public members
              • M__init__
              • Mbuild
              • Mdeclare_hyperparameters
              • Mfit
          • Ftune
        • Plot
          • Fplot_training
          • Fplot_results_regression
          • Fplot_results_regression_heatmap
          • Fplot_results_classification
          • Fplot_multiclass_roc
          • Fplot_distributions
          • Fplot_feature_variation
          • Fplot_correlation
          • Fplot_feature_permutation
        • Utilities
          • Fensure_default_values_glass
          • Fload_data
          • Fextract_compositions
          • FprettyName
          • Fcalculate_features
          • Fdrop_unwanted_inputs
          • Fdrop_invalid_compositions
          • Fremove_correlated_features
          • Fdrop_static_features
          • Fmerge_duplicate_compositions
          • Fget_features_from_model
          • Ftrain_test_split
          • Fdf_to_dataset
          • Fgenerate_sample_weights_categorical
          • Fcreate_datasets
          • Ffilter_masked
          • Fdense
    • Parameters
      • ptruth
      • ppredictions
      • pprediction_names
    cerebral.models.calculate_prediction_errors(truth: dict, predictions: dict, prediction_names: list[str]) → dict[source]

    Calculate the prediction errors for each item of training data.

    Parameters:¶
    truth: dict¶

    True numerical values.

    predictions: dict¶

    Predicted numerical values.

    prediction_names: list[str]¶

    List of names of each predicted feature.


    Last update: Feb 09, 2023
    Back to top
    Previous cerebral.models.fit
    Next cerebral.models.calculate_regression_metrics
    © Copyright 2022, Robert Forrest.
    Created using Sphinx 6.1.3. and Sphinx-Immaterial