Hi, I’m having a problem with installing the PatientLevelPrediction R package on my mac. My default python is Python 3.6.3 |Anaconda custom (64-bit). I confirm this version by confirming that python I’m running R version 3.4.3.I’ve updated numpy, scikit-learn, and tensorflow. When I check the installation with PatientLevelPrediction::checkPlpInstallation(), I get the following output:
Checking R population
Generating covariates
Generating cohorts
Generating outcomes
Generating exclusion
- Done
Checking Models
Patient-Level Prediction Package version 2.0.4
AnalysisID: 20180524091809
Cohort size: 2000
Covariates: 33801
- Ok
Initialize Python Version 2.7.10 (default, Jul 15 2017, 17:16:57)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)]
Patient-Level Prediction Package version 2.0.4
AnalysisID: 20180524091809
Cohort size: 2000
Covariates: 33801
R is already connected to Python!
Traceback (most recent call last):
File “”, line 1, in
ImportError
:
No module named sklearn
Patient-Level Prediction Package version 2.0.4
AnalysisID: 20180524091809
Cohort size: 2000
Covariates: 33801
Patient-Level Prediction Package version 2.0.4
AnalysisID: 20180524091809
Cohort size: 2000
Covariates: 33801
Patient-Level Prediction Package version 2.0.4
AnalysisID: 20180524091809
Cohort size: 2000
Covariates: 33801
Patient-Level Prediction Package version 2.0.4
AnalysisID: 20180524091809
Cohort size: 2000
Covariates: 33801
- Done
Checking support for large data objects
- Done
PatientLevelPrediction installation check completed…
Response code: 247357937827
The output after running the command: PatientLevelPrediction::interpretInstallCode(247357937827) is:
Issue with createStudyPopulation()
Issue with lasso logistic regression
Issue with random forest
Issue with mlp
Issue with ada boost
Issue with decison tree
Issue with naive bayes
Issue with knn
Issue with gradient boosting machine
NULL
I think the problem is that PythonInR is using Python Version 2.7.10. When I try installing PythonInR through anaconda RStudio the package fails to compile. Can anyone suggest an easy solution to fix for this, or should I try installing with the broadsea-methodslibrary docker?