Open TheEdoardo93 opened 6 years ago
Here, svm_train
train expects an enums not an integer to specify parameters. You can provide them with e.g.,
from pysofia.sofia_ml import eta_type
pysofia.svm_train(..., eta=eta_type.basic_eta)
which would correspond to eta=0
. And so on for all the other parameters defined in sofia_ml.py
. See for instance how it is used in compat.py
. Hope this helps.
Without documentation, it's really hard to understand how to use this library! P.S. the error I've received is a bug in your software or am I wrong while passing the parameters to the svm_train() method?
@TheEdoardo93 I appreciate your persistance :) I didn't write this wrapper, and I'm only helping a bit with maintenance. I am aware that the documentation isn't great, but at the moment I don't have the bandwidth to make it better. Any Pull Requests improve the documentaiton would be greatly appreciated!
Thanks, now I prove what you have said!
Another question: I want to use this library for applying Learning to Rank (in particular RankSVM). Can I use this library for my purpose? The first step of this algorithm (RankSVM) is to create the rank constraints: this step is performed by this library, Sofia-ml or do I have to write the code for doing this task on my own?
Thanks, best regards!
Hi, I tried out to use this library for training (and testing) RankSVM ranking model but I've received an error.
When I launch the above code line, I've received an error:
My question is: can you give me any tips for the correct input that this model expects? Without documentation, it's really hard to understand how to use this library!
P.S. the error I've received is a bug in your software or am I wrong while passing the parameters to the
svm_train()
method?Thanks for the attention, Edoardo