►
From YouTube: Find and Replace Missing Values in ML.NET
Description
Learn how to find and replace missing values in your data in ML.NET.
Code - https://github.com/jwood803/MLNetExamples/blob/master/MLNetExamples/NullValues/Program.cs
ML.NET Transforms Playlist - https://www.youtube.com/playlist?list=PLl_upHIj19ZyJf-ItL5Mey9mniPiTKtvv
ML.NET Playlist - https://www.youtube.com/watch?v=8gVhJKszzzI&list=PLl_upHIj19Zy3o09oICOutbNfXj332czx
Contact:
Twitter: https://twitter.com/JWood/
Blog: https://jonwood.co/
Gear used (affiliate links):
Mic - https://amzn.to/2YEXtxI
Mouse - https://amzn.to/2ZtASoQ
A
A
So
in
this
video
I'm
gonna
show
how
you
can
handle
missing
values
with
an
ml
net,
specifically
I'm,
going
to
show
how
you
can
indicate
missing
values,
and
then,
once
you
indicate
those
how
you
can
replace
those
missing
values,
all
right,
so
I
have
Visual
Studio
loaded
here
with
the
console
project
and
already
have
em
on
the
net
installed
version
1.4
and
we're
doing
the
housing
data.
So
in
order
to
have
the
input
schema
loaded
as
well,
so
we
can
start
loading
that
data
in.
A
A
A
A
And
with
that
pipeline
we
need
to
fit
the
data
with
it.
Then
I'll
go
ahead
and
transform
the
data
without
python
and
that
produces
a
and
add
that
data
view,
and
so
we
can
look
at
what
that
data
is
I'm,
going
to
create
an
enumerable
from
that
and
I'm
going
to
put
it
into
a
new
class
here
and
called
missing
data.
I.
Don't
define
that
in
a
bit
but
I'll
pass
in
here.
A
A
What
I'm
gonna
do
with
this
is
I'm
gonna
inherit
from
the
housing
data.
So
it's
going
to
append
on
to
the
housing
data
items
and
with
that
I'm
just
kind
of
a
single
property.
It's
gonna
be
a
boolean
array.
You
know
it's
gonna,
be
called
missing
values
and
now
I
can
traverse
through
this
data
here,
since
it's
an
array,
I'm
gonna
do
a
for
loop
and
it's
going
to
be
the
null
data
that
length
and
if.
A
Because
it
comes
in
it's
going
to
come
in
for
each
column,
that's
going
to
come
in
whether
it's
true
or
false,
so
I'm
checking,
if
any
of
them.
If
any
columns
come
in
true
right
here,
I'm
going
to
give
the
indexes
of
the
columns
where
it
does
equal.
True
spacing
values,
I'll
select,
get
the
value
and
the
index,
and
so
if
there
is
a
value
I'm
going
to
give
the
index
otherwise
I'll
do
negative
one
and
I'll
filter
those
where
the
index
does
an
equal
negative
one.
A
A
A
A
A
My
upper
column
be
new
values,
you're,
not
passing
the
features
and
then
there's
another
parameter,
which
is
going
to
be
the
replacement
mode.
That
says
how
you
want
to
replace
these
items.
I
mean
your
default
value,
which
is
going
to
be
the
default
of
whatever
type
the
column
is.
So
it's
a
flow.
There's
gonna
be
zero
point
zero
and
if
it's
bullion,
it's
gonna,
be
false,
and
so
on
you
do
the
maximum
value.
Let's
end,
I
call
them
the
mean
value
of
the
column
or
the
minimum
of
a
column.
A
A
That
takes
in
replaced
values
and
we
use
object
as
false
and
I'll
call
to
array
on
it.
Let's
create
this
replaced,
values,
class
and
we'll
do
the
same
thing.
We're
going
to
inherit
from
the
housing
data.
Do
a
single
property.
It's
going
to
be
an
array
of
floats
and
called
new
values
and
I'll
do
a
for
loop
and
for
each
and
other
place,
data
that
Ling
and
for
each
index
and
the
missing
values
items,
but
unfortunately,
there's
no
way
to
get
that
right
now.
A
And
then
down
when
we
get
our
missing
indexes
for
each
of
that
indexes,
I'm
gonna,
add
that
row
index
and
the
missing
value
index
into
it
so
now
down
here
for
each
of
those
that
I
get
if
the
current
index
matches
the
index
that
key.
So
it's
on
the
current
row
that
has
the
missing
value,
we'll
write
out
our.
A
The
missing
data
value
index
here
just
run
that
and
see
what
that
looks
like
all
right.
So
we
have
our
two
missing
values
that
we
indicated
our
first
one
is
a
new
value.
Is
the
median
house
age
the
mean
value
of
lead
and
the
next
one
is
the
median
value
at
the
total
rooms,
all
right
everyone.
So
that's
kind
of
a
quick
way
to
on
how
you
can
indicate
your
missing
values
in
your
data
and
how
you
can
replace
those
missing
values.
So
I
hope
you
enjoyed
the
video
and
we'll
see
you
next
time.
Thanks.