Blog Python Model code and SQLite Database.
What is shown above is the designs collection within my database which contains the various designs saved including username of owner for identification and content.
What is shown above is the intialization of the Design model object. We declare varaibles such as design type, content, name, and more.
Blog Python API code and use of List and Dictionaries.
This screenshot is taken in debugger after running the search function. We see multiple Design objects which have been freshly loaded from our database.
Blog Python API code and use of Postman to request and respond with JSON.
The screenshot above is taken from the users api file and shows the definition of CRUD operations that are run after POST, GET, or PUT requests.
The code in the screenshot above checks to see whether certain variables in the request body json are None or not. If they are, then they will be updated into the user’s entry in the collection in the database.
In Postman, show the JSON response data for 200 success conditions on GET, POST, and UPDATE methods.
Blog JavaScript API fetch code and formatting code to display JSON.
The screenshot above is taken after running a fetch request to the search endpoint in the backend. The console on the right displays the json data returned by the backend.
The screenshot above shows the frontend displaying multiple objects after iterating through the results provided from the backend.
In JavaScript code, show code that performs iteration and formatting of data into HTML. The screenshot above shows the code that allows the frontend to do it.
The screenshot above shows the browser rerouting a successful result to the home page.
In the ML projects, there is a great deal of algorithm analysis. Think about preparing data and predictions.
Show algorithms and preparation of data for analysis. This includes cleaning, encoding, and one-hot encoding.
Discuss concepts and understanding of Linear Regression algorithms.
Linear regression is like finding the best-fit line through a bunch of points on a graph. Picture this: you have data points scattered on a graph, and you want to draw a straight line that comes closest to touching all of them. That’s what linear regression does. It helps us understand the relationship between two things. For example, if we’re trying to predict the price of a house based on its size, linear regression helps us figure out how much the price changes for each additional square foot. It’s pretty handy in making predictions, but it does have some rules. For instance, it assumes that the relationship between the variables is straight and not curved, and that the points are spread out evenly. Overall, it’s a simple yet powerful tool for understanding and predicting things in the real world.
Decision trees are a bit like playing a game of 20 Questions. You start with a question at the top, like “Is it bigger than a breadbox?” Based on the answer, you move down the tree to another question, like “Is it green?” And so on, until you reach the end and find your answer. In the world of data, decision trees help us make decisions by breaking down a problem into smaller, simpler decisions. Each “question” in the tree is based on a feature of the data, like the size or color of something. By asking these questions in a certain order, the tree can learn to make accurate predictions or classifications. It’s a neat way to organize and understand data, and it’s especially useful when there are lots of different factors to consider. Plus, decision trees are easy to interpret, making them a favorite tool for data scientists and analysts alike.