[Python] Support Vector Machine. Precision and/or accuracy?

Discussão em 'Python' iniciado por Stack, Março 19, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to figure whether the code I use calculates precision or accuracy or both. Since I only have a little background in statistics (in another language) I don't really understand the Wikipedia article covering that topic.

    Concretely I use following Python code:

    from sklearn import svm, cross_validation
    clf = svm.SVC(kernel=kernel, C=C)
    scores = cross_validation.cross_val_score(clf, FeatureMatrix, np.squeeze(LabelMatrix), cv=d_inds)


    Documentation for the scikit-learn functions can be found here:


    Continue reading...

Compartilhe esta Página