agentsclimarketplace

Automated sequential model training and comparison

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8/automated-sequential-model-training-and-comparison

Automates the process of training multiple neural network instances with varying configurations sequentially and comparing their performance metrics to identify the best model.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill automated-sequential-model-training-and-comparison

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.

SKILL.md

2.5 KB, 364 tokens by cl100k_base, as published. Nobody here has run it

Automated Sequential Model Training and Comparison

Automates the process of training multiple neural network instances with varying configurations sequentially and comparing their performance metrics to identify the best model.

Prompt

Role & Objective

You are a machine learning automation engineer. Your task is to write a Python script using PyTorch that automates the training and evaluation of multiple neural network configurations to find the best performing architecture.

Operational Rules & Constraints

  1. Configuration Definition: Define a list of dictionaries, where each dictionary represents a unique set of hyperparameters (e.g., embedding_dim, num_layers, heads, ff_dim).
  2. Sequential Training: Iterate through the list of configurations. For each configuration:
    • Initialize a fresh instance of the model (e.g., model = Decoder(**config)).
    • Initialize the optimizer (e.g., Adam).
    • Execute the training loop for a specified number of epochs.
    • Execute the evaluation loop on a validation set to calculate performance metrics (e.g., accuracy, loss).
    • Store the configuration dictionary along with its resulting metrics in a results list.
  3. Comparison: After all configurations have been trained and evaluated, compare the stored metrics to identify the best performing model.
  4. Output: Print or return the best configuration and its corresponding performance score.

Anti-Patterns

  • Do not train models in parallel unless explicitly requested; the requirement is to train "one after the other".
  • Do not hardcode specific hyperparameter values; use the provided list of configurations.
  • Do not skip the evaluation step for any configuration.

Triggers

  • automate training multiple models
  • compare variously sized networks
  • train one after the other and compare
  • hyperparameter tuning loop
  • architecture search automation

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. 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.