Skip to content

Commit 1e234ef

Browse files
jwood803TomFinley
authored andcommitted
Replace Float with float (#2754)
* Remove using directive to declare Float in many files. * Change Floats to floats.
1 parent 997e149 commit 1e234ef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1053
-1111
lines changed

src/Microsoft.ML.Core/Utilities/BinFinder.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
using System;
66
using System.Collections.Generic;
7-
using Float = System.Single;
87

98
namespace Microsoft.ML.Internal.Utilities
109
{
@@ -318,7 +317,7 @@ public Peg(int index, int split)
318317
private HeapNode.Heap<Peg> _pegHeap; // heap used for selecting the largest energy decrease
319318
private int[] _accum; // integral of counts
320319
private int[] _path; // current set of pegs
321-
private Float _meanBinSize;
320+
private float _meanBinSize;
322321

323322
public GreedyBinFinder()
324323
{
@@ -338,7 +337,7 @@ protected override void FindBinsCore(List<int> counts, int[] path)
338337
_accum = new int[CountValues + 1];
339338
for (int i = 0; i < CountValues; i++)
340339
_accum[i + 1] = _accum[i] + counts[i];
341-
_meanBinSize = (Float)_accum[CountValues] / CountBins;
340+
_meanBinSize = (float)_accum[CountValues] / CountBins;
342341

343342
PlacePegs();
344343

0 commit comments

Comments
 (0)