Skip to content

Cached property patch - #52

Open
vreshniak wants to merge 2 commits into
developfrom
cached_property_patch
Open

Cached property patch#52
vreshniak wants to merge 2 commits into
developfrom
cached_property_patch

Conversation

@vreshniak

Copy link
Copy Markdown
Contributor

This is stacked PR. Should be merged after indexed_strategies PR is merged to develop

Changes:

  1. Replaces def _extract_y_train_from_dataset with @cached_property logic similar to other cached properties in class ServersideInputBase.
  2. Add def clear_cached_properties method used in batched strategies

`def _extract_y_train_from_dataset` implements cached_property logic
@vreshniak
vreshniak requested review from Lance-Drane and konstpieper and removed request for konstpieper August 6, 2026 13:30
def Y_best(self) -> float:
return self.Y_train.max() if self.y_is_good else self.Y_train.min()

def clear_cached_properties(self) -> None:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'll have to look at this but I think this function impacts more than it should

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