Skip to content
Snippets Groups Projects
Commit 8b6e5d5a authored by Nicolas Barthes's avatar Nicolas Barthes
Browse files

update regress.py for server correct display

parent 2a84a92b
No related branches found
No related tags found
No related merge requests found
......@@ -108,10 +108,11 @@ class Plsr(Regmodel):
def objective(self, params):
params['n_components'] = int(params['n_components'])
x0 = [self._xc, self._xt]
x1 = [eval(str(params['normalization'])+"(x0[i])") for i in range(2)]
# print(f'#######################################x0 is {x0} #####################################')
x1 = [eval(str(params['normalization'])+'(x0[i])') for i in range(2)]
# x1 = ''.join(str(params['normalization']), .join(map(str, x0[i]) for i in range(2)))
print(f'#######################################x1 is {x1} #####################################')
# print(f'#######################################x1 is {x1} #####################################')
a, b, c = params['deriv'], params['polyorder'], params['window_length']
if a > b or b > c:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment