You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have trouble saving and loading the OPLS model. I tried to load a OPLS model with PLS.OPLS.load(obj) but it has an error like the below: OPLS.js:355 Uncaught (in promise) TypeError: model.wOrth.transpose is not a function in OPLS.js:355.
My codes are like below:
`const model = pls.toJSON();
exportJsonFile("pls", model);
Hello,
I have trouble saving and loading the OPLS model. I tried to load a OPLS model with
PLS.OPLS.load(obj)
but it has an error like the below:OPLS.js:355 Uncaught (in promise) TypeError: model.wOrth.transpose is not a function in OPLS.js:355.
My codes are like below:
`const model = pls.toJSON();
exportJsonFile("pls", model);
const obj = await fetchJson('pls.json');
const pls = PLS.OPLS.load(obj);
const result = pls.predict(testSetx, { trueLabels:testSety});`
Thank you so much in advance!
The text was updated successfully, but these errors were encountered: