Skip to content

Commit d5f2755

Browse files
EssamWisamablaom
andauthored
Update src/encoders/contrast_encoder/interface_mlj.jl
Co-authored-by: Anthony Blaom, PhD <[email protected]>
1 parent d5916e0 commit d5f2755

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/encoders/contrast_encoder/interface_mlj.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,12 @@ The fields of `report(mach)` are:
126126
using MLJ
127127
128128
# Define categorical dataset
129-
X = (name = categorical(["Ben", "John", "Mary", "John"]),
130-
height = [1.85, 1.67, 1.5, 1.67],
131-
favnum = categorical([7, 5, 10, 1]),
132-
age = [23, 23, 14, 23])
129+
X = (
130+
name = categorical(["Ben", "John", "Mary", "John"]),
131+
height = [1.85, 1.67, 1.5, 1.67],
132+
favnum = categorical([7, 5, 10, 1]),
133+
age = [23, 23, 14, 23],
134+
)
133135
134136
# Check scitype coercions:
135137
schema(X)

0 commit comments

Comments
 (0)