Skip to content

Commit

Permalink
Fixed errors to tests after updating breeze version and RBFKernel ref…
Browse files Browse the repository at this point in the history
…actoring
  • Loading branch information
mandar2812 committed Dec 20, 2016
1 parent b91cd00 commit af6364a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class RBFKernel(private var bandwidth: Double = 1.0)(
with LocalSVMKernel[DenseVector[Double]]
with Serializable {

val normedVectorSpace = ev.normed
//val normedVectorSpace = ev.normed

override val hyper_parameters = List("bandwidth")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ class WaveletSpec extends FlatSpec with Matchers {
implicit val f = new VectorField(sc.length)

val motherWav = (xVec: DenseVector[Double]) =>
xVec.map(x =>{
DenseVector(xVec.map(x =>{
if (x >= 0.0 && x < 0.5) 1.0
else if (x >= 0.5 && x < 1.0) -1.0
else 0.0
}).reduce((a,b) => a*b).toDenseVector
}).reduce((a,b) => a*b))

val hVecWavelet = new Wavelet[DenseVector[Double]](motherWav)(
sc, sf
Expand Down

0 comments on commit af6364a

Please sign in to comment.