Handbook
Glossary
transform-y ( y transformer -- y' )
Vocabulary
machine-learning
.
transformer
Inputs
y
an
object
transformer
an
object
Outputs
y'
an
object
Definition
IN:
machine-learning.transformer
GENERIC:
transform-y
( y transformer -- y' )
Methods
USING:
accessors
arrays
kernel
machine-learning.label-binarizer
machine-learning.transformer
sequences
sorting.extras
;
M:
label-binarizer
transform-y
classes_>>
dup
length
[
[
bisect-left
[
1
]
dip
]
curry
]
dip
[
0
<array>
[
set-nth
]
keep
]
curry
compose
map
;
USING:
accessors
kernel
machine-learning.label-encoder
machine-learning.transformer
sequences
sorting.extras
;
M:
label-encoder
transform-y
classes_>>
[
bisect-left
]
curry
map
;