qbiocode.evaluation.model_evaluation module#

Summary#

Functions:

modeleval

Evaluates the model performance using accuracy, F1 score, and AUC.

Reference#

modeleval(y_test, y_predicted, beg_time, params, args, model, verbose=True, average='weighted')[source]#

Evaluates the model performance using accuracy, F1 score, and AUC.

Parameters:
  • y_test (array-like) – True labels for the test set.

  • y_predicted (array-like) – Predicted labels by the model.

  • beg_time (float) – Start time for measuring execution time.

  • params (dict) – Model parameters used during training.

  • args (dict) – Additional arguments, including grid search flag.

  • model (str) – Name of the model being evaluated.

  • verbose (bool) – If True, prints the evaluation results.

  • average (str) – Type of averaging to use for F1 score calculation. Default is ‘weighted’.

Returns:

DataFrame containing the evaluation results, including accuracy, F1 score, AUC, and model parameters.

Return type:

pd.DataFrame