"""
This run file shows how to use the default SL train loop provided in CORDS and 
run it with default arguments using the configuration files provided in CORDS.
"""


from train_sl import TrainClassifier
from cords.utils.config_utils import load_config_data

#CORDS comes with some predefined configuration files that mentiones the format of 

# config_file = "configs/SL/config_glister_cifar100.py"
# config_file = "configs/SL/config_gradmatchpb_cifar100.py"
# config_file = "configs/SL/config_adaptiverandom_cifar100.py"
config_file = "configs/SL/config_shapis_cifar100.py"

config_data = load_config_data(config_file)
classifier = TrainClassifier(config_data)

classifier.cfg.dataset.feature = "noise"

classifier.train()
