Posts

Showing posts from September, 2026

CST383 - Week 4

CST383 - Week 4      This week, we worked more on plotting data, this time creating more complicated plots involving two or more variables. We used pd.crosstab() to create grouped bar plots for two variables, while for three or more we use sns.barplot() .       I had some trouble understanding why some of my plots are not plotting at all (loading infinitely) while others are able to plot. I tried a few ways to plot them, including normalizing the data, using different aggregations like sum() , and limiting the amount of data that was plotted using top 10 values [:10] . I will have to review the homework once it is graded to understand how best to work through these problems.     I also learned more about P notation for joint probability: use "and", or a ",", or a "^". Such as, what is the probability for a and b: P(a and b), or P(a, b), or P(a ^ b). For OR, use "or" or a "v".       For conditional probabilities like "for ...

CST383 - Week 3

CST383 - Week 3      This week we learned more about how to work in Colab/Jupyter notebook. I personally used Jupyter because I thought self-hosted material is more appropriate for my use case. I think this notebook style of coding is very useful, because I can test only a single block of code at a time rather than the full file.      We started to learn how to code Pyplot visualizations of data, which is very nice. I am a visual learner so these exercises were very helpful for me to understand these concepts better. I didn't have much difficulty understanding these concepts to complete the homework, though I know I will need to read further into graphing two continuous variables in the coming weeks. A few things stood out to me to remember: Use a semicolon ( ; ) after the last plotting statement or use plt.show() at the end of the code block to prevent matplotlib from automatically adding text before a graph. Use plt.xlabel() or plt.ylabel() to label th...

CST383 - Week 2

CST383 Week 2 This week we learned about Pandas, a data analysis Python library that makes working with data tables much easier. It can make use of NumPy if needed, specifically for functions like mean().  I have had some trouble with remembering Pandas syntax. I know to use df['x'] to obtain a Series named 'x', then df[df[x]] to obtain the whole Dataframe named 'x'. Once we got to aggregation, I was also unsure when to use 'groupby' and when to use 'aggregate'. One more thing that was difficult for me to get right was how to use conditions correctly in selecting data. One of the most helpful articles to understand this better was the  user guide to Pandas. Along with this, I also found a nice cheat sheet on the Pandas home page for remembering specific syntax. Here is the link to it. I think I would need a lot more specific examples in the lecture to understand the syntax better and when to apply them.

CST383 - Week 1

CST383 Week 1 New semester! This is the Intro to Data Science course.      The reading started us off with the Iris dataset, and how to manipulate the data from it to predict future iris data (at a 97% success rate). This style of machine learning is supervised learning, where we train it on data that we know to be true. This allows us to measure the accuracy of the model in identifying irises.     For unsupervised learning, we feed data into the algorithm but do not provide any known output data that we know to be true. An example would be to create a summary of reviews of a product. There is no known output data because the reviews must be fed into the algorithm first and compare it to existing reviews in the database, and find commonalities with them.     Before creating a supervised model, the best practice is to look at your data (visually helps, like a scatter plot) and find commonalities with each feature of the samples. This can help identify i...