How to use lhs - 1 common examples

To help you get started, we’ve selected a few lhs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tomasmcz / imago / src / cs.py View on Github external
def __init__(self, dimension, bound, d_function, n_nest):
        self.pa = 0.25 #parameter
        self.dimension = dimension
        self.bound = bound
        self.d_function = d_function
        self.nests = [(d_function(*p), p) for p in lhs.latin_hypercube(dimension, bound, n_nest)]
        self.best_value, self.best = max(self.nests)

lhs

Latin hypercube sampler for scenario modelling

BSD-2-Clause
Latest version published 10 days ago

Package Health Score

57 / 100
Full package analysis

Popular lhs functions