Skip to content

Commit

Permalink
fix: add back in property (needed), but setter is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
younesStrittmatter committed Aug 10, 2024
1 parent e7d0a6c commit 06e7d70
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/autora/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -1533,6 +1533,14 @@ def y(self) -> pd.DataFrame:
return pd.DataFrame()
return self.experiment_data[self.dv_names]

@property
def model(self):
"""Alias for the last model in the `models`."""
try:
return self.models[-1]
except IndexError:
return None


X = TypeVar("X")
Y = TypeVar("Y")
Expand Down

0 comments on commit 06e7d70

Please sign in to comment.