You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-76Lines changed: 19 additions & 76 deletions
Original file line number
Diff line number
Diff line change
@@ -2,56 +2,23 @@
2
2
3
3
These are materials I use for various classes on deep learning. Each file is a self contained unit that demonstrates a specific thing. Downloading or cloning this repository before class is a great way to follow along.
4
4
5
-
# Reusing the materials
6
-
7
-
Please feel free to use these materials for your own classes/projects etc. If you do that, I would love it if you sent me a message and let me know what you're up to.
8
-
9
5
# Videos
10
6
11
-
You can find video overviews of a lot of the material at https://youtu.be/Zxrk88rA7fA.
12
-
13
-
## Prerequisites
14
-
15
-
These classes are intended for people who are comfortable wirth python.
16
-
17
-
### Reading material for people who haven't done a lot of programming
18
-
19
-
If you are uncomfortable opening up a terminal, I strongly recommend doing a quick tutorial before you take this class. Setting up your machine can be painful but once you're setup you can get a ton out of the class. I recommend getting started ahead of time.
20
-
21
-
If you're on Windows I recommend checking out http://thepythonguru.com/.
22
-
23
-
If you're on a Mac check out http://www.macworld.co.uk/how-to/mac/coding-with-python-on-mac-3635912/
7
+
You can find short, free video classes at https://youtu.be/Zxrk88rA7fA. The code for all of the videos is in the directory *videos*.
24
8
25
-
If you're on linux, you're probably already reasonably well setup :).
9
+
# Examples
26
10
27
-
If you run into trouble, the book Learn Python the Hard Way has installation steps in great detail: https://learnpythonthehardway.org/book/ex0.html. It also has a refresher on using a terminal in the appendix.
11
+
In my in-person classes, I typically use a lot of the examples in the directory *examples*. This code is liable to change as I update things.
28
12
29
-
### Reading material for people who are comfortable with programming, but haven't done a lot of python
30
-
31
-
If you are comfortable opening up a terminal but want a python intro/refresher check out https://www.learnpython.org/ for a really nice introduction to Python.
32
-
33
-
### Suggestions for people who have done a lot of programming in python
34
-
35
-
A lot of people like to follow along with ipython or jupyter notebooks and I think that's great! It makes data exploration easier. I also really appreciate pull requests to make the code clearer.
36
-
37
-
If you've never used pandas or numpy - they are great tools and I use them heavily in my work and for this class. I assume no knlowedge of pandas and numpy but you may want to do some learning on your own. You can get a quick overview of pandas at http://pandas.pydata.org/pandas-docs/stable/10min.html. There is a great overview of numpy at https://docs.scipy.org/doc/numpy/user/quickstart.html.
38
-
39
-
## Installation
40
-
I recommend running this code in a pre-configured environment. You can rent an AWS EC2 node with any of the "Deep Learning" AMIs from aws.amazon.com or a GCP instance.
41
-
42
-
Once you have a cloud machine setup run:
43
-
44
-
```
45
-
pip install -r requirements.txt
46
-
```
13
+
# Reusing the materials
47
14
48
-
You can also install this class locally, but it may be trickier.
15
+
Please feel free to use these materials for your own classes/projects etc. If you do that, I would love it if you sent me a message and let me know what you're up to.
49
16
50
17
### Windows
51
18
52
19
#### Git
53
20
54
-
Install git: https://git-scm.com/download/win
21
+
Install git if you don't have it: https://git-scm.com/download/win
55
22
56
23
#### Anaconda
57
24
@@ -78,19 +45,6 @@ activate ml-class
78
45
79
46
Whenever you start a new terminal, you will need to call `activate ml-class`.
80
47
81
-
#### Common problems
82
-
83
-
The most common problem is an old version of python. Its easy to have multiple versions of python installed at once and Macs in particular come with a default version of python that is too old to install tensorflow.
84
-
85
-
Try running:
86
-
87
-
```
88
-
python --version
89
-
```
90
-
91
-
If your version is less than 2.7.12, you have a version issue. Try reinstalling python 2.
92
-
93
-
94
48
#### Clone this github repository
95
49
```
96
50
git clone https://github.com/lukas/ml-class.git
@@ -125,39 +79,28 @@ If you get an error message here, most likely you don't have git installed. Go
125
79
```
126
80
pip install -r requirements.txt
127
81
```
128
-
## Check installation
129
82
130
-
To make sure your installation works go to the directory where this file is and run
131
-
```
132
-
python test-scikit.py
133
-
```
134
83
135
-
You should see the output "Scikit is installed!"
84
+
### Reading material for people who haven't done a lot of programming
136
85
137
-
```
138
-
python test-keras.py
139
-
```
86
+
If you are uncomfortable opening up a terminal, I strongly recommend doing a quick tutorial before you take this class. Setting up your machine can be painful but once you're setup you can get a ton out of the class. I recommend getting started ahead of time.
140
87
141
-
You should see the output "Using TensorFlow backend. Keras is installed!"
88
+
If you're on Windows I recommend checking out http://thepythonguru.com/.
142
89
143
-
##Troubleshooting on Ubuntu
90
+
If you're on a Mac check out http://www.macworld.co.uk/how-to/mac/coding-with-python-on-mac-3635912/
144
91
145
-
If the above 2 commands fail and you see an error "ImportError no module named".. verify if you have multiple versions of python installed, specially if you are on Ubuntu version 16 or higher.
92
+
If you're on linux, you're probably already reasonably well setup :).
146
93
147
-
Run python --version
148
-
-- may be you have v2.7?
149
-
Run python3 --version
150
-
-- may be you have python 3.5+?
94
+
If you run into trouble, the book Learn Python the Hard Way has installation steps in great detail: https://learnpythonthehardway.org/book/ex0.html. It also has a refresher on using a terminal in the appendix.
151
95
152
-
If you have python3 installed, verify your ml-class installation by running below commands
153
-
python3 test-scikit.py
154
-
```
96
+
### Reading material for people who are comfortable with programming, but haven't done a lot of python
155
97
156
-
You should see the output "Scikit is installed!"
98
+
If you are comfortable opening up a terminal but want a python intro/refresher check out https://www.learnpython.org/ for a really nice introduction to Python.
157
99
158
-
```
159
-
python3 test-keras.py
160
-
```
100
+
### Suggestions for people who have done a lot of programming in python
101
+
102
+
A lot of people like to follow along with ipython or jupyter notebooks and I think that's great! It makes data exploration easier. I also really appreciate pull requests to make the code clearer.
103
+
104
+
If you've never used pandas or numpy - they are great tools and I use them heavily in my work and for this class. I assume no knlowedge of pandas and numpy but you may want to do some learning on your own. You can get a quick overview of pandas at http://pandas.pydata.org/pandas-docs/stable/10min.html. There is a great overview of numpy at https://docs.scipy.org/doc/numpy/user/quickstart.html.
161
105
162
-
You should see the output "Using TensorFlow backend. Keras is installed!"
0 commit comments