Collection of algorithms to compute diverisity between elements and idenfiy diverse element collections whitin a dataset
Python 3.
import diversity as d
elements = range(42)
# greedy algorithm
greedy_most_diverse = d.greedy(elements, 10)
# interchange algorithm
interchange_most_diverse = d.interchange(elements, 10)
# neighborhood algorithm
neighborhood_most_diverse = d.neighborhood(elements, 20)
Checkout docs/usage.md for further details.
Checkout the documentation to initialize the environment, use the module and run the tests.
This project has been developed for the Technologies for Information Systems course (A.Y. 2018/2019) at Politecnico di Milano.