This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cs401r_w2016:lab1 [2016/02/08 18:52] admin |
cs401r_w2016:lab1 [2021/06/30 23:42] (current) |
||
---|---|---|---|
Line 55: | Line 55: | ||
For part 2, the data you should use is downloadable here: | For part 2, the data you should use is downloadable here: | ||
- | [[http://hatch.cs.byu.edu/courses/stat_ml/store_train.csv|Rossman store sales data]] | + | [[http://liftothers.org/courses/stat_ml/store_train.csv|Rossman store sales data]] |
---- | ---- | ||
Line 77: | Line 77: | ||
should see "Notebook" and "Python 2". This will create a new | should see "Notebook" and "Python 2". This will create a new | ||
notebook. | notebook. | ||
+ | |||
+ | **Note:** When you turn in your notebook, you should turn in the ''.ipynb'' file. Do not take a screen shot, or turn in an HTML page. | ||
Here's some starter code to help you generate an image. The ''nbimage'' function will display the image inline in the notebook: | Here's some starter code to help you generate an image. The ''nbimage'' function will display the image inline in the notebook: | ||
Line 130: | Line 132: | ||
---- | ---- | ||
====Hints:==== | ====Hints:==== | ||
+ | |||
+ | When using an ipython notebook, it's nice to make your plots show up inline. To do this, add the following lines to the first cell of your notebook: | ||
+ | |||
+ | <code python> | ||
+ | |||
+ | # this tells seaborn and matplotlib to generate plots inline in the notebook | ||
+ | %matplotlib inline | ||
+ | |||
+ | # these two lines allow you to control the figure size | ||
+ | %pylab inline | ||
+ | pylab.rcParams['figure.figsize'] = (16.0, 8.0) | ||
+ | |||
+ | </code> | ||
The following python functions might be helpful: | The following python functions might be helpful: |