Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| ease:machinelearning:visualizing_the_data [2020/06/22 09:40] – s_fuyedc | ease:machinelearning:visualizing_the_data [2020/06/22 11:37] (current) – s_fuyedc |
|---|
| Feel free to look into the narratives' data object. Also, find the constant strings of the table column headers in the file header_names.py, which has been imported in this section's code cells. | Feel free to look into the narratives' data object. Also, find the constant strings of the table column headers in the file header_names.py, which has been imported in this section's code cells. |
| |
| ==== Solutions ==== | When the Jupyter Notebook is opened freshly, remember to execute all the code snippets again, such that the variables and functions are defined and usable later in the lecture. Hit the button in the header of the lecture to execute all code blocks at once. If you get stuck somewhere in the lecture, feel free to ask the tutor or consider the following solutions. |
| | |
| When the exercise is opened freshly, remember to execute all the code snippets again, such that the variables and functions are defined and usable later in the lecture. Hit the button in the header of the lecture to execute all code blocks at once. If you get stuck somewhere in the lecture, feel free to ask the tutor or consider the following solutions. | |
| | |
| == 1. Data Analysis == | |
| |
| | **Solution** |
| <code python>#TODO Create a piechart for label 'Next' | <code python>#TODO Create a piechart for label 'Next' |
| narratives[header_names.NEXT].value_counts().plot.pie(figsize=(10,10),autopct='%1.1f%%') | narratives[header_names.NEXT].value_counts().plot.pie(figsize=(10,10),autopct='%1.1f%%') |
| {{ :ease:neems_piechart.png |}} | {{ :ease:neems_piechart.png |}} |
| |
| | In [[https://ease-crc.org/material/ease/machinelearning/data_preparation|the next section]] we will prepare the NEEMS data for training. |