Update to this, most of scikit-learn's weights functions have been updated to 'balanced', so you should be using something like:
'balanced'
svm = OneVsRestClassifier(LinearSVC(class_weight='balanced')) X = [[1, 2], [3, 4], [5, 4]] Y = [0,1,2] svm.fit(X, Y)