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

initial guess added to DOE #20

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

zdanial
Copy link

@zdanial zdanial commented Feb 23, 2022

I wrote this in VSCode browser so haven't gotten to test yet.

Basically just allows you to pass an np.ndarray with initial guess values to first DoE creation.

Does not enforce any constraints, does not take away from already specified DoE size (but may do so if dups are found and dropped).

@zdanial
Copy link
Author

zdanial commented Feb 23, 2022

Ok so I did some debugging and got it to work with a list of values instead of numpy array because it seems like that's what the ask and tell use?

Works enough for my use case, but if you'd like to suggest something to add like the (currently commented out):
assert self.initial_guess.shape[0] == self.dim or self.initial_guess.shape[1] == self.dim assert all([isinstance(_, float) for _ in self.initial_guess[:, self.r_index].ravel()]) assert all([isinstance(_, int) for _ in self.initial_guess[:, self.i_index].ravel()]) assert all([isinstance(_, str) for _ in self.initial_guess[:, self.d_index].ravel()])
which i took from the warm data, but matching list instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant