tessl install tessl/pypi-yacs@0.1.0A lightweight library for defining and managing system configurations for scientific experimentation.
Agent Success
Agent success rate when using this tile
97%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.05x
Baseline
Agent success rate without this tile
92%
Build a configuration management system that creates independent experiment variants from a base configuration template without affecting the original configuration.
Your system should support the following operations:
Create a base configuration for a machine learning experiment with the following structure:
MODEL section containing:
TYPE: string specifying the model architectureLEARNING_RATE: float value for trainingBATCH_SIZE: integer valueDATA section containing:
TRAIN_PATH: string path to training dataVAL_PATH: string path to validation dataTRAINING section containing:
EPOCHS: integer number of training epochsUSE_GPU: boolean flagImplement functionality to create independent experiment configurations from the base configuration. Each variant should be completely independent - modifications to one variant should not affect the base configuration or other variants.
Create three experiment variants:
Your implementation must verify independence by:
@generates
def create_base_config():
"""
Creates and returns a base configuration with MODEL, DATA, and TRAINING sections.
Returns a configuration object suitable for creating independent variants.
"""
pass
def create_experiment_variant(base_config, variant_name, modifications):
"""
Creates an independent copy of the base configuration and applies modifications.
Args:
base_config: The base configuration object to copy from
variant_name: String name for this experiment variant
modifications: Dict of configuration keys and new values to apply
Returns:
An independent configuration object with modifications applied
"""
pass
def verify_independence(base_config, variants):
"""
Verifies that all variants are independent from the base configuration.
Args:
base_config: The original base configuration
variants: List of variant configurations to check
Returns:
Boolean indicating whether all variants are truly independent
"""
passProvides configuration management support.