79742812

Date: 2025-08-21 22:37:03
Score: 1
Natty:
Report link

Update to this, most of scikit-learn's weights functions have been updated to 'balanced', so you should be using something like:

svm = OneVsRestClassifier(LinearSVC(class_weight='balanced'))

X = [[1, 2], [3, 4], [5, 4]]
Y = [0,1,2]

svm.fit(X, Y)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jacky