Skip to content

This repo serves the code for the 3 labs of the Machine Learning course at Tongji University.

Notifications You must be signed in to change notification settings

Motion115/ML-Labs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ML-Lab

Recomended Path for installing dependencies

Use conda env + pip

conda create -n ml-labs python=3.7
conda activate ml-labs
  • ML
# for scikit-learn
pip install -U scikit-learn
# matplotlib
pip install matplotlib
# pandas
pip install pandas

scikit-learn: 1.0.2; matplotlib: 3.5.3; pandas: 1.3.5

  • DL
# pytorch
# on cpu
pip install torch torchvision
# on gpu
# download following files from the link, please make sure the cuda version is supported by your driver
# https://download.pytorch.org/whl/cu117/torchvision-0.14.1%2Bcu117-cp37-cp37m-win_amd64.whl
# https://download.pytorch.org/whl/cu117/torch-1.13.1%2Bcu117-cp37-cp37m-win_amd64.whl
# change to your directory containing the 2 whl files, then run
pip install ./torch-1.13.1+cu117-cp37-cp37m-win_amd64.whl
pip install ./torchvision-0.14.1+cu117-cp37-cp37m-win_amd64.whl
# using conda to install pytorch is too much pain!
# you can test the installment of pytorch through pytorch_installation_test.py

Other dependencies will be installed on the fly.

The dependencies list is not complete.

On monitoring gpu stat (Windows)

pip install gpustat 
gpustat -cp -i

# watch -n 0.2 -d nvidia-smi is not compatible on windows

About

This repo serves the code for the 3 labs of the Machine Learning course at Tongji University.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published