15 references to AddAttribute
Microsoft.ML.Data (15)
Transforms\KeyToValue.cs (3)
545
node.
AddAttribute
("values_floats", values);
551
node.
AddAttribute
("values_floats", values);
565
node.
AddAttribute
("values_floats", values);
Transforms\NormalizeColumnSng.cs (5)
860
node.
AddAttribute
("offset", Enumerable.Repeat(Offset, featureCount));
861
node.
AddAttribute
("scale", Enumerable.Repeat(Scale, featureCount));
932
node.
AddAttribute
("offset", Offset);
934
node.
AddAttribute
("offset", Enumerable.Repeat<TFloat>(0, featureCount));
936
node.
AddAttribute
("scale", Scale);
Transforms\ValueMapping.cs (5)
1095
node.
AddAttribute
("keys_floats", Array.ConvertAll(_valueMap.GetKeys<T>(), item => Convert.ToSingle(item)));
1179
node.
AddAttribute
("keys_floats", _valueMap.GetKeys<float>());
1250
node.
AddAttribute
("values_floats", _valueMap.GetValues<float>());
1254
node.
AddAttribute
("values_floats", _valueMap.GetValues<double>().Select(item => Convert.ToSingle(item)));
1264
node.
AddAttribute
("values_floats", _valueMap.GetValues<bool>().Select(item => Convert.ToSingle(item)));
Transforms\ValueToKeyMappingTransformer.cs (2)
810
node.
AddAttribute
("keys_floats", terms.Select(item => Convert.ToSingle(item)));
840
node.
AddAttribute
("keys_floats", terms);