diff --git a/src/autora/state.py b/src/autora/state.py index 6667bb87..99c362f4 100644 --- a/src/autora/state.py +++ b/src/autora/state.py @@ -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")