« All Events
12 PM – AI and ML – Gamas
August 17 @ 12:00 pm - 1:00 pm
Today We Did
- We learned more about running streamlit in local machine.
- We learned about the single digit computer vision. We learned how training data matters. If you train your models with black and white images, then most likely it will predicts well with black and white images. And it will predicts poorly with gradient color images.
- We learned there are more than just computer vision in AI and ML world. There are predicting stock market, predicting health.
- We started doing Titanic Survivorship project.
Homework
- Learn about “pandas” python library. What are the common use case for this library.
- Learn about “numpy” python library. What are the common use case for this library.
- Create a Python project that would read a CSV file (student_scores.csv) and display the average test score for each subject
- Download this csv file: students_scores
- Create a new python project in pycharm
- Inside that project create a new text file (not a python file) requirements.txt . Inside the file, put this one line.
pandas==2.2.2
- After you do this, the pycharm should display a blue link to “install requirement” . Click this to install pandas library into your project.
- create main.py
- Inside the file write codes
- Import the Pandas library.
- Load the CSV file into a DataFrame.
- Display the first few rows of the DataFrame to get an overview of the data.
- Print the column names and the number of rows and columns in the dataset.
- Calculate the mean score for each subject (Math, Science, English).
- If you do it correctly, you should see the following as your output
Column Names: Index(['Name', 'Math', 'Science', 'English'], dtype='object')
Number of Rows and Columns: (5, 4)
Mean Scores for Each Subject:
Math 84.0
Science 87.4
English 87.0
dtype: float64