What is Machine Learning by Examples?
Making computers able to identify cats or dogs or anything in an image. Making computers able to predict the future.Some of Algorithms that makes it possible
- Naive Bayes
- K-Nearest Neighbour (KNN)
- Linear Regression
- Convolutional Neural Networks (CNN)
- LSTM - Long Short Term Memory
Types of Algorithms
- Supervised Learning
- Unsupervised Learning
- Reinforcement Learning
What is Supervised Learning?
Create predictive models based on a set of features and labels. Example, predicting price of a house based on other houses sold in the area. Features are characteristics of the entries in the dataset. Label would be the prices of the houses. Another example is customer clustering in a supermarket based on buying habits, time of buying, frequency, etc. Another example is sign language to text or speech conversion.One of the ways to use supervised learning in frontend development is setting alt text of images, adding tags to content, etc.
Why Machine Learning in Javascript?
Because most frontend develoeprs are good at javascript. One can reduce time spent on learning a new language such as python and directly focus on Machine Learning. That helps faster prototyping.
How can Machine Learning be used in frontend?
- Import an existing pre-trained model
- Retrain an imported model (transfer learning)
- Define, train, and run mdoels entirely in the browser.
Tools
Libraries
- ML5
- Tensorflow.js
- Keras.js
- etc...
Cloud ML Providers
- GCP
- AWS
- Microsoft
- etc...
Here is an example of a frontend ML that I developed using a pre-trained model: https://weekay.herokuapp.com/api/faice
How to train a model?
Take 80% of the dataset and label them. And let the machine learning program assess the rest of the 20% of datset and label them. For this the program needs a algorithm model.
Limitations
- Machine Learning programs can take large amount of space, time, computation power, energy.
- Results from machine learning programs cannot be explained, so if in cases where explanation is required, there it could be tricky.
- Results can be morally unacceptable
- Results can be biased because of the data input
Comments
Post a Comment