Skip to content

Conversation

@AdrianHuang2002
Copy link

No description provided.

Copy link
Owner

@RyanNavillus RyanNavillus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far!

self.custom_metrics = custom_metrics or {}

def __call__(self, curriculum):
predefined_metrics = {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be defined in the initializer

# Stage 1 - Survival
stage1 = [0, 1, 2, 3]
stopping.append(
Condition(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that this is structured, but I think it was easier to use as a string. Could you write some syntactic sugar so that we can pass in a string here, and then convert it to a Condition object within the curriculum?

@AdrianHuang2002
Copy link
Author

WX20240726-024618
I print out the 'self.metric_values' in 'update_on_episode function', each value of 'my_custom_function_2' is exactly the same as the value when the 'end_status' is <StepStatus.DEATH: 1> in 'test_output.log'. I think this shows custom_metric can track the value during traning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants