im2latex icon indicating copy to clipboard operation
im2latex copied to clipboard

HYPER_bins formula (from preprocessing_step_4_binning)

Open bezigon opened this issue 7 years ago • 0 comments

HYPER_bins on which formula is based? Intuitively?

I found a formula that can automate this process:

def histedges_equalN(x, nbin):
    npt = len(x)
    return np.interp(np.linspace(0, npt, nbin + 1),
                     np.arange(npt),
                     np.sort(x))
HYPER_bins=histedges_equalN(df_pruned.word2id_len, 8)

Am I in the right direction?

bezigon avatar Jun 29 '18 11:06 bezigon