17 writes to Stat
Microsoft.ML.Transforms (17)
MissingValueReplacingUtils.cs (17)
239
Stat
= new TStatItem[type.Size];
606
Stat
= ReturnMax ? float.NegativeInfinity : float.PositiveInfinity;
612
Stat
= val;
618
Stat
= val;
627
Stat
= ReturnMax ? float.NegativeInfinity : float.PositiveInfinity;
633
Stat
= val;
639
Stat
= val;
698
Stat
= new ModeStat<float>((in float val) => FloatUtils.IsFinite(val));
717
Stat
= new ModeStat<float>((in float val) => FloatUtils.IsFinite(val));
824
Stat
= ReturnMax ? double.NegativeInfinity : double.PositiveInfinity;
830
Stat
= val;
836
Stat
= val;
845
Stat
= ReturnMax ? double.NegativeInfinity : double.PositiveInfinity;
851
Stat
= val;
857
Stat
= val;
922
Stat
= new ModeStat<double>((in double val) => FloatUtils.IsFinite(val));
941
Stat
= new ModeStat<double>((in double val) => FloatUtils.IsFinite(val));
66 references to Stat
Microsoft.ML.Transforms (66)
MissingValueReplacingUtils.cs (66)
287
return
Stat
;
351
Ch.Assert(0 <= slot && slot <
Stat
.Length);
544
Stat
.Update(val);
549
double val =
Stat
.GetCurrentValue(Ch, RowCount);
564
Stat
.Update(val);
569
double val =
Stat
.GetCurrentValue(Ch, ValueCount);
584
Ch.Assert(0 <= slot && slot <
Stat
.Length);
585
Stat
[slot].Update(val);
590
float[] stat = new float[
Stat
.Length];
593
double val =
Stat
[slot].GetCurrentValue(Ch, RowCount);
611
if (val <
Stat
)
617
if (val >
Stat
)
632
if (val <
Stat
)
638
if (val >
Stat
)
650
return (float)
Stat
;
660
for (int i = 0; i <
Stat
.Length; i++)
661
Stat
[i] = bound;
666
Ch.Assert(0 <= slot && slot <
Stat
.Length);
667
if (val <
Stat
[slot])
668
Stat
[slot] = val;
673
Ch.Assert(0 <= slot && slot <
Stat
.Length);
674
if (val >
Stat
[slot])
675
Stat
[slot] = val;
681
for (int slot = 0; slot <
Stat
.Length; slot++)
689
return
Stat
;
703
return
Stat
.GetCurrentValue();
708
Stat
.Update(val);
722
return
Stat
.GetCurrentValue();
727
Stat
.Update(val);
736
for (int i = 0; i <
Stat
.Length; i++)
738
Stat
[i] = new ModeStat<float>((in float val) => FloatUtils.IsFinite(val));
744
float[] stat = new float[
Stat
.Length];
747
stat[slot] =
Stat
[slot].GetCurrentValue();
754
Stat
[slot].Update(val);
770
Stat
.Update(val);
775
return
Stat
.GetCurrentValue(Ch, RowCount);
788
Stat
.Update(val);
793
return
Stat
.GetCurrentValue(Ch, ValueCount);
806
Ch.Assert(0 <= slot && slot <
Stat
.Length);
807
Stat
[slot].Update(val);
812
double[] stat = new double[
Stat
.Length];
814
stat[slot] =
Stat
[slot].GetCurrentValue(Ch, RowCount);
829
if (val <
Stat
)
835
if (val >
Stat
)
850
if (val <
Stat
)
856
if (val >
Stat
)
868
return
Stat
;
878
for (int i = 0; i <
Stat
.Length; i++)
879
Stat
[i] = bound;
884
Ch.Assert(0 <= slot && slot <
Stat
.Length);
887
if (val <
Stat
[slot])
888
Stat
[slot] = val;
894
Ch.Assert(0 <= slot && slot <
Stat
.Length);
897
if (val >
Stat
[slot])
898
Stat
[slot] = val;
905
for (int slot = 0; slot <
Stat
.Length; slot++)
913
return
Stat
;
927
return
Stat
.GetCurrentValue();
932
Stat
.Update(val);
946
return
Stat
.GetCurrentValue();
951
Stat
.Update(val);
960
for (int i = 0; i <
Stat
.Length; i++)
962
Stat
[i] = new ModeStat<double>((in double val) => FloatUtils.IsFinite(val));
968
double[] stat = new double[
Stat
.Length];
971
stat[slot] =
Stat
[slot].GetCurrentValue();
978
Stat
[slot].Update(val);