What does clf mean in machine learning?
Question:
When doing fitting, I always come across code like
clf = svm.SVC(kernel='linear', C=1).fit(X_train, y_train)
(from http://scikit-learn.org/stable/modules/cross_validation.html#k-fold)
What does clf
stand for? I googled around but didn’t find any clues.
Answers:
In the link you provided, clf refers to classifier.
In the scikit-learn
tutorial, it’s short for classifier.:
We call our estimator instance clf
, as it is a classifier.
You can write svm_model or any easy name at place of of clf for better understanding.
When doing fitting, I always come across code like
clf = svm.SVC(kernel='linear', C=1).fit(X_train, y_train)
(from http://scikit-learn.org/stable/modules/cross_validation.html#k-fold)
What does clf
stand for? I googled around but didn’t find any clues.
In the link you provided, clf refers to classifier.
In the scikit-learn
tutorial, it’s short for classifier.:
We call our estimator instance
clf
, as it is a classifier.
You can write svm_model or any easy name at place of of clf for better understanding.