Skip to content

Commit

Permalink
test: bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Evizero committed Oct 5, 2016
1 parent 0d6282d commit f9e51ea
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/tst_properties.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ immutable TstVanillaLoss <: SupervisedLoss end
@testset "Fallback implementations; not prior knowledge" begin
@test isminimizable(TstVanillaLoss()) == false
@test isdifferentiable(TstVanillaLoss()) == false
@test isdifferentiable(TstVanillaLoss(), at) == false
@test isdifferentiable(TstVanillaLoss(), 0) == false
@test istwicedifferentiable(TstVanillaLoss()) == false
@test istwicedifferentiable(TstVanillaLoss(), at) == false
@test istwicedifferentiable(TstVanillaLoss(), 0) == false

@test isstronglyconvex(TstVanillaLoss()) == false
@test isstrictlyconvex(TstVanillaLoss()) == false
Expand All @@ -28,9 +28,9 @@ Losses.isstronglyconvex(::TstStronglyConvexLoss) = true
@test isminimizable(TstStronglyConvexLoss()) == true

@test isdifferentiable(TstStronglyConvexLoss()) == false
@test isdifferentiable(TstStronglyConvexLoss(), at) == false
@test isdifferentiable(TstStronglyConvexLoss(), 0) == false
@test istwicedifferentiable(TstStronglyConvexLoss()) == false
@test istwicedifferentiable(TstStronglyConvexLoss(), at) == false
@test istwicedifferentiable(TstStronglyConvexLoss(), 0) == false

@test isstronglyconvex(TstStronglyConvexLoss()) == true
@test isstrictlyconvex(TstStronglyConvexLoss()) == true
Expand All @@ -53,9 +53,9 @@ Losses.istwicedifferentiable(::TstTwiceDiffLoss) = true
@test isminimizable(TstTwiceDiffLoss()) == false

@test isdifferentiable(TstTwiceDiffLoss()) == true
@test isdifferentiable(TstTwiceDiffLoss(), at) == true
@test isdifferentiable(TstTwiceDiffLoss(), 0) == true
@test istwicedifferentiable(TstTwiceDiffLoss()) == true
@test istwicedifferentiable(TstTwiceDiffLoss(), at) == true
@test istwicedifferentiable(TstTwiceDiffLoss(), 0) == true

@test isstronglyconvex(TstTwiceDiffLoss()) == false
@test isstrictlyconvex(TstTwiceDiffLoss()) == false
Expand All @@ -77,9 +77,9 @@ immutable TstMarginLoss <: MarginLoss end
@test isminimizable(TstMarginLoss()) == false

@test isdifferentiable(TstMarginLoss()) == false
@test isdifferentiable(TstMarginLoss(), at) == false
@test isdifferentiable(TstMarginLoss(), 0) == false
@test istwicedifferentiable(TstMarginLoss()) == false
@test istwicedifferentiable(TstMarginLoss(), at) == false
@test istwicedifferentiable(TstMarginLoss(), 0) == false

@test isstronglyconvex(TstMarginLoss()) == false
@test isstrictlyconvex(TstMarginLoss()) == false
Expand All @@ -104,9 +104,9 @@ immutable TstDistanceLoss <: DistanceLoss end
@test isminimizable(TstDistanceLoss()) == false

@test isdifferentiable(TstDistanceLoss()) == false
@test isdifferentiable(TstDistanceLoss(), at) == false
@test isdifferentiable(TstDistanceLoss(), 0) == false
@test istwicedifferentiable(TstDistanceLoss()) == false
@test istwicedifferentiable(TstDistanceLoss(), at) == false
@test istwicedifferentiable(TstDistanceLoss(), 0) == false

@test isstronglyconvex(TstDistanceLoss()) == false
@test isstrictlyconvex(TstDistanceLoss()) == false
Expand Down

0 comments on commit f9e51ea

Please sign in to comment.