Skip to content

Commit 3b99e75

Browse files
Merge branch 'main' into dev_eg
2 parents 81a3432 + 6a31e2c commit 3b99e75

8 files changed

+813
-208
lines changed

README.md

+23-18
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,42 @@
1-
# D-Lab's Python Machine Learning Fundamentals Workshop
1+
# D-Lab's Python Machine Learning Workshop
22

3-
[![Datahub](https://img.shields.io/badge/launch-datahub-blue)](https://dlab.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fdlab-berkeley%2FPython-Machine-Learning-Fundamentals&urlpath=lab%2Ftree%2FPython-Machine-Learning-Fundamentals%2F&branch=main) [![Binder](http://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/dlab-berkeley/Python-Machine-Learning-Fundamentals/HEAD)
3+
[![Datahub](https://img.shields.io/badge/launch-datahub-blue)](https://dlab.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fdlab-berkeley%2FPython-Machine-Learning&urlpath=lab%2Ftree%2FPython-Machine-Learning%2F&branch=main) [![Binder](http://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/dlab-berkeley/Python-Machine-Learning/HEAD)
44

5-
This repository contains the materials for D-Lab’s Python Machine Learning Fundamentals workshop. Prior experience with [Python Fundamentals](https://github.com/dlab-berkeley/Python-Fundamentals) is assumed.
5+
This repository contains the materials for D-Lab’s Python Machine Learning workshop. Prior experience with [Python Fundamentals](https://github.com/dlab-berkeley/Python-Fundamentals), [Python Data Visualization](https://github.com/dlab-berkeley/Python-Data-Visualization), and [Python Data Wrangling](https://github.com/dlab-berkeley/Python-Data-Wrangling) is assumed.
66

77
## Workshop Goals
88

9-
In this workshop, we provide an introduction to machine learning in Python. First, we'll cover some machine learning basics, including its foundational principles, types of machine learning algorithms, how to fit models, and how to evaluate them. Then, we'll explore several machine learning tasks, includes classification, regression, and clustering. We'll demonstrate how to perform these tasks using `scitkit-learn`, the main package used for machine learning in Python. Finally, we'll go through an automatic model selection tool called `TPOT`.
9+
In this workshop, we provide an introduction to machine learning in Python. First, we'll cover some machine learning basics, including its foundational principles. Then, we'll dive into code, understanding how to perform regression, regularization, preprocessing, and classification. There are additional components of the workshop which explore building machine learning pipelines and unsupervised learning. We'll demonstrate how to perform these tasks using `scikit-learn`, the main package used for machine learning in Python.
1010

11-
Basic familiarity with Python is assumed. If you are not comfortable with the material in [Python Fundamentals](https://github.com/dlab-berkeley/Python-Fundamentals), we recommend attending that workshop first.
11+
This workshop is divided into the following parts:
12+
13+
1. **Part 1: Regression and Regularization.** How can we use linear models to predict continuous outputs, and how can we prevent their overfitting?
14+
2. **Part 2: Preprocessing and Classification.** What preprocessing steps do we need to take before fitting models? Then, how do we perform classification?
15+
3. **Part 3: Machine Learning Pipeline.** We'll walk through a machine learning task, from exploratory data analysis to building an entire machine learning pipeline.
16+
17+
The first two parts are taught as a joint series. Part 3 can be attended on its own, but prior knowledge of Parts 1 and 2 are assumed.
1218

1319
## Installation Instructions
1420

1521
Anaconda is a useful package management software that allows you to run Python and Jupyter notebooks very easily. Installing Anaconda is the easiest way to make sure you have all the necessary software to run the materials for this workshop. Complete the following steps:
1622

1723
1. [Download and install Anaconda (Python 3.9 distribution)](https://www.anaconda.com/products/individual). Click "Download" and then click 64-bit "Graphical Installer" for your current operating system.
1824

19-
2. Download the [Python-Machine-Learning-Fundamentals workshop materials](https://github.com/dlab-berkeley/Python-Machine-Learning-Fundamentals):
25+
2. Download the [Python-Machine-Learning workshop materials](https://github.com/dlab-berkeley/Python-Machine-Learning):
2026

2127
* Click the green "Code" button in the top right of the repository information.
2228
* Click "Download Zip".
2329
* Extract this file to a folder on your computer where you can easily access it (we recommend Desktop).
2430

25-
3. Optional: if you're familiar with `git`, you can instead clone this repository by opening a terminal and entering `git@github.com:dlab-berkeley/Python-Machine-Learning-Fundamentals.git`.
31+
3. Optional: if you're familiar with `git`, you can instead clone this repository by opening a terminal and entering `git@github.com:dlab-berkeley/Python-Machine-Learning.git`.
2632

2733
## Run the code
2834

2935
Now that you have all the required software and materials, you need to run the code:
3036

3137
1. Open the Anaconda Navigator application. You should see the green snake logo appear on your screen. Note that this can take a few minutes to load up the first time.
3238

33-
2. Click the "Launch" button under "Jupyter Notebooks" and navigate through your file system to the `Python-Machine-Learning-Fundamentals` folder you downloaded above.
39+
2. Click the "Launch" button under "Jupyter Notebooks" and navigate through your file system to the `Python-Machine-Learning` folder you downloaded above.
3440

3541
3. Click `00_introduction.md` to begin.
3642

@@ -40,13 +46,13 @@ Now that you have all the required software and materials, you need to run the c
4046

4147
If you have a Berkeley CalNet ID, you can run these lessons on UC Berkeley's DataHub by clicking this button:
4248

43-
[![Datahub](https://img.shields.io/badge/launch-datahub-blue)](https://dlab.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fdlab-berkeley%2FPython-Machine-Learning-Fundamentals&urlpath=lab%2Ftree%2FPython-Machine-Learning-Fundamentals%2F&branch=main)
49+
[![Datahub](https://img.shields.io/badge/launch-datahub-blue)](https://dlab.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fdlab-berkeley%2FPython-Machine-Learning&urlpath=lab%2Ftree%2FPython-Machine-Learning%2F&branch=main)
4450

45-
By using this link, you can save your work and come back to it at any time. When you want to return to your saved work, just go straight to DataHub [https://datahub.berkeley.edu](https://datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fdlab-berkeley%2FPython-Machine-Learning-Fundamentals&urlpath=tree%2FPython-Machine-Learning-Fundamentals%2F&branch=main), sign in, and you click on the `Python-Machine-Learning-Fundamentals` folder.
51+
By using this link, you can save your work and come back to it at any time. When you want to return to your saved work, just go straight to DataHub [https://datahub.berkeley.edu](https://datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fdlab-berkeley%2FPython-Machine-Learning&urlpath=tree%2FPython-Machine-Learning%2F&branch=main), sign in, and you click on the `Python-Machine-Learning` folder.
4652

4753
If you don't have a Berkeley CalNet ID, you can still run these lessons in the cloud, by clicking this button:
4854

49-
[![Binder](http://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/dlab-berkeley/Python-Machine-Learning-Fundamentals/main?urlpath=tree)
55+
[![Binder](http://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/dlab-berkeley/Python-Machine-Learning/main?urlpath=tree)
5056

5157
By using this button, you cannot save your work unfortunately.
5258

@@ -78,16 +84,15 @@ Here are other Python workshops offered by the D-Lab:
7884

7985
## Intermediate/advanced copmetency
8086

81-
* [Computational Text Analysis in Python](https://github.com/dlab-berkeley/computational-text-analysis-spring-2019)
82-
* [Introduction to Machine Learning in Python](https://github.com/dlab-berkeley/python-machine-learning)
83-
* [Introduction to Artificial Neural Networks in Python](https://github.com/dlab-berkeley/ANN-Fundamentals)
87+
* [Python Text Analysis](https://github.com/dlab-berkeley/Python-Text-Analysis)
88+
* [Python Deep Learning](https://github.com/dlab-berkeley/Python-Deep-Learning)
8489
* [Fairness and Bias in Machine Learning](https://github.com/dlab-berkeley/fairML)
8590

8691
# Contributors
87-
* Samy Abdel-Ghaffar
88-
* Sean Perez
89-
* Christopher Hench
9092
* Pratik Sachdeva
93+
* Emily Grabowski
9194
* George McIntire
9295
* Sam Temlock
93-
* Emily Grabowski
96+
* Samy Abdel-Ghaffar
97+
* Sean Perez
98+
* Christopher Hench

images/overfitting.png

14.1 KB
Loading

images/validation.png

5.31 KB
Loading

lessons/00_introduction.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Python Machine Learning: Introduction
2+
3+
Please refer to these [introductory slides](https://docs.google.com/presentation/d/1IwlTdkOGXVGwgCxPVyWEXOOyRf_sZtAcKFSoJ9k4jig/edit?usp=sharing) for the first component of the workshop.

0 commit comments

Comments
 (0)