hpi-sam / rl-4-self-repair

Reinforcement Learning Models for Online Learning of Self-Repair and Self-Optimization
MIT License
0 stars 1 forks source link

Option to use 'Optimal_Affected_Component' for component-failure pairs #23

Closed henleo closed 4 years ago

henleo commented 4 years ago

Could you please add the option to use 'Optimal_Affected_Component' instead of 'Optimal_Affected_Component_Uid' to create and sample the component-failure pairs to the DataHandler?

Best regards, Leo

brrrachel commented 4 years ago

@henleo Implemented. When initialising the DataHandler you can switch between selecting the data based on id or name by setting the param take_component_id. By default you will take the id.

If you want to load the Linear data and select the name, you have to type in: DataHandler(environment = 'Linear', take_component_id = False)

henleo commented 4 years ago

@brrrachel Thanks a lot :)