nlp
1.2.0
nlp
/
com.londogard.nlp.meachinelearning.encoders
/
OneHotEncoder
One
Hot
Encoder
public
final
class
OneHotEncoder
<
T
extends
Object
>
implements
Encoder
<
T
>
Content copied to clipboard
A simple OneHotEncoder which encodes a category of any type into a numeric value.
Constructors
Functions
Constructors
One
Hot
Encoder
Link copied to clipboard
public
OneHotEncoder
<
T
>
OneHotEncoder
(
)
Content copied to clipboard
Functions
fit
Link copied to clipboard
public
Unit
fit
(
List
<
T
>
input
)
Content copied to clipboard
fit
Transform
Link copied to clipboard
public
NDArray
<
Integer
,
D2
>
fitTransform
(
List
<
T
>
input
)
Content copied to clipboard
invert
Link copied to clipboard
public
List
<
T
>
invert
(
NDArray
<
Integer
,
D2
>
input
)
Content copied to clipboard
transform
Link copied to clipboard
public
NDArray
<
Integer
,
D2
>
transform
(
List
<
T
>
input
)
Content copied to clipboard