Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when numpy is being called #1

Open
medcelerate opened this issue Jun 10, 2019 · 5 comments
Open

Error when numpy is being called #1

medcelerate opened this issue Jun 10, 2019 · 5 comments

Comments

@medcelerate
Copy link

I am getting this error when the python script is being called

Found array with 0 sample(s) (shape=(0, 16)) while a minimum of 1 is required.

Full trace

Traceback (most recent call last):
  File "/hpc/users/clarke16/ConusPipe/bin/predict2.py", line 67, in <module>
    y_hat = log_reg.predict(Xtest)
  File "/hpc/users/clarke16/.conda/envs/mari/lib/python3.7/site-packages/sklearn/linear_model/base.py", line 289, in predict
    scores = self.decision_function(X)
  File "/hpc/users/clarke16/.conda/envs/mari/lib/python3.7/site-packages/sklearn/linear_model/base.py", line 265, in decision_function
    X = check_array(X, accept_sparse='csr')
  File "/hpc/users/clarke16/.conda/envs/mari/lib/python3.7/site-packages/sklearn/utils/validation.py", line 550, in check_array
    context))
ValueError: Found array with 0 sample(s) (shape=(0, 16)) while a minimum of 1 is required.
@qingl0331
Copy link
Collaborator

qingl0331 commented Jun 10, 2019 via email

@medcelerate
Copy link
Author

The file is empty, why is conuspipe generating an empty file?

@qingl0331
Copy link
Collaborator

qingl0331 commented Jun 11, 2019 via email

@medcelerate
Copy link
Author

Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 360, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 362, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 356, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 357, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 360, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 362, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 356, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 357, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 360, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 362, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 356, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 357, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 360, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 362, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 356, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 357, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 360, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 362, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 356, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 357, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 360, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 362, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 356, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 357, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 360, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 362, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 356, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 357, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 360, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 362, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 356, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 357, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 360, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 362, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 356, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 357, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 360, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 362, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 356, <FH> line 115080.
Use of uninitialized value in addition (+) at ./discoveryPipe.4methods.simple.v2.pl line 357, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 360, <FH> line 115080.
Use of uninitialized value in string eq at ./discoveryPipe.4methods.simple.v2.pl line 362, <FH> line 115080.
Use of uninitialized value $cysPp in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 376, <FH> line 115080.
Use of uninitialized value $cysSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 371, <FH> line 115082.
Use of uninitialized value $cysPp in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 376, <FH> line 115082.
Use of uninitialized value $cysMTox in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 381, <FH> line 115082.
Use of uninitialized value $cysSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 371, <FH> line 115084.
Use of uninitialized value $cysPp in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 376, <FH> line 115084.
Use of uninitialized value $cysPp in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 376, <FH> line 115086.
Use of uninitialized value $cysSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 371, <FH> line 115088.
Use of uninitialized value $cysMTox in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 381, <FH> line 115088.
Use of uninitialized value $pcSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 374, <FH> line 115090.
Use of uninitialized value $ncSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 375, <FH> line 115090.
Use of uninitialized value $ncPp in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 380, <FH> line 115090.
Use of uninitialized value $pcSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 374, <FH> line 115092.
Use of uninitialized value $ncSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 375, <FH> line 115092.
Use of uninitialized value $ncPp in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 380, <FH> line 115092.
Use of uninitialized value $ncSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 375, <FH> line 115094.
Use of uninitialized value $ncPp in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 380, <FH> line 115094.
Use of uninitialized value $ncSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 375, <FH> line 115096.
Use of uninitialized value $pcPp in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 379, <FH> line 115096.
Use of uninitialized value $ncPp in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 380, <FH> line 115096.
Use of uninitialized value $ncMTox in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 385, <FH> line 115096.
Use of uninitialized value $pcSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 374, <FH> line 115098.
Use of uninitialized value $ncSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 375, <FH> line 115098.
Use of uninitialized value $ncPp in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 380, <FH> line 115098.
Use of uninitialized value $pcSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 374, <FH> line 115100.
Use of uninitialized value $ncSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 375, <FH> line 115100.
Use of uninitialized value $ncPp in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 380, <FH> line 115100.
Use of uninitialized value $ncSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 375, <FH> line 115102.
Use of uninitialized value $ncPp in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 380, <FH> line 115102.
Use of uninitialized value $ncSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 375, <FH> line 115104.
Use of uninitialized value $pcPp in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 379, <FH> line 115104.
Use of uninitialized value $ncPp in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 380, <FH> line 115104.
Use of uninitialized value $ncMTox in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 385, <FH> line 115104.
Use of uninitialized value $ncSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 375, <FH> line 115106.
Use of uninitialized value $pcSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 374, <FH> line 115108.
Use of uninitialized value $ncSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 375, <FH> line 115108.
Use of uninitialized value $ncPp in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 380, <FH> line 115108.
Use of uninitialized value $ncMTox in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 385, <FH> line 115108.
Use of uninitialized value $ncSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 375, <FH> line 115110.
Use of uninitialized value $pcSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 374, <FH> line 115112.
Use of uninitialized value $ncSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 375, <FH> line 115112.
Use of uninitialized value $pcPp in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 379, <FH> line 115112.
Use of uninitialized value $pcSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 374, <FH> line 115114.
Use of uninitialized value $ncSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 375, <FH> line 115114.
Use of uninitialized value $cysMTox in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 381, <FH> line 115114.
Use of uninitialized value $pcSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 374, <FH> line 115116.
Use of uninitialized value $ncSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 375, <FH> line 115116.
Use of uninitialized value $cysMTox in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 381, <FH> line 115116.
Use of uninitialized value $pcPp in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 379, <FH> line 115118.
Use of uninitialized value $cysMTox in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 381, <FH> line 115118.
Use of uninitialized value $ncSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 375, <FH> line 115120.
Use of uninitialized value $pcSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 374, <FH> line 115122.
Use of uninitialized value $ncSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 375, <FH> line 115122.
Use of uninitialized value $pcSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 374, <FH> line 115124.
Use of uninitialized value $ncSs in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 375, <FH> line 115124.
Use of uninitialized value $cysPp in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 376, <FH> line 115126.
Use of uninitialized value $ncMTox in division (/) at ./discoveryPipe.4methods.simple.v2.pl line 385, <FH> line 115126.
/hpc/packages/minerva-centos7/anaconda3/2018.12/lib/python3.7/site-packages/sklearn/linear_model/logistic.py:433: FutureWarning: Default solver will be changed to 'lbfgs' in 0.22. Specify a solver to silence this warning.
  FutureWarning)
Traceback (most recent call last):
  File "/hpc/users/clarke16/ConusPipe/bin/predict2.py", line 66, in <module>
    log_reg.fit(X, y)
  File "/hpc/packages/minerva-centos7/anaconda3/2018.12/lib/python3.7/site-packages/sklearn/linear_model/logistic.py", line 1285, in fit
    accept_large_sparse=solver != 'liblinear')
  File "/hpc/packages/minerva-centos7/anaconda3/2018.12/lib/python3.7/site-packages/sklearn/utils/validation.py", line 756, in check_X_y
    estimator=estimator)
  File "/hpc/packages/minerva-centos7/anaconda3/2018.12/lib/python3.7/site-packages/sklearn/utils/validation.py", line 582, in check_array
    context))
ValueError: Found array with 0 sample(s) (shape=(0, 16)) while a minimum of 1 is required.
readline() on closed filehandle FH1 at ./discoveryPipe.4methods.simple.v2.pl line 222, <FH1> line 115126.

@qingl0331
Copy link
Collaborator

qingl0331 commented Jun 21, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants