We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1b5151 commit 2ae707dCopy full SHA for 2ae707d
1 file changed
src/transforms/indicator.jl
@@ -1,4 +1,6 @@
1
-const SCALES = [:quantile, :linear]
+# ------------------------------------------------------------------
2
+# Licensed under the MIT License. See LICENSE in the project root.
3
4
5
"""
6
Indicator(col; k=10, scale=:quantile, categ=false)
@@ -34,7 +36,7 @@ struct Indicator{S<:SingleColumnSelector} <: StatelessFeatureTransform
34
36
throw(ArgumentError("`k` must be greater than or equal to 1"))
35
37
end
38
- if scale ∉ SCALES
39
+ if scale ∉ (:quantile, :linear)
40
throw(ArgumentError("invalid `scale` option, use `:quantile` or `:linear`"))
41
42
0 commit comments