decile-team / submodlib

Summarize Massive Datasets using Submodular Optimization
MIT License
84 stars 33 forks source link

Implement own submodular function #40

Open ege-kaya opened 1 year ago

ege-kaya commented 1 year ago

I would like to implement my own submodular function classes, inheriting the SetFunction class. However, I couldn't figure out how to do it. It's not easy to see how to do this, or whether it is possible to do this, because much of the implementation is abstracted away by the calls to cpp_obj. Is there a way to achieve what I want?