projects
/
trackerpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Covert vector to python list
[trackerpp.git]
/
python
/
predictor.py
diff --git
a/python/predictor.py
b/python/predictor.py
index
b58fd41
..
5dc12af
100644
(file)
--- a/
python/predictor.py
+++ b/
python/predictor.py
@@
-28,6
+28,7
@@
def predict(index, features):
pp = predictors[index]
true_class = int(pp.classes_[1] == 1)
prob = pp.predict_proba([features])[0, true_class]
+ print prob
return prob