mirror of
https://github.com/gonum/gonum.git
synced 2025-10-17 12:40:52 +08:00
stat: fix ROC cutoffs
This commit is contained in:

committed by
Dan Kortschak

parent
a513de661b
commit
8c54bb4d20
@@ -85,7 +85,7 @@ func ExampleROC_knownCutoffs() {
|
||||
fmt.Printf("false positive rate: %v\n", fpr)
|
||||
|
||||
// Output:
|
||||
// true positive rate: [0.875 0.875 1]
|
||||
// true positive rate: [0.875 1 1]
|
||||
// false positive rate: [0.6 0.6 1]
|
||||
}
|
||||
|
||||
@@ -104,8 +104,8 @@ func ExampleROC_equallySpacedCutoffs() {
|
||||
fmt.Printf("false positive rate: %.3v\n", fpr)
|
||||
|
||||
// Output:
|
||||
// true positive rate: [0 0.333 0.333 0.583 0.583 0.583 0.667 0.667 1]
|
||||
// false positive rate: [0 0 0 0 1 1 1 1 1]
|
||||
// true positive rate: [0.167 0.333 0.583 0.583 0.583 0.667 0.667 0.667 1]
|
||||
// false positive rate: [0 0 0 1 1 1 1 1 1]
|
||||
}
|
||||
|
||||
func ExampleROC_aUC() {
|
||||
|
Reference in New Issue
Block a user