Skip to content

Commit

Permalink
tried with dirty fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jannikgro committed May 26, 2022
1 parent f1cdf45 commit 068abaa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions recommerce/configuration/config_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ def validate_config(config: dict, config_is_final: bool) -> tuple:
if 'rl' in hyperparameter_config:
hyperparameter_config['rl']['class'] = QLearningAgent # This is a dirty fix
HyperparameterConfigValidator.validate_config(hyperparameter_config['rl'])
hyperparameter_config['rl'].pop('class')
if 'sim_market' in hyperparameter_config:
hyperparameter_config['sim_market']['class'] = CircularEconomyRebuyPriceDuopoly # This is a dirty fix
HyperparameterConfigValidator.validate_config(hyperparameter_config['sim_market'])
hyperparameter_config['sim_market'].pop('class')

return True, (hyperparameter_config, environment_config)
except Exception as error:
Expand Down

0 comments on commit 068abaa

Please sign in to comment.