agentsclimarketplace

Dataset train test split validation

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/dataset-train-test-split-validation

Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill dataset-train-test-split-validation

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

  • 14 stars14 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when when preparing MS/MS spectra for deep learning model training on a specific instrument type (e.g., Orbitrap, Q-TOF), and you need to verify that configuration-driven filtering (e.g., adding 'ftms' to an instrument allowlist) produces training and test sets of the expected size (e.

The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

6.6 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

dataset-train-test-split-validation

Summary

Partition a curated MS/MS spectral dataset into training and test subsets according to instrument-specific allowlists and target class distributions, then validate that the resulting splits match expected compound counts and maintain reproducibility across preprocessing runs.

When to use

When preparing MS/MS spectra for deep learning model training on a specific instrument type (e.g., Orbitrap, Q-TOF), and you need to verify that configuration-driven filtering (e.g., adding 'ftms' to an instrument allowlist) produces training and test sets of the expected size (e.g., 28,751 training and 3,195 test compounds for Orbitrap).

When NOT to use

  • The input dataset has already been split and validated for a different instrument type (e.g., Q-TOF); re-splitting may introduce data leakage or biased estimates.
  • The target training/test counts are unknown or unavailable; validation cannot proceed without a documented ground truth.
  • The spectra are already labeled with train/test assignments; modifying the allowlist may violate the original experimental design.

Inputs

  • FIDDLE YAML configuration file (e.g., config/fiddle_tcn_orbitrap.yml)
  • Raw MS/MS spectral dataset (MGF or internal format)
  • Instrument type allowlist (string array)

Outputs

  • Training set compound partition (filtered spectra)
  • Test set compound partition (filtered spectra)
  • Count report (train_count, test_count)

How to apply

Load the instrument-specific FIDDLE configuration file (e.g., config/fiddle_tcn_orbitrap.yml) and modify the gnps_orbitrap instrument allowlist to include the target instrument type (e.g., 'ftms'). Run the FIDDLE dataset preprocessing pipeline with the updated configuration to filter spectra by the allowlisted instruments and apply any additional partitioning logic (e.g., stratified random split). After preprocessing completes, count the total compounds in the resulting training set and test set. Compare the observed counts against the documented target values (e.g., 28,751 training, 3,195 test). If counts match, the split is validated; if they diverge, investigate whether the configuration change or filtering logic was applied correctly.

Related tools

Examples

cd FIDDLE && python -c "import yaml; config = yaml.safe_load(open('config/fiddle_tcn_orbitrap.yml')); config['gnps_orbitrap']['instruments'].append('ftms'); print(f'Train: {config[\"train_size\"]}, Test: {config[\"test_size\"]}')"

Evaluation signals

  • Training set compound count equals or exceeds the documented target (e.g., 28,751 for Orbitrap).
  • Test set compound count matches the documented target (e.g., 3,195 for Orbitrap).
  • No spectra appear in both training and test partitions (disjoint sets).
  • All spectra in each partition originate from the allowlisted instrument types.
  • Re-running the preprocessing pipeline with the same configuration produces identical train/test counts (reproducibility).

Limitations

  • The task card indicates 'no direct evidence' that the expected dataset sizes (28,751 training, 3,195 test) were achieved after modification, suggesting validation may not have been completed or documented.
  • Configuration-driven allowlist changes depend on correct YAML syntax and field naming; errors in the configuration file will silently propagate and produce incorrect splits.
  • The preprocessing pipeline may apply additional filtering steps (e.g., mass range, collision energy) beyond the instrument allowlist, which could reduce the final counts below targets if those filters are not explicitly controlled.

Evidence

  • [other] Does adding 'ftms' to the gnps_orbitrap instrument allowlist in the FIDDLE configuration expand the Orbitrap dataset to the target size of 28,751 training and 3,195 test compounds?: "research_question from task_004 defining the target counts and validation objective"
  • [other] Modify the gnps_orbitrap instrument allowlist to include 'ftms' as an additional allowed instrument type. Run the FIDDLE dataset preprocessing pipeline with the updated configuration to filter and partition the Orbitrap spectra. Count the resulting training set compounds (expected: 28,751) and test set compounds (expected: 3,195) and verify both counts match the target values.: "workflow steps from task_004 describing the exact sequence of configuration, preprocessing, and validation"
  • [readme] Load the config/fiddle_tcn_orbitrap.yml configuration file.: "README instruction showing exact configuration file naming and loading procedure"
  • [readme] FIDDLE is a deep learning method for predicting molecular formulas from MS/MS spectra. This repository contains the full research codebase for model training, evaluation, and paper reproduction.: "README description of FIDDLE's purpose and dataset preprocessing role"
  • [other] Run the FIDDLE dataset preprocessing pipeline with the updated configuration to filter and partition the Orbitrap spectra.: "task_004 workflow describing dataset preprocessing and partitioning pipeline"

What ships with it

Read from the repository

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

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.