czodrowskilab / machine-learning-meets-pka Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
hi,
I tried to run the notebook, modeling.ipynb, and the previous cell units ran smoothly, but when it came to this section
est_cls = RandomForestRegressor
rf_params = dict(n_estimators=1000, n_jobs=est_jobs, verbose=verbose, random_state=seed)
name = 'RandomForest (n_estimators=1000)'
train_all_sets(est_cls, rf_params, name)
the error info:
ValueError: Input X contains NaN.
RandomForestRegressor does not accept missing values encoded as NaN natively. For supervised learning, you might want to consider sklearn.ensemble.HistGradientBoostingClassifier and Regressor which accept missing values encoded as NaNs natively. Alternatively, it is possible to preprocess the data, for instance by using an imputer transformer in a pipeline or drop samples with missing values. See https://scikit-learn.org/stable/modules/impute.html You can find a list of all estimators that handle NaN values at the following page: https://scikit-learn.org/stable/modules/impute.html#estimators-that-handle-nan-values
Here the input is made of null values, but I see that none of the previous values have null values inside them. Why is there a null value here, or am I setting the parameter wrong here?
many thanks for your help
best,
Sh-Y
MIT is a software license. For data, a data license is better (data copyright and software copyright laws are often different). May I ask you to consider making a citable Zenodo or Figshare archive of the data (novartis_cleaned_mono_unique_notraindata.sdf
etc) under a CCZero license (which is quite like the MIT license but then for data)?
Hi,
I have setup the conda environment, but when I run:
python predict_sdf.py pka_ligands.sdf pka_ligands_pred.sdf
Loading SDF...
2 molecules loaded
Loading model...
Traceback (most recent call last):
File "predict_sdf.py", line 41, in <module>
with open('RF_CV_FMorgan3_pKa.pkl', 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'RF_CV_FMorgan3_pKa.pkl'
Would you be able to share the pretrained model?
I understand if it has confidential data, this might not be possible, but I thought I would ask. :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.