Discussions>Simple image recognition model with machine learning>

Simple image recognition model with machine learning

I've got a data generated from user interactions and other sources.
I get a visualization based on those values and they are really simple.

Which algorithm do you suggest to recognize these images?
I need simple and fast machine learning algorithm.

3 votesLP262.00
1 Answers

I assume you get something like feature matrix, where each points represents to a certain value. Something like this

First you can use unsupervised learning and have nice separation between the examples,
but if you need just a simple recognition algorithm,
you can use logistic regression or very simple and small classification network.

Both approaches are implemented in scikit-learn package and you can just import and use it.

Here is a simple example of logistic regression

from sklearn.datasets import load_iris
from sklearn.linear_model import LogisticRegression

X, y = load_iris(return_X_y=True)

clf = LogisticRegression(random_state=0, solver='lbfgs', 
   multi_class='multinomial').fit(X, y)

clf.predict(X[:2, :])
clf.predict_proba(X[:2, :])

clf.score(X, y)
Couldn't find what you were looking for?and we will find an expert to answer.
How helpful was this page?