8000 HYPER_bins formula (from preprocessing_step_4_binning) · Issue #16 · untrix/im2latex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
HYPER_bins formula (from preprocessing_step_4_binning) #16
Open
@bezigon

Description

@bezigon

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0