Return uncompressed support vectors for getSupportVectors on linear SVM (Bug #4096)
This commit is contained in:

committed by
Vadim Pisarevsky

parent
544990e377
commit
0d706f6796
@@ -675,11 +675,19 @@ public:
|
||||
|
||||
/** @brief Retrieves all the support vectors
|
||||
|
||||
The method returns all the support vector as floating-point matrix, where support vectors are
|
||||
The method returns all the support vectors as a floating-point matrix, where support vectors are
|
||||
stored as matrix rows.
|
||||
*/
|
||||
CV_WRAP virtual Mat getSupportVectors() const = 0;
|
||||
|
||||
/** @brief Retrieves all the uncompressed support vectors of a linear %SVM
|
||||
|
||||
The method returns all the uncompressed support vectors of a linear %SVM that the compressed
|
||||
support vector, used for prediction, was derived from. They are returned in a floating-point
|
||||
matrix, where the support vectors are stored as matrix rows.
|
||||
*/
|
||||
CV_WRAP Mat getUncompressedSupportVectors() const;
|
||||
|
||||
/** @brief Retrieves the decision function
|
||||
|
||||
@param i the index of the decision function. If the problem solved is regression, 1-class or
|
||||
|
Reference in New Issue
Block a user