►
From YouTube: How to Perform A Custom Transform in ML.NET
Description
Create new columns in your data for feature engineering in ML.NET by creating a custom transform.
Code - https://github.com/jwood803/MLNetExamples/blob/master/MLNetExamples/CustomTransform/Program.cs
Contact:
Twitter: https://twitter.com/JWood/
Blog: https://jonwood.co/
A
Hey
everyone,
so
ml
net
comes
with
a
ton
of
transforms
that
you
can
use
on
your
data,
but
there
are
some
cases
where
you
want
to
create
your
own
transforms
and
mo
done.
Ed
has
a
way
where
you
can
do
that,
and
that's
what
I'm
going
to
show
you
in
this
video.
So
to
start
off,
I
am
in
Visual
Studio
I
have
a
phonetic
or
console
project
loaded
and
are
they
have
ml
net
downloaded
installed
I'm
using
version
1.2
and
so
we're
going
is
started
and
we'll
create
our
email
context.
A
And
bring
in
that
namespace
alright.
So,
instead
of
bringing
in
a
dataset
and
using
that
I'm
going
to
keep
this
even
more
simple
and
I'm
just
going
to
create
some
very
small
sample
dataset
and
create
a
list
of
what
I'm
going
to
call
that
input
data
and
wanting
to
create
that
class
here.
So
I'll
create
a
new
class.
A
And
in
this
class
I'm
just
going
to
grate
it
properly,
it's
going
to
be
a
date
time.
I'm
just
gonna
have
a
single
date.
You
know
what
I'm
gonna
do
in
this
transform
is
the
data
is
going
to
be
a
single
date
and
I'm
going
to
create
a
custom
transform
to
tell
if
that
date
is
on
the
weekend
or
not
so
I'm
gonna
take
in
a
couple
of
instances
of
this
input.
Data
and
I
do
bring
in
the
list
name
space
so
have
a
couple
dates.
A
All
right,
so
here's
where
we
started
using
our
custom,
transform
here
it's
going
to
be
an
action
that
takes
in
input
data
as
well
as
the
what
we're
going
to
do.
The
mapping
output
data-
and
this
is
the
this-
is
kind
of
the
new
column
that
we
want
to
get
out
of
this
new
transform.
So
it's
another
class
that
when
you
have
to
create.
A
A
A
A
A
A
A
A
You
know,
and
that's
pretty
much
all
you
have
to
do-
to
create
a
custom
transform.
So
let's
see
how
this
runs
here,
we
good
so
the
six
in
the
14th
were
all
about
the
weekends
where
the
19th
in
the
second
worked
all
right.
So
that's
just
a
quick
video
to
show
how
easy
it
is
to
create
a
custom
mapping
within
mo
net,
and
this
is
mostly
useful
when
you're
doing
feature
engineering
to
get
a
better
model
than
what
that
you
have
in
your
current
data.