Skip to content

Commit

Permalink
Fixed bug with tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Jul 16, 2024
1 parent bb3f890 commit c6f2461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spare_scores/svm.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def run_CV(self, df: pd.DataFrame, **kwargs) -> None:
self.mdl['bias_correct'] = self.bias_correct


def prepare_sample(self, df: pd.DataFrame, fold, scaler, classify=None) -> tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]:
def prepare_sample(self, df: pd.DataFrame, fold, scaler, classify=None):
X_train, X_test = scaler.fit_transform(df.loc[fold[0], self.predictors]), scaler.transform(df.loc[fold[1], self.predictors])
y_train, y_test = df.loc[fold[0], self.to_predict], df.loc[fold[1], self.to_predict]
if classify is not None:
Expand Down

0 comments on commit c6f2461

Please sign in to comment.