This package collects data sets and various helper functions for ISLP.
We generally recommend creating a conda environment to isolate any code
from other dependencies. The ISLP
package does not have unusual dependencies, but this is still
good practice. To create a conda environment in a Mac OS X or Linux environment run:
conda create --name islp
To run python code in this environment, you must activate it:
conda activate islp
On windows, create a Python
environment called islp
in the Anaconda app. This can be done by selecting Environments
on the left hand side of the app's screen. After creating the environment, open a terminal within that environment by clicking on the "Play" button.
Having completed the steps above, we use pip
to install the ISLP
package:
pip install ISLP
The ISLP
labs use torch
and various related packages for the lab on deep learning. The requirements
can be found here. Alternatively, you can install them directly using pip
within a terminal. As above, ensure
that you have activated that conda environment (Mac OS or Linux) or
started a terminal within that environment from the Anaconda app (Windows).
pip install -r https://raw.githubusercontent.com/intro-stat-learning/ISLP/main/torch_requirements.txt
If JupyterLab is not already installed, run the following after having activated your islp
environment:
pip install jupyterlab
Either use the same pip
command above or install JupyterLab from the Home
tab. Ensure that the environment
is your islp
environment. This information appears near the top left in the Anaconda Home
page.
See the read the docs page for the latest documentation.