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