Skip to content

cczhuang420/Machine_learning_exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How to run and use this repo?

Machine_learning_exercises

1. conda create --prefix ./env numpy matplotlib pandas scikit-learn 2. conda activate ./env

Check the env list

conda env list

Check all the tools

conda list

Steps of creating a Machine Learning (or Data Science) Project (Mac):

  1. Download miniconda (or anaconda) and install it on the local computer. https://docs.conda.io/en/latest/miniconda.html#macos-installers
  2. Test the installation in the terminal: $which conda
  3. Create a project folder and run: $cd project folder
  4. Create a custom environment within the project folder: (i.e.) $ conda create --prefix ./env numpy matplotlib pandas scikit-learn jupyter
  5. Activate the new environment by running: $conda activate)
  6. Load up a Jupiter Notebook and check the tool we need: $jupyter notebook

image

Share environment (two ways):

  1. share the entire project folder, including the environment folder containing all required packages.
    • Simply only need to activate the environment and run the code.
  2. share a .yml file of the conda environment
    • first export the env: conda env export --prefix ./env > environment.yml
    • others to create the same env based on this environment.yml file: conda env create --file environment.yml --name env_from_file

About

This repository used as machine learning exercise reference

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published