jmschrei / apricot

apricot implements submodular optimization for the purpose of selecting subsets of massive data sets to train machine learning models quickly. See the documentation page: https://apricot-select.readthedocs.io/en/latest/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bidirectional optimization with Graph Cut ValueError

M-A-Hassan opened this issue · comments

Thanks for the amazing package and documentation:
I am facing issue when I try to use bidirectional optimization with graph cut
GraphCutSelection(N_Samples_Per_Class, metric='euclidean', optimizer='bidirectional').fit_transform(..........
ValueError: zero-size array to reduction operation maximum which has no identity

Note that using other optimizers worked just fine
GraphCutSelection(N_Samples_Per_Class, metric='euclidean', optimizer='lazy').fit_transform(..........
GraphCutSelection(N_Samples_Per_Class, metric='euclidean', optimizer='two-stage').fit_transform(..........

Your help is appreciated

Hi @M-A-Hassan. It looks like I never finished the Bidirectional optimizer and I should remove it. Sorry for the inconvenience.

@jmschrei
Noted. Thanks