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