Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

classification algorithms pythonb´

from sklearn.datasets import load_iris
from sklearn.linear_model import LogisticRegression
X, y = load_iris()
LR_classifier = LogisticRegression(random_state=0)
LR_classifier.fit(X, y)
LR_classifier.predict(X[:3, :])
Source by www.analyticsvidhya.com #
 
PREVIOUS NEXT
Tagged: #classification #algorithms
ADD COMMENT
Topic
Name
5+3 =