Python library for pareto front extraction
Project description
= pypareto = Pypareto is a Python library for pareto front seaching == Usage ==
ComparisonChain.split_by_pareto performs the pareto front split fronts
Here the None means just inferior value >>> values = [(0,None,None), (2,2,2), (0,1,1), (0,0,1), (None,0,1), (0,1,0), (None,1,1), (1,0,0), (0,0,0)] >>> chain = Comparison(by_value_and_not_none, MaxMinList(MaxMin.MAX, MaxMin.MAX, MaxMin.MAX)).as_chain() >>> chain.split_by_pareto(values) [[(2, 2, 2)], [(1, 0, 0), (0, 1, 1)], [(0, 1, 0), (None, 1, 1), (0, 0, 1)], [(None, 0, 1)], [(0, 0, 0)], [(0, None, None)]]
Here one extra None means that the whole row is inferior: >>> values = [(0,None,None), (2,2,2), (0,1,1), (0,0,1), (None,0,1), (0,1,0), (None,1,1), (1,0,0), (0,0,0)] >>> chain = Comparison(by_none, MaxMinList(MaxMin.MIN, MaxMin.MIN, MaxMin.MIN)).and_then( … Comparison(by_value_and_not_none, MaxMinList(MaxMin.MAX, MaxMin.MAX, MaxMin.MAX))) >>> chain.split_by_pareto(values) [[(2, 2, 2)], [(1, 0, 0), (0, 1, 1)], [(0, 1, 0), (0, 0, 1)], [(None, 1, 1)], [(None, 0, 1)], [(0, 0, 0)], [(0, None, None)]]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for pypareto-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 853ebed4a53b7e667c484c4e5a261b31753db9d8052a790eb5ec5c01f2274926 |
|
MD5 | 6ed85516804feba9c07e76240f4dc206 |
|
BLAKE2b-256 | 4f819baa4c59356c04c3be74e7289d5079c90d4616a05a9896a1cc9e999aa4e2 |