...

Full Bio

10 Things Only A Programming Language Programmer Can Understand

today

Which Programming Language Is Better For You Java Or Python?

yesterday

Most Popular Programming Language And Tech Method Used For Hacking

2 days ago

Is Spiking Neural Network The Next Generation Of Machine Learning?

3 days ago

How To Deploy Keras Deep Learning Models With Flask

4 days ago

Which Programming Languages in Demand & Earn The Highest Salaries?

379413 views

Top 10 Best Countries for Software Engineers to Work & High in-Demand Programming Languages

309585 views

50+ Data Structure, Algorithms & Programming Languages Interview Questions for Programmers

227733 views

100+ Data Structure, Algorithms & Programming Language Interview Questions Answers for Programmers - Part 1

201981 views

Why I Studied Full-time 8 Months For A Google Programming Language Interview

153768 views

### 6 Steps To Write Any Machine Learning Algorithm From Scratch: Perceptron Case Study

- What is it?
- What is it typically used for?
- When CAN'T I use this?

- The single layer Perceptron is the most basic neural network. It's typically used for binary classification problems (1 or 0, "yes" or "no").
- It's a linear classifier, so it can only really be used when there's a linear decision boundary. Some simple uses might be sentiment analysis (positive or negative response) or loan default prediction ("will default", "will not default"). For both cases, the decision boundary would need to be linear.
- If the decision boundary is non-linear, you really can't use the Perceptron. For those problems, you'll need to use something different.

- The Elements of Statistical Learning, Section 4.5.1
- Understanding Machine Learning: From Theory To Algorithms, Section 21.4

- Jason Brownlee's article on his Machine Learning Mastery blog, How To Implement The Perceptron Algorithm From Scratch In Python
- Sebastian Raschka's blog post, Single-Layer Neural Networks, and Gradient Descent

- Initialize the weights
- Multiply weights by inputs and sum them up
- Compare the result against the threshold to compute the output (1 or 0)
- Update the weights
- Repeat

- You'll gain an even deeper understanding because you're teaching others what you just learned.
- You can showcase it to potential employers. It's one thing to show that you can implement an algorithm from a machine learning library, but it's even more impressive if you can implement it yourself from scratch.