text_plain_output_1.png
from sklearn import linear_model, svm, metrics

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

dataset = pd.read_csv('../input/train.csv')
target = dataset[[0]].values.ravel()
train = dataset.iloc[:, 1:].values
test = pd.read_csv('../input/test.csv').values

from sklearn import linear_model, svm, metrics
classifier = linear_model.SGDClassifier(n_iter=100, n_jobs=6, penalty='l1')

classifier.fit(train, target)