简体   繁体   中英

How to use libsvm to obtain support vectors (SVs) in python

In matlab, the libsvm has a variable called SVs, we can use it to easily get SVs, but in Python, when I use this variable, it's not what I want. So, I'd like to ask how libsvm gets support vectors in Python?

Have you tried this?

support_vector_coefficients = model.get_sv_coef()
support_vectors = model.get_SV()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM