Generated Artifacts
Use this sub-skill when you already have a timestamped folder created by
automl_grid_search and need to work with the generated runtime files.
This route covers the generated model.py, pipeline.py, requirements.txt,
encoders/, metadata/, and framework-specific model files inside the
artifact folder.
Use this sub-skill for
- Running
train or predict in a completed generated folder.
- Inspecting the frozen CSV schema, encoder files, or metadata outputs.
- Checking whether a generated folder is ready for XGBoost or TensorFlow
runtime use.
- Diagnosing missing encoder, metadata, model, or prediction files.
- Comparing the generated XGBoost artifact path with the legacy TensorFlow
artifact path.
Do not use this sub-skill for
- Choosing the search space, framework, or hyperparameters.
- Starting a new search run from CSV + target.
- Explaining the package-level
automl_gs CLI or grid-search loop.
If you need to generate a new timestamped folder, use the sibling
grid-search sub-skill instead: grid-search.
Read first
references/generated-artifacts.md for the folder layout, generated modes,
CSV loading contract, encoders, metadata, prediction formats, and framework
differences.
references/troubleshooting.md for the common runtime failures and recovery
steps.
scripts/check_generated_folder.py to validate a generated folder and print
the expected modes and files without importing the original repository.
What to expect in a valid folder
A usable generated folder usually contains:
model.py with -d/--data, -m/--mode, -s/--split, -e/--epochs,
-c/--context, and -t/--type flags.
pipeline.py with helper functions for encoder loading, data processing,
prediction, and training.
requirements.txt for the generated runtime, not the search loop.
encoders/ with JSON encoder state.
metadata/ with the per-epoch metrics log.
model.bin for XGBoost or model_weights.hdf5 for TensorFlow after train.
Quick workflow
cd into the generated folder before running anything.
- Use
scripts/check_generated_folder.py to confirm the folder layout.
- Run
python model.py -d <csv> -m train to refresh encoders and model files.
- Run
python model.py -d <csv> -m predict -t csv or -t json to write
predictions.
Mode summary
train rebuilds encoders, writes metadata/results.csv, and saves the
framework model artifact.
predict loads the saved encoders and model, then writes a predictions file.
--context automl-gs is for the search loop; standalone use normally leaves
the default context alone.
Common checks
- If files are missing, confirm the working directory is the generated folder,
not the parent search directory.
- If the runtime package does not match the artifact framework, read the
troubleshooting guide before retrying.
- If the CSV schema no longer matches the generated
model.py, do not rename
the CSV headers to normalized Python names; use the original raw headers that
appear in the generated script.
- If an XGBoost train run fails on label conversion, read the troubleshooting
guide: this artifact path expects a numeric-compatible target column in the
frozen dtype map.
1---2name: generated-artifacts3description: "Helps agents work inside a completed automl-gs artifact folder to4 train, predict, inspect encoders, and troubleshoot generated runtime files."5disable-model-invocation: true6metadata:7 source: https://skillmd.com/skills/vectorspacelab/generated-artifacts8 disco-role: operating9license: MIT10---1112# Generated Artifacts1314Use this sub-skill when you already have a timestamped folder created by15`automl_grid_search` and need to work with the generated runtime files.1617This route covers the generated `model.py`, `pipeline.py`, `requirements.txt`,18`encoders/`, `metadata/`, and framework-specific model files inside the19artifact folder.2021## Use this sub-skill for2223- Running `train` or `predict` in a completed generated folder.24- Inspecting the frozen CSV schema, encoder files, or metadata outputs.25- Checking whether a generated folder is ready for XGBoost or TensorFlow26 runtime use.27- Diagnosing missing encoder, metadata, model, or prediction files.28- Comparing the generated XGBoost artifact path with the legacy TensorFlow29 artifact path.3031## Do not use this sub-skill for3233- Choosing the search space, framework, or hyperparameters.34- Starting a new search run from CSV + target.35- Explaining the package-level `automl_gs` CLI or grid-search loop.3637If you need to generate a new timestamped folder, use the sibling38`grid-search` sub-skill instead: [grid-search](../grid-search/SKILL.md).3940## Read first4142- `references/generated-artifacts.md` for the folder layout, generated modes,43 CSV loading contract, encoders, metadata, prediction formats, and framework44 differences.45- `references/troubleshooting.md` for the common runtime failures and recovery46 steps.47- `scripts/check_generated_folder.py` to validate a generated folder and print48 the expected modes and files without importing the original repository.4950## What to expect in a valid folder5152A usable generated folder usually contains:5354- `model.py` with `-d/--data`, `-m/--mode`, `-s/--split`, `-e/--epochs`,55 `-c/--context`, and `-t/--type` flags.56- `pipeline.py` with helper functions for encoder loading, data processing,57 prediction, and training.58- `requirements.txt` for the generated runtime, not the search loop.59- `encoders/` with JSON encoder state.60- `metadata/` with the per-epoch metrics log.61- `model.bin` for XGBoost or `model_weights.hdf5` for TensorFlow after train.6263## Quick workflow64651. `cd` into the generated folder before running anything.662. Use `scripts/check_generated_folder.py` to confirm the folder layout.673. Run `python model.py -d <csv> -m train` to refresh encoders and model files.684. Run `python model.py -d <csv> -m predict -t csv` or `-t json` to write69 predictions.7071## Mode summary7273- `train` rebuilds encoders, writes `metadata/results.csv`, and saves the74 framework model artifact.75- `predict` loads the saved encoders and model, then writes a predictions file.76- `--context automl-gs` is for the search loop; standalone use normally leaves77 the default context alone.7879## Common checks8081- If files are missing, confirm the working directory is the generated folder,82 not the parent search directory.83- If the runtime package does not match the artifact framework, read the84 troubleshooting guide before retrying.85- If the CSV schema no longer matches the generated `model.py`, do not rename86 the CSV headers to normalized Python names; use the original raw headers that87 appear in the generated script.88- If an XGBoost train run fails on label conversion, read the troubleshooting89 guide: this artifact path expects a numeric-compatible target column in the90 frozen dtype map.