Skip to content

Commit

Permalink
remove default regularizer
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed May 25, 2020
1 parent c10d9be commit 7385760
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/distance_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Base.@kwdef struct SoftDTW{D,T} <: DTWDistance{D}
dist::D = SqEuclidean()
"If >1, an additional penalty factor for non-diagonal moves is added."
transportcost::Float64 = 1.0
SoftDTW=1.0, dist=SqEuclidean(),transportcost=1) = new{typeof(dist), typeof(γ)}(γ,dist,transportcost)
SoftDTW(γ, dist=SqEuclidean(),transportcost=1) = new{typeof(dist), typeof(γ)}(γ,dist,transportcost)
end


Expand Down Expand Up @@ -69,7 +69,7 @@ distpath(d::FastDTW, x, y) = fastdtw(x, y, d.dist, d.radius)
Optimized method for computing the distance profile using DTW distances. kwargs are sent to [`dtwnn`](@ref).
"""
function distance_profile(d::DTWDistance, Q::AbstractArray{S}, T::AbstractArray{S}; kwargs...) where S
function SlidingDistancesBase.distance_profile(d::DTWDistance, Q::AbstractArray{S}, T::AbstractArray{S}; kwargs...) where S
m = lastlength(Q)
n = lastlength(T)
n >= m || throw(ArgumentError("Q cannot be longer than T"))
Expand Down

0 comments on commit 7385760

Please sign in to comment.