ML2. Machine Learning Process

Search for a command to run...

No comments yet. Be the first to comment.
Discover how machines learn to predict and make decisions in this series on machine learning fundamentals.
Introduction In 1959, Arthur Samuel defined machine learning as follows: “Field of study that gives computers the ability to learn without being explicitly programmed” "Explicitly programmed" in this case means that we don't have to code everything...
Step 1: Accessing the AWS Amplify Console Our journey begins in the AWS Management Console. To start, first choose a Region. This is an important decision as it determines the location of your application's infrastructure. Consider factors like your ...

[A1] - Brute Force Time: O(n^2) Space: O(n^2) class Solution: def generate(self, numRows: int) -> List[List[int]]: # Initialize the triangle with the first row pascal_triangle = [] for i in range(numRows): # S...

YouTube Video https://youtu.be/hfN4VONP4HQ [A1] - Brute Force Time: O(n^2) Space: O(1) class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: for i in range(len(nums)): for j in range(i+1, len(nums)): ...

LeetCode's Valid Anagram problem checks if two strings, `s` and `t`, are anagrams by comparing character frequencies.

LeetCode's Contains Duplicate problem checks if there are any duplicate elements in a given array, often solved using hash sets or sorting.

To build a machine-learning model, we normally follow a step-by-step process. We can divide all the steps into three groups. Those are:
After collecting the data, the first thing we have to do is clean the data. Data cleaning is the process of fixing or removing incorrect, corrupted, incorrectly formatted, duplicate, or incomplete data within a dataset. After cleaning the data, we have to split the data into training & test sets. We do it to avoid overfitting. I will explain it more in the upcoming blogs. Now we have to do feature scaling. This helps to ensure that features with different units of measurement or scales do not dominate the model training process.

Now comes the most interesting part, model building. We have to build a model and train it using the training set that we got after splitting our data. We have to decide which model we should use according to the data we have. After completing the training part, now our model is ready to make predictions.

And finally, we move on to evaluations. We will calculate some performance metrics and make a verdict about our model, whether it's a good-fitting model and if it works for our data or not. And this is a very important step to make sure that the models we build really serve the purpose that they're designed for.
