yitingliii commited on
Commit
532c86a
1 Parent(s): 51945a3

Update svm.py

Browse files
Files changed (1) hide show
  1. svm.py +1 -2
svm.py CHANGED
@@ -1,4 +1,4 @@
1
- ```python
2
  from sklearn.svm import SVC
3
  svm_model = SVC(kernel='linear', random_state=42)
4
  svm_model.fit(X_train_tfidf, y_train)
@@ -6,4 +6,3 @@ y_pred = svm_model.predict(X_test_tfidf)
6
  accuracy = accuracy_score(y_test, y_pred)
7
  print(f"Random Forest Accuracy: {accuracy:.4f}")
8
  print(classification_report(y_test, y_pred))
9
- ```
 
1
+
2
  from sklearn.svm import SVC
3
  svm_model = SVC(kernel='linear', random_state=42)
4
  svm_model.fit(X_train_tfidf, y_train)
 
6
  accuracy = accuracy_score(y_test, y_pred)
7
  print(f"Random Forest Accuracy: {accuracy:.4f}")
8
  print(classification_report(y_test, y_pred))