Skip to content

Commit 3e65218

Browse files
committed
✅ Docstring correction
1 parent 647621a commit 3e65218

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/transformers/cardinality_reducer/cardinality_reducer.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ types that are in `Union{Char, AbstractString, Number}`.
1818
- `ordered_factor=false`: Whether to encode `OrderedFactor` or ignore them
1919
- `min_frequency::Real=3`: Any level of a categorical column that occurs with frequency < `min_frequency` will be mapped to a new level. Could be
2020
an integer or a float which decides whether raw counts or normalized frequencies are used.
21-
- `label_for_infrequent=Dict{<:Type, <:Any}()= Dict( AbstractString => "Other", Char => 'O', )`: A
21+
- `label_for_infrequent::Dict{<:Type, <:Any}()= Dict( AbstractString => "Other", Char => 'O', )`: A
2222
dictionary where the possible values for keys are the types in `Union{Char, AbstractString, Number}` and each value signifies
2323
the new level to map into given a column raw super type. By default, if the raw type of the column subtypes `AbstractString`
2424
then the new value is `"Other"` and if the raw type subtypes `Char` then the new value is `'O'`

src/transformers/cardinality_reducer/interface_mlj.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Train the machine using `fit!(mach, rows=...)`.
111111
- `ordered_factor=false`: Whether to encode `OrderedFactor` or ignore them
112112
- `min_frequency::Real=3`: Any level of a categorical column that occurs with frequency < `min_frequency` will be mapped to a new level. Could be
113113
an integer or a float which decides whether raw counts or normalized frequencies are used.
114-
- `label_for_infrequent=Dict{<:Type, <:Any}()= Dict( AbstractString => "Other", Char => 'O', )`: A
114+
- `label_for_infrequent::Dict{<:Type, <:Any}()= Dict( AbstractString => "Other", Char => 'O', )`: A
115115
dictionary where the possible values for keys are the types in `Union{Char, AbstractString, Number}` and each value signifies
116116
the new level to map into given a column raw super type. By default, if the raw type of the column subtypes `AbstractString`
117117
then the new value is `"Other"` and if the raw type subtypes `Char` then the new value is `'O'`

0 commit comments

Comments
 (0)