amazon-sagemaker-examples icon indicating copy to clipboard operation
amazon-sagemaker-examples copied to clipboard

Wrong entrypoints in HVAC RL examples?

Open jbkoh opened this issue 7 years ago • 4 comments

Hi there,

I am looking through the examples and they look great!

It looks like the entry points for model registration in the following file are incorrect: https://github.com/awslabs/amazon-sagemaker-examples/blob/af765120763364193f099af0b283767cc2228ad3/reinforcement_learning/rl_hvac_coach_energyplus/src/eplus/init.py#L5 https://github.com/awslabs/amazon-sagemaker-examples/blob/af765120763364193f099af0b283767cc2228ad3/reinforcement_learning/rl_hvac_coach_energyplus/src/eplus/init.py#L10

According to https://github.com/awslabs/amazon-sagemaker-examples/blob/af765120763364193f099af0b283767cc2228ad3/reinforcement_learning/rl_hvac_coach_energyplus/src/eplus/envs/init.py#L1 and https://github.com/awslabs/amazon-sagemaker-examples/blob/af765120763364193f099af0b283767cc2228ad3/reinforcement_learning/rl_hvac_coach_energyplus/src/eplus/envs/init.py#L2 , I think the entrypoints should be changed to:

entry_point='eplus.envs:LargeOfficeEnv,' 

and

 entry_point='eplus.envs:DataCenterEnv,'

jbkoh avatar Jan 18 '19 01:01 jbkoh

@bbalaji-ucsd can you please review?

vrkhare avatar Jan 23 '19 02:01 vrkhare

Hey Jason,

Thanks for the catch, yes this is a bug and your fix is correct. I'll fix this with a pull request.

Our examples run properly because we don't use this piece of code. We directly call the class in question: https://github.com/awslabs/amazon-sagemaker-examples/blob/af765120763364193f099af0b283767cc2228ad3/reinforcement_learning/rl_hvac_coach_energyplus/src/preset-energy-plus-clipped-ppo.py#L64

bbalaji-ucsd avatar Jan 25 '19 19:01 bbalaji-ucsd

I see. Thanks for the comments!

jbkoh avatar Jan 25 '19 19:01 jbkoh

Fixed here: https://github.com/awslabs/amazon-sagemaker-examples/pull/590

bbalaji-ucsd avatar Jan 26 '19 00:01 bbalaji-ucsd