diff --git a/src/LossFunctions.jl b/src/LossFunctions.jl index ba66627..e43b6e1 100644 --- a/src/LossFunctions.jl +++ b/src/LossFunctions.jl @@ -95,6 +95,4 @@ include("supervised/other.jl") include("supervised/ordinal.jl") include("supervised/io.jl") -include("deprecated.jl") - end # module diff --git a/src/deprecated.jl b/src/deprecated.jl deleted file mode 100644 index b99ff08..0000000 --- a/src/deprecated.jl +++ /dev/null @@ -1,21 +0,0 @@ -@deprecate ScaledMarginLoss(loss, ::Type{Val{K}}) where {K} ScaledMarginLoss(loss, Val(K)) -@deprecate ScaledDistanceLoss(loss, ::Type{Val{K}}) where {K} ScaledDistanceLoss(loss, Val(K)) -@deprecate ScaledSupervisedLoss(loss, ::Type{Val{K}}) where {K} ScaledSupervisedLoss(loss, Val(K)) -@deprecate ((*)(::Type{Val{K}}, loss::Loss) where {K}) (*)(Val(K), loss) -@deprecate scaled(loss, ::Type{Val{K}}) where {K} scaled(loss, Val(K)) -@deprecate weightedloss(loss::Loss, ::Type{Val{W}}) where {W} weightedloss(loss, Val(W)) -@deprecate WeightedBinaryLoss(loss, ::Type{Val{W}}) where {W} WeightedBinaryLoss(loss, Val(W)) -@deprecate CrossentropyLoss CrossEntropyLoss - -Base.@deprecate_binding AverageMode AggregateMode -export AvgMode -module AvgMode - import ..LossFunctions.AggMode - Base.@deprecate_binding None AggMode.None - Base.@deprecate_binding Sum AggMode.Sum - Base.@deprecate_binding Mean AggMode.Mean - Base.@deprecate_binding Macro AggMode.Mean - Base.@deprecate_binding Micro AggMode.Mean - Base.@deprecate_binding WeightedSum AggMode.WeightedSum - Base.@deprecate_binding WeightedMean AggMode.WeightedMean -end