Skip to content

Commit

Permalink
Remove no longer needed private properties of Campaign class
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSosic committed May 15, 2024
1 parent 8386c09 commit 7b41958
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
14 changes: 0 additions & 14 deletions baybe/campaign.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,20 +133,6 @@ def targets(self) -> tuple[Target, ...]:
"""The targets of the underlying objective."""
return self.objective.targets if self.objective is not None else ()

@property
def _measurements_parameters_comp(self) -> pd.DataFrame:
"""The computational representation of the measured parameters."""
if len(self._measurements_exp) < 1:
return pd.DataFrame()
return self.searchspace.transform(self._measurements_exp)

@property
def _measurements_targets_comp(self) -> pd.DataFrame:
"""The computational representation of the measured targets."""
if len(self._measurements_exp) < 1:
return pd.DataFrame()
return self.objective.transform(self._measurements_exp)

@classmethod
def from_config(cls, config_json: str) -> Campaign:
"""Create a campaign from a configuration JSON.
Expand Down
4 changes: 0 additions & 4 deletions examples/Multi_Target/desirability.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,6 @@

campaign.add_measurements(rec)

print("\n\nInternal measurement dataframe computational representation Y:\n")
print(campaign._measurements_targets_comp)


### Addendum: Description of `transformation` functions

# This function is used to transform target values to the interval `[0,1]` for `MAX`/`MIN` mode.
Expand Down

0 comments on commit 7b41958

Please sign in to comment.