Skip to content

Commit

Permalink
feat: add alias reference_conditions for X and reference_observations…
Browse files Browse the repository at this point in the history
… for y
  • Loading branch information
younesStrittmatter committed Aug 10, 2024
1 parent 8572b4a commit 0f0f5db
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/autora/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,13 @@ def X(self) -> pd.DataFrame:
return pd.DataFrame()
return self.experiment_data[self.iv_names]

@property
def reference_conditions(self) -> pd.DataFrame:
"""
Returns the already observed conditions as a pd.DataFrame.
"""
return self.X

@property
def y(self) -> pd.DataFrame:
"""
Expand Down Expand Up @@ -1533,6 +1540,13 @@ def y(self) -> pd.DataFrame:
return pd.DataFrame()
return self.experiment_data[self.dv_names]

@property
def reference_observations(self) -> pd.DataFrame:
"""
Returns the observations as a pd.DataFrame
"""
return self.y

@property
def model(self):
if len(self.models) == 0:
Expand Down

0 comments on commit 0f0f5db

Please sign in to comment.