Rename xy to xy_sample

This commit is contained in:
2021-03-30 17:24:27 -05:00
parent e8adeb28a3
commit 64a63264c7
5 changed files with 9 additions and 9 deletions

View File

@@ -137,7 +137,7 @@ class Component(ABC):
return
@staticmethod
def xy(
def xy_sample(
instance: Any,
training_sample: TrainingSample,
) -> Tuple[Dict, Dict]:

View File

@@ -163,7 +163,7 @@ class ObjectiveValueComponent(Component):
return ev
@staticmethod
def xy(
def xy_sample(
instance: Any,
sample: TrainingSample,
) -> Tuple[Dict, Dict]:

View File

@@ -298,7 +298,7 @@ class PrimalSolutionComponent(Component):
return [opt_value < 0.5, opt_value > 0.5]
@staticmethod
def xy(
def xy_sample(
instance: Any,
sample: TrainingSample,
) -> Tuple[Dict, Dict]: