Calculating Mean Absolute Error and Mean Squared Error without using sklearn library
@epythonlab #ml #AI #codetip
@epythonlab #ml #AI #codetip
Poll: 10
What is your plan in the upcoming 2022?
What is your plan in the upcoming 2022?
Anonymous Poll
68%
Learn new skillπ
18%
Have my own startupπ
4%
Get married and have babiesπ₯°
10%
Idkππ€£
Forwarded from Epython Lab (Asibeh Tenager)
You can conclude the result based on the graph shows
#QuarantineYourself #LearnDataScience #Bioinformatics #Python #Pandas #Matplotlib
#QuarantineYourself #LearnDataScience #Bioinformatics #Python #Pandas #Matplotlib
π1
Do you want to become a software engineer at one of tech company's in USA?
https://www.microverse.org/?grsf=4ydafn
@epythonlab
https://www.microverse.org/?grsf=4ydafn
@epythonlab
www.microverse.org
Microverse | Learn How To Code Online
Want to learn how to code? Pay $0 until you become a software developer and land a job. Learn programming from the best online coding school and connect with a global community.
π1
Forwarded from Epython Lab
π» Linear Algebra for Natural Language Processing
https://www.kdnuggets.com/2021/08/linear-algebra-natural-language-processing.html
Code: https://github.com/Taaniya/linear-algebra-for-ml
@epythonlab #nlp #code #article
https://www.kdnuggets.com/2021/08/linear-algebra-natural-language-processing.html
Code: https://github.com/Taaniya/linear-algebra-for-ml
@epythonlab #nlp #code #article
Data science from scratch
πLink: https://github.com/joelgrus/data-science-from-scratch
@epythonlab #books
πLink: https://github.com/joelgrus/data-science-from-scratch
@epythonlab #books
π2
How to be good at algorithms?
https://telegra.ph/How-to-be-good-at-algorithms-01-06
https://telegra.ph/How-to-be-good-at-algorithms-01-06
Telegraph
How to be good at algorithms?
By @epythonlab 1. Fundamentals Start with a solid base DSA(data structure and algorithm) that can be done through online courses, textbooks, YouTube videos, etc. 2. Math and Logic:- Try to solve basic riddles and gradually increase the difficulty. 3. Bigβ¦
β€4π1
How to Fix: KeyError in Pandas?
The KeyError in Pandas occurs when you try to access the columns in pandas DataFrame, which does not exist, or you misspell them.
Typically, we import data from the excel name, which imports the column names, and there are high chances that you misspell the column names or include an unwanted space before or after the column name.
https://itsmycode.com/how-to-fix-keyerror-in-pandas/
@epythonlab
The KeyError in Pandas occurs when you try to access the columns in pandas DataFrame, which does not exist, or you misspell them.
Typically, we import data from the excel name, which imports the column names, and there are high chances that you misspell the column names or include an unwanted space before or after the column name.
https://itsmycode.com/how-to-fix-keyerror-in-pandas/
@epythonlab
π4
Learn Python from Scratch
PDF: https://cfm.ehu.es/ricardo/docs/python/Learning_Python.pdf
@epythonlab #pythonbooks
PDF: https://cfm.ehu.es/ricardo/docs/python/Learning_Python.pdf
@epythonlab #pythonbooks
π7π₯1
Project Idea: Building a spam classifier
Introduction
Spam detection is one of the major applications of Machine Learning in the interwebs today. Pretty much all of the major email service providers have spam detection systems built in and automatically classify such mail as 'Junk Mail'.
In this mission we will be using the Naive Bayes algorithm to create a model that can classify dataset SMS messages as spam or not spam, based on the training we give to the model. It is important to have some level of intuition as to what a spammy text message might look like.
What are spammy messages?
Usually they have words like 'free', 'win', 'winner', 'cash', 'prize', or similar words in them, as these texts are designed to catch your eye and tempt you to open them. Also, spam messages tend to have words written in all capitals and also tend to use a lot of exclamation marks. To the recipient, it is usually pretty straightforward to identify a spam text and our objective here is to train a model to do that for us!
Being able to identify spam messages is a binary classification problem as messages are classified as either 'Spam' or 'Not Spam' and nothing else. Also, this is a supervised learning problem, as we know what are trying to predict. We will be feeding a labelled dataset into the model, that it can learn from, to make future predictions.
@epythonlab #projectIdea #ml
Introduction
Spam detection is one of the major applications of Machine Learning in the interwebs today. Pretty much all of the major email service providers have spam detection systems built in and automatically classify such mail as 'Junk Mail'.
In this mission we will be using the Naive Bayes algorithm to create a model that can classify dataset SMS messages as spam or not spam, based on the training we give to the model. It is important to have some level of intuition as to what a spammy text message might look like.
What are spammy messages?
Usually they have words like 'free', 'win', 'winner', 'cash', 'prize', or similar words in them, as these texts are designed to catch your eye and tempt you to open them. Also, spam messages tend to have words written in all capitals and also tend to use a lot of exclamation marks. To the recipient, it is usually pretty straightforward to identify a spam text and our objective here is to train a model to do that for us!
Being able to identify spam messages is a binary classification problem as messages are classified as either 'Spam' or 'Not Spam' and nothing else. Also, this is a supervised learning problem, as we know what are trying to predict. We will be feeding a labelled dataset into the model, that it can learn from, to make future predictions.
@epythonlab #projectIdea #ml
π5
Implementing Bag of Words from scratch
Before we dive into scikit-learn's Bag of Words (BoW) library to do the dirty work for us, let's implement it ourselves first so that we can understand what's happening behind the scenes.
Step 1: Convert all strings to their lower case form.
Let's say we have a document set:
documents = ['Hello, how are you!',
'Win money, win from home.',
'Call me now.',
'Hello, Call hello you tomorrow?']
Instructions:
Convert all the strings in the documents set to their lower case. Save them into a list called 'lower_case_documents'. You can convert strings to their lower case in python by using the lower() method.
@epythonlab #codetip #naive_bayes #ml #AI
Before we dive into scikit-learn's Bag of Words (BoW) library to do the dirty work for us, let's implement it ourselves first so that we can understand what's happening behind the scenes.
Step 1: Convert all strings to their lower case form.
Let's say we have a document set:
documents = ['Hello, how are you!',
'Win money, win from home.',
'Call me now.',
'Hello, Call hello you tomorrow?']
Instructions:
Convert all the strings in the documents set to their lower case. Save them into a list called 'lower_case_documents'. You can convert strings to their lower case in python by using the lower() method.
@epythonlab #codetip #naive_bayes #ml #AI
π3π₯1
Epython Lab
Implementing Bag of Words from scratch Before we dive into scikit-learn's Bag of Words (BoW) library to do the dirty work for us, let's implement it ourselves first so that we can understand what's happening behind the scenes. Step 1: Convert all stringsβ¦
Step 2: Removing all punctuation
Instructions: Remove all punctuation from the strings in the document set. Save the strings into a list called 'sans_punctuation_documents'.
@epythonlab #codetip #ml #AI #naive_bayes
Instructions: Remove all punctuation from the strings in the document set. Save the strings into a list called 'sans_punctuation_documents'.
@epythonlab #codetip #ml #AI #naive_bayes
π3