Skip to content
Snippets Groups Projects
Commit 82e22ab0 authored by DIANE's avatar DIANE
Browse files

Simple correction

parent 9768706b
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ class PlsR: ...@@ -40,7 +40,7 @@ class PlsR:
if self.best['Preprocess']['Scatter'] is None: if self.best['Preprocess']['Scatter'] is None:
xtrain = self.x_train xtrain = self.x_train
xtest = self.x_test xtest = self.x_test
elif self.best['Preprocess']['Scatter'] == 'Snv': elif self.best_hyperparams['Preprocess']['Scatter'] == 'Snv':
xtrain = Snv(self.x_train) xtrain = Snv(self.x_train)
xtest = Snv(self.x_test) xtest = Snv(self.x_test)
...@@ -99,8 +99,6 @@ class PlsR: ...@@ -99,8 +99,6 @@ class PlsR:
if SCORE < PlsR.SCORE: if SCORE < PlsR.SCORE:
PlsR.SCORE = SCORE PlsR.SCORE = SCORE
self.best = params self.best = params
print(SCORE)
print(params)
return SCORE return SCORE
...@@ -117,4 +115,4 @@ class PlsR: ...@@ -117,4 +115,4 @@ class PlsR:
@property @property
def pred_data_(self): def pred_data_(self):
return self.yc, self.ycv, self.yt return np.array(self.yc).reshape(-1), np.array(self.ycv).reshape(-1), np.array(self.yt).reshape(-1)
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment