Coverage for partipy/const.py: 100%
9 statements
« prev ^ index » next coverage.py v7.8.0, created at 2025-05-09 10:36 +0200
« prev ^ index » next coverage.py v7.8.0, created at 2025-05-09 10:36 +0200
1# allowed arguments
2INIT_ALGS = ("uniform", "furthest_sum", "plus_plus")
3WEIGHT_ALGS = (None, "bisquare", "huber")
4OPTIM_ALGS = ("regularized_nnls", "projected_gradients", "frank_wolfe")
5CORESET_ALGS = ("default", "lightweight_kmeans", "uniform")
7# default arguments
8DEFAULT_INIT: str = "plus_plus"
9DEFAULT_WEIGHT = None
10DEFAULT_OPTIM: str = "projected_gradients"
12# constants
13LAMBDA: float = 1_000.0
14MIN_ITERATIONS: int = 10