Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Udacity ud120 Mini-Projects: Jupyter Notebooks, Python 3.8, Conda

Notifications You must be signed in to change notification settings

trsvchn/ud120-projects-py3-jupyter

 
 

Repository files navigation

Udacity ud120 Projects v2: python3 + jupyter + conda env

The aim of this fork is to improve original starter project code for students taking Intro to Machine Learning on Udacity with python 3.8, conda managing and jupyter notebooks.

Mini-Projects

Important Notes

Lesson 3: SVM

In this repo newer version of scikit-learn is used. Thus, to get the results expected by the course grader you need to use SVC with gamma='auto', since the default value of gamma changed, see sklearn.svm.SVC docs:

Changed in version 0.22: The default value of gamma changed from 'auto' to 'scale'.

For example:

clf = SVC(kernel='linear', gamma='auto')

Lesson 7: Regressions

To get the correct (acceptable by grader) results set sort_keys='../utils/python2_lesson06_keys.pkl' for feature_format function:

...
data = feature_format(dictionary, features_list, remove_any_zeroes=True, sort_keys='../utils/python2_lesson06_keys.pkl')
...

[...] This will open up a file in the tools folder with the Python 2 key order.

See this for detailed explanation.

Initial Setup

1. Clone the repo

$ git clone https://github.com/trsvchn/ud120-projects-py3-jupyter.git
$ cd ud120-projects-v2

2. Set up conda environment

2.1. Download and install anaconda

link

2.2. Create environment

$ conda env create -f environment.yml

2.3. Activate environment via

$ conda activate ud120

3. Run starter script to check env and download required data

$ python ./utils/starter.py

Languages

  • Jupyter Notebook 69.4%
  • Python 30.6%