rdk / p2rank

P2Rank: Protein-ligand binding site prediction from protein structure based on machine learning.
MIT License
251 stars 34 forks source link

exception: Not enough training instances with class labels #21

Closed skodapetr closed 4 years ago

skodapetr commented 4 years ago
ERROR: hr.irb.fastRandomForest.FastRandomTree: Not enough training instances with class labels (required: 1, provided: 0)!
weka.core.WekaException: hr.irb.fastRandomForest.FastRandomTree: Not enough training instances with class labels (required: 1, provided: 0)!

It is not clear what went wrong, why and how to fix it. Is it positive or negative .. was there no data, bad parameters used? How many instances were extracted from given data and if none why?

Tested using latest release 2.0.1.

rdk commented 4 years ago

This indicates that no ligands were detected in the training dataset and consequently no SAS points were labeled as positives.

Could be a problem in the dataset file or in the fact that you were using an old version. Version on the main branch 2.0.1 probably does not support specifying relevant ligands by name yet. For training new models please always use version from the develop branch.

Do you have the same problem when using version from the develop?

rdk commented 4 years ago

Do you still have this problem with the new version from develop?

skodapetr commented 4 years ago

This was related to the ions, I will recreate/re-open with data sample if this happens again.