Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Structures write up #10

Open
EshikaP1 opened this issue Apr 17, 2024 · 3 comments
Open

Data Structures write up #10

EshikaP1 opened this issue Apr 17, 2024 · 3 comments

Comments

@EshikaP1
Copy link
Owner

EshikaP1 commented Apr 17, 2024

Show lists:
image
Searching:
image
Algorithms: Finds the accuracy of the models by iterating and testing them:
image
Sorting:
image
Queues: Uses this to match up the payload in the json file in exercise. This means that the data given should be in the correct order!
image
From VSCode using SQLite3 Editor, show your unique collection/table in database, display rows and columns in the table of the SQLite database:
image
From VSCode model, show your unique code that was created to initialize table and create test data:
image
This code will pull data from the JSON file and place a drink for its respective calorie count in the SQLite database.
image
This code creates the class and defines the columns of the table. The properties are for CRUD.
In VSCode, show Python API code definition for request and response using GET, POST, and UPDATE methods. Discuss the algorithmic condition used to direct requests to the appropriate Python method based on the request method:
image
image
In VSCode using Debugger, show a list as extracted from database as Python objects:
image
In VSCode use Debugger and list, show two distinct example examples of dictionaries, show Keys/Values using debugger:
image
This is the code that has the POST and GET commands. The code is updated by utilizing the database. When using the delete command, the drink continues to stay deleted.
In VSCode, show algorithmic conditions used to validate data on a POST condition:
image
In Postman, show URL request and Body requirements for GET, POST, and UPDATE methods 200:
image
image
In Postman, show the JSON response for error for 400 when missing body on a POST request:
image
In Postman, show the JSON response for error for 404 when providing an unknown user ID to a UPDATE request:
image
In Chrome inspect, show response of JSON objects from fetch of GET, POST, and UPDATE methods:
image
image
image
image
image
image
In the Chrome browser, show a demo (GET) of obtaining an Array of JSON objects that are formatted into the browsers screen:
image
In JavaScript code, describe fetch and method that obtained the Array of JSON objects:
To obtain the particular array of JSON objects, I used the method GET. The reason is in my API, I have an endpoint defined so that GET is called when the page refreshes. It means it doesn't need user input or a button to control the display of data. I have another GET element in my backend which gets the calories of one drink. This GET is defined differently by setting the CONST to the API url+drinkname. drinkname is given by the user and the API URL is defined properly before.
image
In JavaScript code, show code that performs iteration and formatting of data into HTML:
image
image
Show algorithms and preparation of data for analysis. This includes cleaning, encoding, and one-hot encoding:
image
image
image
Show algorithms and preparation for predictions:
image
Linear regression is a statistical method used to model the relationship between a dependent variable and one or more independent variables. It aims to find the best-fitting straight line (or hyperplane in higher dimensions) to predict the dependent variable based on the independent variables. The algorithm calculates the coefficients that minimize the difference between the observed and predicted values, making it suitable for tasks like predicting house prices based on features like size and location.

Decision tree analysis is a machine learning technique used for classification and regression tasks. It involves creating a tree-like model of decisions based on feature variables. The algorithm splits the data into subsets based on the value of the features, aiming to maximize the homogeneity of the resulting subsets in terms of the target variable. Decision trees are intuitive to interpret and can handle both numerical and categorical data, making them useful for various applications, from diagnosing medical conditions to predicting customer churn.

@trevorhuang1
Copy link

Trevor Huang
Completeness: 0.97
Neatness: 0.95
Overal: 1.92/2

Glows:

  • All bullet points are present, and detailed description of linear regression and decision tree analysis
  • Each section of the requirements generally has a short couple of sentences for context which helped me understand the code

Grows:

  • Javascript debugging screenshots were a bit confusing. A few sentences would have helped because I had a hard time understanding what you where trying to do
  • I think that separating the blog into more clear sections by using a h1 or h2 tag would he helpful

Overall:

  • I can tell that you put a lot of effort into your CPT and its clear that you understand how your code works
  • Maybe putting this in a .md file would help but overall this is excellent

@trevorhuang1
Copy link

trevorhuang1 commented Apr 18, 2024

Peer graded by Trevor Huang
Overall grade: 95%

Collections

  • Completeness 1/1, Accuracy 1/1
  • Database and tester code is shown
  • Clear explanation of the code paired with the images

Lists and Dictionaries

  • Completeness 1/1, Accuracy 0.9/1
  • Shows using keys to access the user dictionary
  • Debugging seems to be missing but it is attempted

APIs and JSON

  • Completeness 1/1, Accuracy 1/1
  • Screenshots that are done are accurate
  • Postman request shows errors and bodies

Frontend

  • Completeness: 1/1, Accuracy 0.8/1
  • Mostly correct but I couldn't see the data for the PUT request

Algorithm Analysis

  • Completeness 1/1, Accuracy 1/1
  • Very detailed description of linear regression and decision tree analysis
  • I can tell you know these concepts well

@trevorhuang1
Copy link

trevorhuang1 commented Apr 24, 2024

Collections

  • Completeness 1/1

  • Accuracy 1/1

  • All checks met, with sufficient screenshots

  • Total 8/8

  • Grade 1/1

  • Blog Python Model code and SQLite Database

  • Show your unique collection/table in the database, display rows and columns in the table of the SQLite database from VSCode using SQLite3 Editor.

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

Lists and Dictionaries

  • Completeness 1/1
  • Accuracy 1/1
  • Total 8/8
  • Grade 1/1
  • Has sufficient screenshots, shows extracted list and examples of dictionaries in debugger
  • Blog Python API code and use of List and Dictionaries.
  • Show a list as extracted from the database as Python objects in VSCode using Debugger.
  • Show two distinct examples of dictionaries, show Keys/Values using a debugger in VSCode.

APIs and JSON

  • Total 8/8

  • Grade 1/1

  • Completeness 1/1

  • Accuracy 1/1

  • Has all screenshots

  • Organized neatly under each bullet

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

  • 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.

  • Show algorithmic conditions used to validate data on a POST condition in VSCode

  • Show URL request and Body requirements for GET, POST, and UPDATE methods in Postman.

  • Show the JSON response data for 200 success conditions on GET, POST, and UPDATE methods in Postman.

  • Show the JSON response for error for 400 when missing body on a POST request in Postman.

  • Show the JSON response for error for 404 when providing an unknown user ID to a UPDATE request in Postman.

Frontend

  • Accuracy 1/1
  • Completeness 1/1
  • Total 8/8
  • Grade 1/1
  • Blog JavaScript API fetch code and formatting code to display JSON.
  • 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.
  • Describe fetch and method that obtained the Array of JSON objects in JavaScript code.
  • Show code that performs iteration and formatting of data into HTML in JavaScript code.
  • 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.
  • Show and describe code that handles success. Describe how code shows success to the user in the Chrome Browser screen in JavaScript code.
  • Show and describe code that handles failure. Describe how the code shows failure to the user in the Chrome Browser screen in JavaScript code.

Algorithm Analysis

  • Accuracy 1/1
  • Completeness 1/1
  • Total 5/5
  • Grade 1/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.
  • Discuss concepts and understanding of Linear Regression algorithms.
  • Discuss concepts and understanding of Decision Tree analysis algorithms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants