Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/Microsoft.ML.Core/Utilities/BinFinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

using System;
using System.Collections.Generic;
using Float = System.Single;

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

public GreedyBinFinder()
{
Expand All @@ -338,7 +337,7 @@ protected override void FindBinsCore(List<int> counts, int[] path)
_accum = new int[CountValues + 1];
for (int i = 0; i < CountValues; i++)
_accum[i + 1] = _accum[i] + counts[i];
_meanBinSize = (Float)_accum[CountValues] / CountBins;
_meanBinSize = (float)_accum[CountValues] / CountBins;

PlacePegs();

Expand Down
Loading