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

ValueError: Found array with 0 sample(s) (shape=(0, 17)) while a minimum of 1 is required. #17

Open
sunnyyakima opened this issue Jul 12, 2023 · 0 comments

Comments

@sunnyyakima
Copy link

Hi I am using the docker version of InDelible, I can run the test_data successfully.

but got an error using my own data:

12/07/23 - 12:40:31: Fetching reads...
Total number of split reads processed: 818
12/07/23 - 12:40:32: Aggregating across positions...
12/07/23 - 12:40:32: Scoring positions...
Traceback (most recent call last):
File "indelible.py", line 210, in
indelible.score_positions(counts_path, scored_path, config)
File "/usr/src/app/indelible/indelible/score_positions.py", line 67, in score_positions
df_final = score_dataframe(clf, df)
File "/usr/src/app/indelible/indelible/score_positions.py", line 31, in score_dataframe
predictions = clf.predict_proba(values)
File "/usr/local/lib/python3.8/dist-packages/sklearn/ensemble/forest.py", line 588, in predict_proba
X = self._validate_X_predict(X)
File "/usr/local/lib/python3.8/dist-packages/sklearn/ensemble/forest.py", line 359, in validate_X_predict
return self.estimators
[0]._validate_X_predict(X, check_input=True)
File "/usr/local/lib/python3.8/dist-packages/sklearn/tree/tree.py", line 391, in _validate_X_predict
X = check_array(X, dtype=DTYPE, accept_sparse="csr")
File "/usr/local/lib/python3.8/dist-packages/sklearn/utils/validation.py", line 547, in check_array
raise ValueError("Found array with %d sample(s) (shape=%s) while a"
ValueError: Found array with 0 sample(s) (shape=(0, 17)) while a minimum of 1 is required.

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

1 participant