New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Console output for predictions #2
Comments
should be quite easy to create this yourself.
|
Thank you for the input! I'll definitely look into this at some point. |
You could also use |
Oh my bad! It actually works :) > printf "1 1:10\n2 1:20\n" > model.dat
> svm-train -q -g 1 model.dat model.svm
> echo '0 1:20' | svm-predict -q /dev/stdin model.svm /dev/stdout
2 Thank you so much! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be interesting, for performance reasons, that applications using
svm-predict
to classify single documents were able to pass the document to classify as a command line argument (instead of a file name), and that the predicted class be printed directly to the output (instead of writing it to a file). This would spare lots of useless IO operations.What about adding a new usage:
with a console output, for instance:
$ svm-predict '1:-0.14 2:0.2666667 3:0.1074111' model.svm -1
The text was updated successfully, but these errors were encountered: