20 references to CreateArray
Microsoft.ML.Data (6)
DataView\Transposer.cs (1)
111_inputToTransposed = Utils.CreateArray(schema.Count, -1);
Transforms\NormalizeColumnDbl.cs (1)
161scales = Utils.CreateArray<TFloat>(numFeatures, 1);
Transforms\NormalizeColumnSng.cs (1)
161scales = Utils.CreateArray<TFloat>(numFeatures, 1);
Utils\SequencePool.cs (3)
53_buckets = Utils.CreateArray<int>(_mask + 1, -1); 88_buckets = Utils.CreateArray<int>(_mask + 1, -1); 286_buckets = Utils.CreateArray<int>(size, -1);
Microsoft.ML.FastTree (6)
FastTree.cs (4)
412var activeFeatures = Utils.CreateArray(TrainSet.NumFeatures, true); 1055int[] f2sf = Utils.CreateArray(lim - min, -1); 1130int[] f2sf = Utils.CreateArray(lim - min, -1); 1385bool[] localConstructBinFeatures = Utils.CreateArray<bool>(NumFeatures, true);
GamModelParameters.cs (1)
149_shapeToInputMap = Utils.CreateArray(NumberOfShapeFunctions, -1);
Training\Parallel\SingleTrainer.cs (1)
46return Utils.CreateArray<bool>(numFeatures, true);
Microsoft.ML.Predictor.Tests (1)
TestParallelFasttreeInterface.cs (1)
75return Utils.CreateArray<bool>(numFeatures, true);
Microsoft.ML.Tests (6)
Scenarios\Api\TestApi.cs (4)
68var data1 = Utils.CreateArray(10, new OneIChannelWithAttribute()); 81var data2 = Utils.CreateArray(10, new OneStringWithAttribute()); 102var data3 = Utils.CreateArray(10, new TwoIChannelsWithAttributes()); 128var idv4 = env.Data.LoadFromEnumerable(Utils.CreateArray(10, example4));
Transformers\HashTests.cs (2)
164var denseVec = new VBuffer<T>(vecLen, Utils.CreateArray(vecLen, val)); 195var sparseVec = new VBuffer<T>(10, 3, Utils.CreateArray(3, val), new[] { 0, 3, 7 });
Microsoft.ML.Transforms (1)
UngroupTransform.cs (1)
282_pivotIndex = Utils.CreateArray(InputColumnCount, -1);