47 references to AddFeature
Microsoft.ML.Data (47)
Data\BufferBuilder.cs (2)
414
AddFeature
(index + i, values[i]);
430
AddFeature
(index + indices[i], values[i]);
DataLoadSave\Text\TextLoaderParser.cs (1)
818
bldr.
AddFeature
(indexBase + srcCur, ReadOnlyMemoryUtils.TrimWhiteSpace(header.Spans[isrc]));
DataView\ArrayDataViewBuilder.cs (1)
528
_bldr.
AddFeature
(i, src[i]);
Transforms\ColumnConcatenatingTransformer.cs (2)
641
bldr.
AddFeature
(slot++, nameSrc.AsMemory());
665
bldr.
AddFeature
(slot + kvp.Key, sb.ToString().AsMemory());
Transforms\KeyToVector.cs (1)
536
bldr.
AddFeature
((int)key, 1);
Transforms\NormalizeColumnDbl.cs (18)
838
bldr.
AddFeature
(i, values[i] * scale[i]);
848
bldr.
AddFeature
(i, values[ii] * scale[i]);
866
bldr.
AddFeature
(i, -offset[i] * scale[i]);
873
bldr.
AddFeature
(i, (values[i] - offset[i]) * scale[i]);
887
bldr.
AddFeature
(ivDst, (values[ii] - offset[ivDst]) * scale[ivDst]);
892
bldr.
AddFeature
(ivDst, -offset[ivDst] * scale[ivDst]);
911
bldr.
AddFeature
(i, -offset[i] * scale[i]);
918
bldr.
AddFeature
(i, (values[i] - offset[i]) * scale[i]);
939
bldr.
AddFeature
(ivDst, -offset[ivDst] * scale[ivDst]);
945
bldr.
AddFeature
(ivSrc, values[ii] * scale[ivSrc]);
955
bldr.
AddFeature
(ivDst, (values[ii] - offset[ivDst]) * scale[ivDst]);
1119
bldr.
AddFeature
(i, CdfUtils.Cdf(val, mean[i], sigma));
1135
bldr.
AddFeature
(ivDst, CdfUtils.Cdf(val, mean[ivDst], sigma));
1328
bldr.
AddFeature
(i, BinUtils.GetValue(in values[i], _binUpperBounds[i], _den[i], _offset[i]));
1333
bldr.
AddFeature
(i, BinUtils.GetValue(in values[i], _binUpperBounds[i], _den[i]));
1352
bldr.
AddFeature
(ivDst,
1358
bldr.
AddFeature
(ivDst,
1369
bldr.
AddFeature
(i, BinUtils.GetValue(in values[ii], _binUpperBounds[i], _den[i]));
Transforms\NormalizeColumnSng.cs (18)
996
bldr.
AddFeature
(i, values[i] * scale[i]);
1006
bldr.
AddFeature
(i, values[ii] * scale[i]);
1025
bldr.
AddFeature
(i, -offset[i] * scale[i]);
1032
bldr.
AddFeature
(i, (values[i] - offset[i]) * scale[i]);
1046
bldr.
AddFeature
(ivDst, (values[ii] - offset[ivDst]) * scale[ivDst]);
1051
bldr.
AddFeature
(ivDst, -offset[ivDst] * scale[ivDst]);
1071
bldr.
AddFeature
(i, -offset[i] * scale[i]);
1078
bldr.
AddFeature
(i, (values[i] - offset[i]) * scale[i]);
1099
bldr.
AddFeature
(ivDst, -offset[ivDst] * scale[ivDst]);
1105
bldr.
AddFeature
(ivSrc, values[ii] * scale[ivSrc]);
1115
bldr.
AddFeature
(ivDst, (values[ii] - offset[ivDst]) * scale[ivDst]);
1280
bldr.
AddFeature
(i, CdfUtils.Cdf(val, mean[i], sigma));
1296
bldr.
AddFeature
(ivDst, CdfUtils.Cdf(val, mean[ivDst], sigma));
1490
bldr.
AddFeature
(i, BinUtils.GetValue(values[i], _binUpperBounds[i], _den[i], _offset[i]));
1495
bldr.
AddFeature
(i, BinUtils.GetValue(values[i], _binUpperBounds[i], _den[i]));
1514
bldr.
AddFeature
(ivDst,
1520
bldr.
AddFeature
(ivDst,
1531
bldr.
AddFeature
(i, BinUtils.GetValue(values[ii], _binUpperBounds[i], _den[i]));
Transforms\ValueToKeyMappingTransformerImpl.cs (4)
972
bldr.
AddFeature
(slot, dstItem);
1008
bldr.
AddFeature
(slot, dstItem);
1024
bldr.
AddFeature
(slot, dstItem);
1032
bldr.
AddFeature
(slot, defaultMapValue);