Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clearer documentation on what functions/hyper-parameters are actually doing #12

Open
vlall opened this issue Apr 24, 2019 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@vlall
Copy link
Collaborator

vlall commented Apr 24, 2019

I'm recently realizing I was mistaken on what the POOL_SIZE hyper-parameter was doing. Changing this hyper-parameter in the test script doesn't change the model search space, but rather the spacing and granularity between the output points using the hypercube object and sobol random number generation (https://en.wikipedia.org/wiki/Sobol_sequence). We initialize HyperCubePool.numpoints to the poolsize.

Perhaps a short explanation in the README or some links to external resources on how this is working would be very helpful.

class HyperCubePool(object):

    def __init__(self, dim, num_points):
        self.dim = dim
        self.num_points = num_points
        self._hypercube = sobol_seq.i4_sobol_generate(dim, num_points)

    def __getitem__(self, index):
        return self._hypercube[index]

    def __len__(self):
        return self.num_points

    def __repr__(self):
        return 'Pool (Sobol). Dim={}, num_points={}\n{}'.format(
            self.dim,
            self.num_points,
            self._hypercube.__repr__(),
        )

When generating a 1-D, n=10 array we see:
python random number generator
real_random

sobol random number generator
hypercube

@vlall vlall self-assigned this Apr 24, 2019
@vlall vlall added the enhancement New feature or request label Apr 24, 2019
@vlall vlall changed the title Clearer documentation on what some of these functions are actually doing Clearer documentation on what functions/hyper-parameters are actually doing Apr 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant