1 write to _sparse
Microsoft.ML.FastTree (1)
FastTree.cs (1)
2417
_sparse
= new List<KeyValuePair<int, double>>(_nonZeroElements);
20 references to _sparse
Microsoft.ML.FastTree (20)
FastTree.cs (20)
2406
_sparse
.Add(new KeyValuePair<int, double>(index, value));
2421
_sparse
.Add(new KeyValuePair<int, double>(i, _dense[i]));
2440
Contracts.Assert(
_sparse
.Count == 0 ||
_sparse
[
_sparse
.Count - 1].Key < length);
2441
return
_sparse
.Count(kvp => kvp.Value > gtValue) + (0 > gtValue ? length -
_sparse
.Count : 0);
2464
Contracts.Assert(
_sparse
.Count == 0 ||
_sparse
[
_sparse
.Count - 1].Key < lim);
2469
foreach (var kvp in
_sparse
)
2484
foreach (var kvp in
_sparse
)
2532
int count =
_sparse
.Count;
2535
for (int i = 0; i <
_sparse
.Count; ++i)
2537
editor.Indices[i] =
_sparse
[i].Key;
2538
editor.Values[i] =
_sparse
[i].Value;
2570
Contracts.AssertValue(
_sparse
);
2574
foreach (var kvp in
_sparse
)
2586
foreach (var kvp in
_sparse
)
2657
var sp = values.
_sparse
;