mirror of
https://github.com/sjwhitworth/golearn.git
synced 2025-04-26 13:49:14 +08:00
change Probability order
This commit is contained in:
parent
518c0d84c4
commit
674de9cae3
@ -291,7 +291,7 @@ func (o ClassesProba) Swap(i, j int) {
|
||||
o[i], o[j] = o[j], o[i]
|
||||
}
|
||||
func (o ClassesProba) Less(i, j int) bool {
|
||||
return o[i].Probability < o[j].Probability
|
||||
return o[i].Probability > o[j].Probability
|
||||
}
|
||||
|
||||
// Predict class probabilities of the input samples what, returns a sorted array (by probability) of classes, and another array representing it's probabilities
|
||||
|
Loading…
x
Reference in New Issue
Block a user