pranavivak / student2

MIT License
0 stars 0 forks source link

data structures Writeup #6

Open pranavivak opened 2 months ago

pranavivak commented 2 months ago

In VSCode, show Python API code definition for request and response using GET, POST, UPDATE methods. Discuss algorithmic condition used to direct request to appropriate Python method based on request method. 323679051-d06b047d-cb56-4613-9513-239a894695ab In JavaScript code, describe fetch and method that obtained the Array of JSON objects. 323681058-4df57b46-fc7e-45a6-aa02-08b56f4fc0f3 In JavaScript code, describe fetch and method that obtained the Array of JSON objects. 323683008-6baeb12e-a37a-4084-8463-9f6b0a9a1ddc (1)

describe fetch and method that obtained the Array of JSON objects (javascript)

show and describe code that handles success. Describe how code shows success to the user in the Chrome Browser screen (javascript) The given JavaScript code shows how to respond to a successful fetch operation and inform the user on the Chrome Browser screen of the data that has been fetched. When the fetchData function is called, a request is sent to a specified server endpoint. Within the retrieve promise chain, the server's answer is examined to see if the status code indicates that the request was successful. An error is raised if the response indicates that the request was not successful. On the other hand, in the event that the fetch operation is successful, the response content is parsed as JSON in the.then() block that follows. The JSON data that has been parsed is next processed; in this case, it is shown to the user and logged to the console.

The JavaScript code that is provided shows how to handle fetch operation failures and notify the user on the Chrome browser screen. The fetchData function sends a request to the designated server endpoint when it is called. The code looks at the status code within the fetch promise chain to determine whether the server's response was successful. An error is raised if the response shows that the request was not successful. Any failures, including server-side or network-related ones, that arise during the fetch process are caught in the.catch() block that follows. When something goes wrong, the code logs the error to the console so that debugging can take place. In order to include the data, it also automatically generates a new paragraph() element.

Linear regression: A statistical method called linear regression is used to model the relationship between a target or dependent variable and one or more predictors or independent variables. In order to obtain the best-fitting line that minimizes the discrepancies between observed and anticipated values, it assumes a linear relationship between the variables. Whereas multiple linear regression uses many predictors, simple linear regression just uses one. The relationship is represented by the equation of the regression line, y = mx + b, where y is the expected value, x is the predictor, m is the slope, and b is the intercept. Linearity, residual independence, homoscedasticity, and residual normality are among the presumptions. Ordinary least squares is one approach used to estimate coefficients.

AidanDelgado2 commented 2 months ago

Reviewer: Aidan Delgado Score: 1.94/2

Your blog is good, showing all the questions and having useful screenshots. It is good that you have detailed and thorough explanations as well. The only thing that I would recommend adding is more screenshots as you may be missing a few of them.