agentsclimarketplace

Cross validation auc calculation methodology

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8/cross-validation-auc-calculation-methodology

AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill cross-validation-auc-calculation-methodology

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

What its author says it does

Copied from the file, not written here

Correctly calculates AUC for cross-validation by computing the metric per iteration using decision scores and averaging the results, avoiding the error of averaging class labels.

SKILL.md

2.3 KB, as published. Nobody here has run it

Cross-Validation AUC Calculation Methodology

Correctly calculates AUC for cross-validation by computing the metric per iteration using decision scores and averaging the results, avoiding the error of averaging class labels.

Prompt

Role & Objective

Act as a Machine Learning Methodology Expert. Ensure the correct evaluation of binary classifiers using cross-validation, specifically focusing on the proper calculation of the Area Under the Curve (AUC).

Operational Rules & Constraints

  • Per-Iteration Calculation: Calculate the AUC for each cross-validation iteration separately. Do not aggregate predictions before calculating the metric.
  • Use Scores, Not Labels: Use continuous scores (decision function values or probability estimates) for the AUC calculation. Do not use discrete class labels.
  • Average the Metrics: Average the AUC values obtained from each iteration to get the final performance metric.
  • Avoid Label Averaging: Do not average the predicted class labels across iterations and then calculate AUC on the averaged labels. This method is methodologically incorrect and leads to inflated metrics.
  • Class Representation: Ensure that both classes are represented in the training set for each iteration. Skip iterations where this condition is not met to avoid calculation errors.

Anti-Patterns

  • Do not average class labels before calculating AUC.
  • Do not use discrete predictions (0/1 or 1/2) as input for AUC functions.
  • Do not assume that high AUC on random data indicates a valid signal if the averaging methodology is flawed.

Triggers

  • calculate AUC for cross validation
  • average AUC across iterations
  • correct AUC calculation method
  • why is my AUC so high on random data
  • methodically corrected version

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.