Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
msl committed Aug 23, 2024
1 parent 0f326da commit b8ec21b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dataset/modify.jl
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ function normalize_modify!(outidx::Index, idx,
@nospecialize(sel::Pair{<:ColumnIndex,
<:Vector{<:Base.Callable}}))
colsidx = outidx[sel.first]
normalize_modify!(outidx, idx, colsidx .=> sel.second[i])
normalize_modify!(outidx, idx, colsidx .=> sel.second)
return res
end

Expand Down
2 changes: 1 addition & 1 deletion src/stat/non_hp_stat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function rescale(x, minx, maxx, minval, maxval)
-(-maxx * minval + minx * maxval) / (maxx - minx) + (-minval + maxval) * x / (maxx - minx)
end
rescale(::Missing, minx, maxx, minval, maxval) = missing
rescale(x::Vector, minx, maxx, minval, maxval) = rescale.(x, minx, maxx, minval, maxval)
rescale(x::AbstractVector, minx, maxx, minval, maxval) = rescale.(x, minx, maxx, minval, maxval)
rescale(x, minx, maxx) = rescale(x, minx, maxx, 0.0, 1.0)

"""
Expand Down

0 comments on commit b8ec21b

Please sign in to comment.