Skip to content

Commit a1c79a0

Browse files
committed
Replaced get_pandas with get_dataset to fixe the get_X_and_Y method.
1 parent 50df574 commit a1c79a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openml/entities/task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def get_dataset(self):
4444
def get_X_and_Y(self):
4545
dataset = self.get_dataset()
4646
# Replace with retrieve from cache
47-
X_and_Y = dataset.get_pandas(target=self.target_feature)
47+
X_and_Y = dataset.get_dataset(target=self.target_feature)
4848
return X_and_Y
4949

5050
def evaluate(self, algo):
@@ -159,4 +159,4 @@ def perform_cv_fold(self, algo, fold, folds):
159159
accuracy = sklearn.metrics.accuracy_score(Y[validation_indices],
160160
predictions)
161161
return accuracy
162-
"""
162+
"""

0 commit comments

Comments
 (0)