필터 지우기
필터 지우기

How to get LDA classifier weights with classify?

조회 수: 1 (최근 30일)
Laurie
Laurie 2017년 5월 12일
편집: Laurie 2017년 5월 12일
I'm using classify for LDA and want to extract the classifier weights. I am using R2013b, which means that I have to use classify for this problem. Positive classes are labeled as 1, and negative classes as -1 in a binary classification problem. I'm running classify as follows: classify(test_data , train_data ,labels_train,'linear')
What I'm getting from coeff(2).linear seems to be the weights... but if I try to get the weights by another method (sum of the feature vectors of the positive minus negative classes) I'm not getting exactly the same values. The values do correlate strongly, but they're not the same.
How do I get the LDA weights from classify?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by