|
1 |
| -# Yellowbrick Examples |
| 1 | +# Yellowbrick Examples |
2 | 2 |
|
3 | 3 | [](../docs/images/visualizers.png)
|
4 | 4 |
|
5 |
| -Welcome to the yellowbrick examples directory! This directory contains a gallery of visualizers and their application to classification, regression, clustering, and other machine learning techniques with Scikit-Learn. Examples have been submitted both by the Yellowbrick team and also users like you! The result is a rich gallery of tools and techniques to equip your machine learning with visual diagnostics and visualizer workflows! |
| 5 | +Welcome to the yellowbrick examples directory! This directory contains a gallery of visualizers and their application to classification, regression, clustering, and other machine learning techniques with scikit-learn. Examples have been submitted both by the Yellowbrick team and also users like you! The result is a rich gallery of tools and techniques to equip your machine learning with visual diagnostics and visualizer workflows! |
6 | 6 |
|
7 |
| -## Getting Started |
| 7 | +## Getting Started |
8 | 8 |
|
9 |
| -The notebook to explore first is the `examples.ipynb` Jupyter notebook. This notebook contains the executable examples from the tutorial in the documentation. However, before you can successfully run this notebook, you must first download the sample datasets. To download the samples run the downloader script: |
| 9 | +The notebook to explore first is the `examples.ipynb` Jupyter notebook. This notebook contains the executable examples from the tutorial in the documentation. You can run the notebook as follows: |
10 | 10 |
|
11 | 11 | ```
|
12 |
| -$ python download.py |
| 12 | +$ jupyter notebook examples.ipynb |
13 | 13 | ```
|
14 | 14 |
|
15 |
| -This should create a directory called `examples/data`, which in turn will contain CSV or text datasets. There are two primary problems that the download script may have: first, you may get the error `"The requests module is required to download data"`. To fix this problem: |
| 15 | +If you don't have jupyter installed, or other dependencies, you may have to `pip install` them. |
16 | 16 |
|
17 |
| -``` |
18 |
| -$ pip install requests |
19 |
| -``` |
20 |
| - |
21 |
| -The second problem may be `"Download signature does not match hardcoded signature!"` This problem means that the file you're trying to download has changed. Either download a more recent version of Yellowbrick, or use the URLs in the `download.py` script to fetch the data manually. If there are any other problems, please notify us via [GitHub Issues](https://github.com/DistrictDataLabs/yellowbrick/issues). |
22 |
| - |
23 |
| -Once the example data has been downloaded, you can run the examples notebook as follows: |
24 |
| - |
25 |
| -``` |
26 |
| -$ jupyter notebook examples.ipynb |
27 |
| -``` |
28 |
| - |
29 |
| -If you don't have jupyter installed, or other dependencies, you may have to `pip install` them. |
30 |
| - |
31 |
| -## Organization |
| 17 | +## Organization |
32 | 18 |
|
33 | 19 | The examples directory contains many notebooks, folders and files. At the top level you will see the following:
|
34 | 20 |
|
35 |
| -- examples.ipynb: a notebook with executable versions of the tutorial visualizers |
36 |
| -- download.py: a script to download the example data sets |
37 |
| -- palettes.ipynb: a visualization of the Yellowbrick palettes |
38 |
| -- data: a directory containing the example datasets. |
| 21 | +- examples.ipynb: a notebook with executable versions of the tutorial visualizers |
| 22 | +- palettes.ipynb: a visualization of the Yellowbrick palettes |
| 23 | +- regression.ipynb: a notebook exploring the regression model visualizers. |
39 | 24 |
|
40 |
| -In addition to these files and directory, you will see many other directories, whose names are the GitHub usernames of their contributors. You can explore these user submitted examples or submit your own! |
| 25 | +In addition to these files and directory, you will see many other directories, whose names are the GitHub usernames of their contributors. You can explore these user submitted examples or submit your own! |
41 | 26 |
|
42 |
| -### Contributing |
| 27 | +### Contributing |
43 | 28 |
|
44 | 29 | To contribute an example notebook of your own, perform the following steps:
|
45 | 30 |
|
46 |
| -1. Fork the repository into your own account |
47 |
| -2. Checkout the develop branch (see [contributing to Yellowbrick](http://www.scikit-yb.org/en/latest/about.html#contributing) for more. |
48 |
| -3. Create a directory in the repo, `examples/username` where username is your GitHub username. |
49 |
| -4. Create a notebook in that directory with your example. See [user testing](http://www.scikit-yb.org/en/latest/evaluation.html) for more. |
50 |
| -5. Commit your changes back to your fork. |
51 |
| -6. Submit a pull-request from your develop branch to the Yellowbrick develop branch. |
52 |
| -7. Complete the code review steps with a Yellowbrick team member. |
53 |
| - |
54 |
| -That's it -- thank you for contributing your example! |
55 |
| - |
56 |
| -A couple of notes. First, please make sure that the Jupyter notebook you submit is "run" -- that is it has the output saved to the notebook and is viewable on GitHub (empty notebooks don't serve well as a gallery). Second, please do not commit datasets, but instead provide instructions for downloading the dataset. You can create a downloader utility similar to ours. |
57 |
| - |
58 |
| -One great tip, is to create your PR right after you fork the repo; that way we can work with you on the changes you're making and communicate about how to have a very successful contribution! |
| 31 | +1. Fork the repository into your own account |
| 32 | +2. Checkout the develop branch (see [contributing to Yellowbrick](http://www.scikit-yb.org/en/latest/about.html#contributing) for more. |
| 33 | +3. Create a directory in the repo, `examples/username` where username is your GitHub username. |
| 34 | +4. Create a notebook in that directory with your example. See [user testing](http://www.scikit-yb.org/en/latest/evaluation.html) for more. |
| 35 | +5. Commit your changes back to your fork. |
| 36 | +6. Submit a pull-request from your develop branch to the Yellowbrick develop branch. |
| 37 | +7. Complete the code review steps with a Yellowbrick team member. |
59 | 38 |
|
60 |
| -### User Examples |
| 39 | +That's it -- thank you for contributing your example! |
61 | 40 |
|
62 |
| -In this section we want to thank our examples contributors, and describe their notebooks so that you can find an example similar to your application! |
| 41 | +A couple of notes. First, please make sure that the Jupyter notebook you submit is "run" -- that is it has the output saved to the notebook and is viewable on GitHub (empty notebooks don't serve well as a gallery). Second, please do not commit datasets, but instead provide instructions for downloading the dataset. You can create a downloader utility similar to ours. |
63 | 42 |
|
64 |
| -- [bbengfort](https://github.com/bbengfort): visualizing text classification |
65 |
| -- [rebeccabilbro](https://github.com/rebeccabilbro): visualizing book reviews data |
66 |
| -- [nathan](https://github.com/ndanielsen/): visualizing the Iris dataset |
| 43 | +One great tip, is to create your PR right after you fork the repo; that way we can work with you on the changes you're making and communicate about how to have a very successful contribution! |
0 commit comments