Purpose

  • We can use the algorithms to reverse the pupose of the previous Data Structures Poject code.

Instead of converting SAT Score to a GPA, we can instead convert GPA to possible SAT Score.

We will use a different database with the RandomForestRegressor to adapt and produce predictions. We will instead have to use a float instead of integer format for the input, which is because th GPA will be entered to the nearest hundredth instead of a whole number.

Incorporating Lists

  • We can add a mechanism that saves the predicted score to the user’s attributes as a list.

For Sorting and Searching, we can add all the scores to the user’s attributes and create a function that sorts through the list to find the 3 highest predicted scores.


Final Project - Altered

The GPA to SAT score calculation is done with RandomForestRegressor and a different dataset compared to before (with SAT to GPA).

I did something different from the plans for my actual project. I decided to not rely on SQL for sorting and searching and instead just work with saved values in arrays.

This is what a user would see while going to the website for their score calculation.

The user must add a list of GPAs separated by commas, and each GPA inputted will be one iteration of conversion to SAT Score. We defined an empty array beforehand, so that each time the program iterates, it will append the converted score to an array.

After getting the values in the array, it will go through each score to figure out which is the maximum by seeing if the next score in the list is greater than the value defined by the item substring. After it finishes looping through, the maximum predicted score is saved is maxValue and is returned.

By doing this, it searches through the elements in the array to find the one that is greatest, and outputs the greatest predicted score based on your GPA.

This shows the predicted scores individually in the console as it hits this breakpoint for the 4th time, displaying the 4 individual conversions.

To display the max value, this shows the iteration through each of the converted SAT scores, and in the end, it outputs the actual maximum value.

Key Commits

Reflection

These projects have allowed me to grow myself into a capable full stack developer, through using various front and backend methods to fulfill program purposes. I have learned to use CRUD, Machine Learning, Algorithms, Binary, and more. The backend language I use is python. My projects include my CPT warmup and official projects, with binary and different backend requests. Despite this being my first year and having difficulties with groups, I have learned to deal with many different types of situations that makes me a capable worker.