mirror of
https://github.com/sjwhitworth/golearn.git
synced 2025-04-25 13:48:49 +08:00
metrics: fixing pairwise CloneFrom
This commit is contained in:
parent
495bb91a48
commit
850c914780
@ -34,7 +34,7 @@ func TestChebyshev(t *testing.T) {
|
||||
})
|
||||
|
||||
Convey("When calculating distance with different dimension matrices", func() {
|
||||
vectorX.Clone(vectorX.T())
|
||||
vectorX.CloneFrom(vectorX.T())
|
||||
So(func() { chebyshev.Distance(vectorX, vectorY) }, ShouldPanic)
|
||||
})
|
||||
|
||||
|
@ -43,7 +43,7 @@ func TestCranberrra(t *testing.T) {
|
||||
})
|
||||
|
||||
Convey("When calculating distance with different dimension matrices", func() {
|
||||
vectorX.Clone(vectorX.T())
|
||||
vectorX.CloneFrom(vectorX.T())
|
||||
So(func() { cranberra.Distance(vectorX, vectorY) }, ShouldPanic)
|
||||
})
|
||||
|
||||
|
@ -43,7 +43,7 @@ func TestManhattan(t *testing.T) {
|
||||
})
|
||||
|
||||
Convey("When calculating distance with different dimension matrices", func() {
|
||||
vectorX.Clone(vectorX.T())
|
||||
vectorX.CloneFrom(vectorX.T())
|
||||
So(func() { manhattan.Distance(vectorX, vectorY) }, ShouldPanic)
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user