1 write to Count
Microsoft.ML.FastTree (1)
Dataset\FeatureFlock.cs (1)
992
Count
= count;
39 references to Count
Microsoft.ML.FastTree (39)
Dataset\Dataset.cs (7)
60
_flockToFirstFeature[i] = _flockToFirstFeature[i - 1] + _flocks[i - 1].
Count
;
64
int numFeatures = _flockToFirstFeature[_flockToFirstFeature.Length - 1] + lastFlock.
Count
;
65
Contracts.Assert(numFeatures == _flocks.Sum(f => f.
Count
));
70
int lim = min + _flocks[flock].
Count
;
92
Contracts.Assert(0 <= subfeature && subfeature < _flocks[flock].
Count
);
972
for (int i = 0; i < flock.
Count
; ++i)
983
Enumerable.Range(_dataset._flockToFirstFeature[f], _dataset._flocks[f].
Count
).Any(i => active[i]) ==
Dataset\FeatureFlock.cs (20)
112
Contracts.Assert(active == null || (0 <= featureOffset && featureOffset <= Utils.Size(active) - Flock.
Count
));
113
Contracts.Assert(_active.Length == Flock.
Count
);
198
int featureLim = featureMin + learner.TrainData.Flocks[flock].
Count
;
202
Contracts.Assert(0 <= subfeature && subfeature < Flock.
Count
);
336
int featureLim = featureMin + learner.TrainData.Flocks[flock].
Count
;
401
Contracts.Assert(0 <= subfeature && subfeature < Flock.
Count
);
516
int featureLim = featureMin + learner.TrainData.Flocks[flock].
Count
;
545
Contracts.Assert(0 <= subfeature && subfeature < Flock.
Count
);
712
int featureLim = featureMin + learner.TrainData.Flocks[flock].
Count
;
741
Contracts.Assert(0 <= subfeature && subfeature < Flock.
Count
);
964
/// flock, from 0 up to but not including <see cref="FeatureFlockBase.
Count
"/>. Now,
1018
Contracts.Assert(0 <= featureIndex && featureIndex <
Count
);
1066
Contracts.Assert(0 <= feature && feature < flockIndexer.Flock.
Count
);
1188
Contracts.Assert(0 <= featureIndex && featureIndex <
Count
);
1194
Contracts.Assert(0 <= featureIndex && featureIndex <
Count
);
1200
Contracts.Assert(0 <= featureIndex && featureIndex <
Count
);
1234
: base(flock.
Count
)
1238
Hist = new FeatureHistogram(_flock.Bins, _flock.HotFeatureStarts[_flock.
Count
], hasWeights);
1251
Contracts.Assert(active == null || (0 <= featureOffset && featureOffset <= Utils.Size(active) - Flock.
Count
));
1259
for (int i = 0; i < _flock.
Count
; ++i)
Dataset\NHotFeatureFlock.cs (1)
67
Contracts.Assert(0 <= featureIndex && featureIndex < _flock.
Count
);
Dataset\OneHotFeatureFlock.cs (2)
31
Contracts.Assert(0 <= featureIndex && featureIndex <
Count
);
91
Contracts.Assert(0 <= featureIndex && featureIndex < _flock.
Count
);
Dataset\SingletonFeatureFlock.cs (2)
113
: base(flock.
Count
)
130
Contracts.Assert(active == null || (0 <= featureOffset && featureOffset <= Utils.Size(active) - Flock.
Count
));
FastTree.cs (5)
2044
Contracts.Assert(flock.
Count
> 0);
2045
Contracts.Assert(iFeature + flock.
Count
<= FeatureMap.Length);
2047
int lim = iFeature + flock.
Count
== FeatureMap.Length
2049
: FeatureMap[iFeature + flock.
Count
];
2052
iFeature += flock.
Count
;
Training\TreeLearners\LeastSquaresRegressionTreeLearner.cs (2)
508
int featureLim = featureMin + TrainData.Flocks[flock].
Count
;
662
int featureLim = featureMin + TrainData.Flocks[flock].
Count
;