Explore Library
Code QuizAdvanced

Grid Search Config Sharing

Find why every hyperparameter trial ends up with the same config.

Codepython
base_config = {'lr': 0.01, 'batch_size': 32}
results = []

for lr in [0.001, 0.01, 0.1]:
    config = base_config
    config['lr'] = lr
    score = train(config)
    results.append({'config': config, 'score': score})

What is the bug in this hyperparameter sweep?