Hi everyone!
Right now, I am trying to port Jun Zhu's MedLDA model in Python, which is a
deterministic topic model.
In the original code, the author used SVMLight, and scikit-learn uses Lib
SVM, so I have some problems get things done.
1. Is there any way in scikit-learn to get the document number for
thesupport vector?
Since classification is not my sole purpose, document number is quite
curcial for the topic modeling stage. I looked over the reference section
on the scikit-learn website, but couldn't find how to get the doc number
for support vectors.
2. Another problem concerns the dual coefficients, in the documents,
dual_coef_ which holds the product *y_i * alpha_i*. Right now, I want to
get alpha_i, is it OK that i just use *dual_coef_ / **y_i* to get *
alpha_i* ?
Thank you very much!
--
θζΊε (Zhibo Xiao) / Sean | Ph.D. candidate of Machine Learning & Data Mining
Room 106, Information School, Dalian Maritime University, Dalian, China,
116026
Cell: +86-159-0-42-53-41-0 GMT+8
MSN: [email protected] | Email: [email protected] | Gtalk:
[email protected]
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general