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

Error: Python module ngboost was not found #1

Closed
p-schaefer opened this issue Apr 29, 2022 · 1 comment
Closed

Error: Python module ngboost was not found #1

p-schaefer opened this issue Apr 29, 2022 · 1 comment

Comments

@p-schaefer
Copy link

Trying to follow tutorial example, but running into an error here:

model <- NGBforecast$new(Dist = Dist("Normal"),
                         Base = sklearner(module = "linear_model",
                                          class = "Ridge"),
                         Score = Scores("LogScore"),
                         natural_gradient = TRUE,
                         n_estimators = 200,
                         learning_rate =  0.1,
                         minibatch_frac = 1,
                         col_sample = 1,
                         verbose = TRUE,
                         verbose_eval = 5,
                         tol = 1e-5)

List of 20
 $ python              : chr "C:/Users/ecopu/AppData/Local/r-miniconda/envs/r-reticulate/python.exe"
 $ libpython           : chr "C:/Users/ecopu/AppData/Local/r-miniconda/envs/r-reticulate/python38.dll"
 $ pythonhome          : chr "C:/Users/ecopu/AppData/Local/r-miniconda/envs/r-reticulate"
 $ pythonpath          : chr "C:\\Users\\ecopu\\AppData\\Local\\R-MINI~1\\envs\\R-RETI~1\\python38.zip;C:\\Users\\ecopu\\AppData\\Local\\R-MI"| __truncated__
 $ prefix              : chr "C:\\Users\\ecopu\\AppData\\Local\\R-MINI~1\\envs\\R-RETI~1"
 $ exec_prefix         : chr "C:\\Users\\ecopu\\AppData\\Local\\R-MINI~1\\envs\\R-RETI~1"
 $ base_exec_prefix    : chr "C:\\Users\\ecopu\\AppData\\Local\\R-MINI~1\\envs\\R-RETI~1"
 $ virtualenv          : chr ""
 $ virtualenv_activate : chr ""
 $ version_string      : chr "3.8.13 | packaged by conda-forge | (default, Mar 25 2022, 05:59:00) [MSC v.1929 64 bit (AMD64)]"
 $ version             : chr "3.8"
 $ architecture        : chr "64bit"
 $ anaconda            : logi FALSE
 $ conda               : logi TRUE
 $ numpy               :List of 2
  ..$ path   : chr "C:/Users/ecopu/AppData/Local/r-miniconda/envs/r-reticulate/Lib/site-packages/numpy"
  ..$ version:Class 'numeric_version'  hidden list of 1
  .. ..$ : int [1:3] 1 22 3
 $ required_module     : NULL
 $ required_module_path: NULL
 $ available           : logi TRUE
 $ python_versions     : chr "C:/Users/ecopu/AppData/Local/r-miniconda/envs/r-reticulate/python.exe"
 $ forced              : NULL
 - attr(*, "class")= chr "py_config"
Error: Python module ngboost was not found.

Detected Python configuration:

This is on Windows 10, first time installing miniconda and python.

@p-schaefer
Copy link
Author

p-schaefer commented Apr 29, 2022

Found the solution.

conda_install(envname = 'r-reticulate',"ngboost")

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