Skip to content

Latest commit

 

History

History

README.md

Machine Learning foR Psychologists

Last updated 2026-04-17.

This folder contains Python translations of the R tutorials in the main repo.

Setup

You will need:

  1. A fresh installation of Python (preferably version 3.13 or above).
  2. Positron IDE (optional, but recommended).
  3. The following modules, listed by lesson:
Lesson Modules
01 intro with regression numpy, pandas, plotnine, patsy, statsmodels, scipy, ISLP, sklearn
02 cross validation pandas, plotnine, sklearn, ISLP, numpy
03 classification numpy, pandas, plotnine, sklearn, ISLP, numpy, pandas, matplotlib, sklearn, palmerpenguins, pandas, plotnine, sklearn, imblearn, ISLP, numpy, pandas, plotnine, sklearn, ISLP
07 explanatory model analysis numpy, pandas, matplotlib, plotnine, sklearn, dalex, ISLP, palmerpenguins
08 unsupervised learning pandas, numpy, matplotlib, seaborn, plotnine, sklearn, scipy, palmerpenguins

Installing Python Modules

You can install all the Python modules used by saving a requirements.txt file:

ISLP>=0.4.0
dalex>=1.8.0
imbalanced-learn>=0.13.0
matplotlib>=3.10.3
numpy>=2.3.1
palmerpenguins>=0.1.4
pandas>=3.0.0
patsy>=1.0.1
plotnine>=0.15.0
scikit-learn>=1.6.1
scipy>=1.16.0
seaborn>=0.13.2
statsmodels>=0.14.5

And then running

pip install -r requirements.txt