Closed faltinl closed 4 years ago
Hi Leo,
this might be due to the fact that there is an inconsistency with scikit-learn because you need to install scikit-learn via
pip install scikit-learn
but later you use it via
import sklearn
For you, this might mean that you can try
py_install(scikit-learn)
I hope this works, Florian
Hi Florian,- thank you so much - that was it. Working like a charm. After some fiddling around with R/Py conversion, I even reproduced the heatmap of your example. Cheers, Leo
Happy to hear that, Leo :)
I want to use
ppscore
via R by means ofreticulate
(which I know from Keras in R; see link for details) and do the following in a fresh R session:This shows the Python environments actually available on my computer:
I choose
use_condaenv("r-reticulate")
, thenpy_install("ppscore", pip = TRUE)
, which produces:Now, I want to import ppscore,
ppscore <- import('ppscore')
, which producesOk - so I do
py_install(sklearn)
, which givesThis is somewhat surprising since when I do a
pip list
under Anaconda prompt I getwhich clearly shows that package
sklearn
is present. And now I am at a loss what I could further do to successfully import and use (!)ppscore
. I have to add that I am a complete newcomer to Python, so I am not at all familiar with Python environments.I really would appreciate any useful hints - thanks in advance, Leo