Skip to content

Commit

Permalink
remove depwarn and default dims=1 for fit(ZScoreTransform, ::Vector)
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinschmidt committed Mar 3, 2020
1 parent 092a20e commit 5a9c060
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/transformations.jl
Expand Up @@ -135,10 +135,7 @@ end

function fit(::Type{ZScoreTransform}, X::AbstractVector{<:Real};
dims::Union{Integer,Nothing}=nothing, center::Bool=true, scale::Bool=true)
if dims == nothing
Base.depwarn("fit(t, x) is deprecated: use fit(t, x, dims=2) instead", :fit)
dims = 1
elseif dims != 1
if dims != 1
throw(DomainError(dims, "fit only accepts dims=1 over a vector. Try fit(t, x, dims=1)."))
end

Expand Down

0 comments on commit 5a9c060

Please sign in to comment.