8000 Update Pytypes after recent changes to typing in JAX/Numpy, and following our decision to use more specific types (instead of chex.Array) where possible. by copybara-service[bot] · Pull Request #624 · google/vizier · GitHub
[go: up one dir, main page]

Skip to content

Update Pytypes after recent changes to typing in JAX/Numpy, and following our decision to use more specific types (instead of chex.Array) where possible. - #624

Merged
copybara-service[bot] merged 0 commit into
mainfrom
test_521533192
Apr 5, 2023

Conversation

@copybara-service
@copybara-service copybara-service Bot commented Apr 3, 2023 •
Copy link
Copy Markdown

Update Pytypes after recent changes to typing in JAX/Numpy, and following our decision to use more specific types (instead of chex.Array) where possible.

  • Use Array = Union[np.ndarray, jax.Array] in place of chex.Array/ArrayLike, because the latter includes Numpy scalars which cause type errors when properties like shape are accessed.
  • For now, assume features are arrays. (We'll have to update this when the categorical kernel is introduced, but we still need to decide whether to continue to allow arrays as features, allow arbitrary pytrees, or support only a Vizier-internal data container (similar to ContinuousAndCategoricalValues)).

@copybara-service
copybara-service Bot force-pushed the test_521533192 branch 10 times, most recently from 110f31f to 6fc16c0 Compare April 4, 2023 01:45
@copybara-service copybara-service Bot changed the title Fix up pytypes for JAX/Numpy arrays. Update Pytypes after recent changes to typing in JAX/Numpy, and following our decision to use more specific types (instead of chex.Array) where possible. Apr 4, 2023
@copybara-service
copybara-service Bot force-pushed the test_521533192 branch 5 times, most recently from 5771a1a to f901047 Compare April 5, 2023 14:55
@copybara-service copybara-service Bot closed this Apr 5, 2023
@copybara-service
copybara-service Bot deleted the test_521533192 branch April 5, 2023 15:05
@copybara-service
copybara-service Bot merged commit c402c81 into main Apr 5, 2023
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.

0 participants

0