Skip to content

External Validation fatal error with an apparently normal file #6

@hellmrf

Description

@hellmrf

ValueError when trying to externally validate the following pair of files.

files.zip

Log
$ python ./runExtVal.py -f /tmp/aaa/confExtVal.csv
runExtVal.py:29 run() INFO  Running 1/1.
/home/helitonmrf/Projects/QSARModelingCore/qsarmodelingpy/calculate_parameters.py:66: RuntimeWarning: divide by zero encountered in true_divide
  R2 = 1-(calcPress(yreal, ypred)/ssy1)
Traceback (most recent call last):
  File "/home/helitonmrf/Projects/QSARModelingPy/CLI/./runExtVal.py", line 87, in <module>
    run(filename)
  File "/home/helitonmrf/Projects/QSARModelingPy/CLI/./runExtVal.py", line 59, in run
    ext.extVal(train, test, nLV)
  File "/home/helitonmrf/Projects/QSARModelingCore/qsarmodelingpy/external_validation.py", line 149, in extVal
    yp = pls.predict(self.X[new_test])
  File "/home/helitonmrf/miniconda3/envs/QSARModelingGUI/lib/python3.9/site-packages/sklearn/cross_decomposition/_pls.py", line 382, in predict
    X = check_array(X, copy=copy, dtype=FLOAT_DTYPES)
  File "/home/helitonmrf/miniconda3/envs/QSARModelingGUI/lib/python3.9/site-packages/sklearn/utils/validation.py", line 63, in inner_f
    return f(*args, **kwargs)
  File "/home/helitonmrf/miniconda3/envs/QSARModelingGUI/lib/python3.9/site-packages/sklearn/utils/validation.py", line 669, in check_array
    raise ValueError("Found array with %d sample(s) (shape=%s) while a"
ValueError: Found array with 0 sample(s) (shape=(0, 10)) while a minimum of 1 is required.
Details

Metadata

Metadata

Assignees

No one assigned

    Labels

    InvestigateIssues that were confirmed, but the source isn't clear. Will need investigation efforts.bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions