install_pylearn_parsimony {mglasso} | R Documentation |
Install the python library pylearn-parsimony and other required libraries
Description
pylearn-parsimony contains the solver CONESTA used for the mglasso problem and is available on github at https://github.com/neurospin/pylearn-parsimony It is advised to use a python version ">=3.7,<3.10". Indeed, the latest version of scipy under which mglasso was developped is scipy 1.7.1 which is based on python ">=3.7,<3.10". In turn, this version of scipy can only be associated with a version of numpy ">=1.16.5,<1.23.0"
Usage
install_pylearn_parsimony(
method = c("auto", "virtualenv", "conda"),
conda = "auto",
extra_pack = c("scipy == 1.7.1", "scikit-learn", "numpy == 1.22.4", "six",
"matplotlib"),
python_version = "3.8",
restart_session = TRUE,
envname = NULL,
...
)
Arguments
method |
Installation method. By default, "auto" automatically finds a method that will work in the local environment. Change the default to force a specific installation method. Note that the "virtualenv" method is not available on Windows. |
conda |
The path to a |
extra_pack |
Character vector. Extra-packages to be installed. |
python_version |
The requested Python version. Ignored when attempting to install with a Python virtual environment. |
restart_session |
Restart R session after installing (note this will only occur within RStudio) |
envname |
The name, or full path, of the environment in which Python
packages are to be installed. When |
... |
additionnal arguments passed to |
Value
No return value.