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

Edit perturbation type annotation and add algorithm enum #287

Merged
merged 2 commits into from
Aug 8, 2023

Conversation

salaast
Copy link
Collaborator

@salaast salaast commented Aug 8, 2023

No description provided.

SKLEARN_REGRESSION = 3


@gin.constants_from_enum(module='blackbox_optimizers')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not also @gin - mark EstimatorType, GrandientType, and RegressionType? might as well...

@@ -64,6 +65,8 @@

from compiler_opt.es import gradient_ascent_optimization_algorithms

ArrayOfFloatArrays = Sequence[npt.NDArray[np.float32]]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit - Might as well also have a FloatArray = npt.NDArray[np.float32]] and then ArrayOfFloatArrays = Sequence[FloatArray] - just for consistency, right now there are various npt.NDArray[np.float32] around.

@salaast salaast merged commit 52a58d9 into google:main Aug 8, 2023
15 checks passed
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.

2 participants