samhita-l / compsci

MIT License
0 stars 0 forks source link

Data Structures Writeup #8

Open samhita-l opened 5 months ago

samhita-l commented 5 months ago

Blog Python Model code and SQLite Database. I made a activity for my CPT project which uses user input to give the price of their order as output. Show your unique collection/table in database, display rows and columns in the table of the SQLite database from VSCode using SQLite3 Editor. This SQLite database is a list of the orders a user can input. n

In VSCode using Debugger, show a list as extracted from database as Python objects. m

Show your unique code that was created to initialize table and create test data from VSCode model. l

Lists and Dictionaries - Total /3, Grade /1

Blog Python API code and use of List and Dictionaries. Show a list as extracted from database as Python objects in VSCode using Debugger. q

Show two distinct examples of dictionaries, show Keys/Values using debugger in VSCode. o

APIs and JSON - Total /7, Grade /1

Blog Python API code and use of Postman to request and respond with JSON.

Everytime postman reaches out with a condition, with the correct JSON code, such putting down the name of the user you would to see, you could pull user information, check if their login works, and so on.

Show Python API code definition for request and response using GET, POST, UPDATE methods in VSCode. Discuss algorithmic condition used to direct request to appropriate Python method based on request method. n

Show algorithmic conditions used to validate data on a POST condition in VSCode. Under the self method, this checks the user id, name, and password when the user enters it into the field. This prevents any other garbage credentials from getting in as it refers back to the database with the read method and presents the data as JSON. z

Show URL request and Body requirements for GET, POST, and UPDATE methods in Postman. z Show the JSON response data for 200 success conditions on GET, POST, and UPDATE methods in Postman. z z

Show the JSON response for error for 400 when missing body on a POST request in Postman. z Show the JSON response for error for 404 when providing an unknown user ID to a UPDATE request in Postman.

z Frontend - Total /8, Grade /1

Blog JavaScript API fetch code and formatting code to display JSON.

As the GET method is triggered, you can see the numerous process such as the images or users passed through.

Show response of JSON objects from fetch of GET, POST, and UPDATE methods in Chrome inspect.

Show a demo (GET) of obtaining an Array of JSON objects that are formatted into the browsers screen in the Chrome browser.

z

Describe fetch and method that obtained the Array of JSON objects in JavaScript code.

When triggered, the get method triggers the login_api here, which creates a JSON string with the user entered data and sends a post request to verify if it matches with the SQlite table.

Show code that performs iteration and formatting of data into HTML in JavaScript code.

z

Show a demo (POST or UPDATE) gathering and sending input and receiving a response that show update. Repeat this demo showing both success and failure in the Chrome browser. z

Show and describe code that handles success. Describe how code shows success to the user in the Chrome Browser screen in JavaScript code. z

Show and describe code that handles failure. Describe how the code shows failure to the user in the Chrome Browser screen in JavaScript code. z Optional/Extra, ML Algorithm Analysis - Total /5, Grade /1

Machine Learning Algorithm Analysis

Show algorithms and preparation of data for analysis. This includes cleaning, encoding, and one-hot encoding. Show algorithms and preparation for predictions. z z Discuss concepts and understanding of Linear Regression algorithms. z Discuss concepts and understanding of Decision Tree analysis algorithms. z

vidhaganji commented 4 months ago

Grading:

Regular Score: 4.75/5 Grade: 0.95 Extra ML: 0.95/1

Collections: Grade: 0.95/1

Samhita demonstrated her understanding of SQLite databases and how she initialized her journal database. However, she should add more test data to the SQLite table to enhance its reliability.

Lists and Dictionaries: Grade: 0.95/1

Samhita showed her ability to identify lists and dictionaries in her code through debugging. She could improve by making her test data more realistic and cropping out unnecessary sections of the screenshots.

APIs and JSON: Grade: 0.95/1

Samhita demonstrated her understanding of GET and POST requests through screenshots and code. She used Postman effectively but should provide additional context for each image to clarify her intentions.

Frontend: Grade: 0.95/1

Samhita completed this section well, with screenshots showing her knowledge of frontend code responsible for success/failure statements and for printing and formatting response data on the screen.

ML Algorithm Analysis: Total: 5/5, Grade: 1/1

Samhita demonstrated her understanding of data cleaning, training, and testing in her code. However, she could enhance her analysis by changing some parameters, such as using a different model or dataset, to better showcase her capabilities.