Make sample_xy an instance method

This commit is contained in:
2021-04-06 08:27:37 -05:00
parent 54c20382c9
commit cfb17551f1
5 changed files with 39 additions and 8 deletions

View File

@@ -73,8 +73,8 @@ class ObjectiveValueComponent(Component):
logger.info(f"{c} regressor not fitted. Skipping.")
return pred
@staticmethod
def sample_xy(
self,
instance: Instance,
sample: TrainingSample,
) -> Tuple[Dict[Hashable, List[List[float]]], Dict[Hashable, List[List[float]]]]: