Demo entry 6646466

sklearn

   

Submitted by anonymous on Oct 17, 2017 at 03:00
Language: Python. Code size: 145 Bytes.

from sklearn.linear_model import LogisticRegression

model = LogisticRegression()
model.fit(train_X, train_y)
y_hat = model.predict(test_X)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).