-
-
Save AI-MOO/92606ac4bb779999788d612fe4146133 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# تدريب النموذج على بيانات التدريب | |
SVC_clf = SVC().fit(X_train, y_train) | |
# اختبار النموذج عن طريق توقع بيانات الاختبار | |
SVC_prediction = SVC_clf.predict(X_test) | |
# التحقق من ضبط النموذج عن طريق مقارنة القيم الحقيقية و القيم المتوقعة | |
SVC_accuracy = accuracy_score(y_test, SVC_prediction)*100 | |
# Accuracy | الضبط | |
print(f'Support Vector Classifier accuracy: {SVC_accuracy:.2f} %') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment