Skip to content

permutation_test from ChemometricsPLS doesn't work #1

@al-bonin

Description

@al-bonin

Hi,

thank you for the tutorials. Can you please help me with the permutation_test? I always get this error:

`
File "/var/folders/q4/g502v5zj32x0gmls_36j_9280000gn/T/ipykernel_55912/2957162646.py", line 5, in
permt = pls.permutation_test(X, Y, 100)

File "/Users/user/chemometrics-tutorials-master/pyChemometrics/ChemometricsPLS.py", line 951, in permutation_test
raise exp

File "/Users/user/chemometrics-tutorials-master/pyChemometrics/ChemometricsPLS.py", line 947, in permutation_test
pvals['R2Y_Test'] = (len(np.where(permuted_R2Y_test >= obs_r2y)) + 1) / (nperms + 1)

ValueError: operands could not be broadcast together with shapes (100,) (7,) `

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions