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

Automatically convert image and html like assignments to uploads #1006

Merged
merged 6 commits into from Nov 4, 2022

Conversation

shnela
Copy link
Contributor

@shnela shnela commented Sep 19, 2022

No description provided.

@github-actions
Copy link

github-actions bot commented Nov 2, 2022

Test Results

    2 files   -      38      2 suites   - 38   1m 48s ⏱️ - 3h 49m 14s
484 tests  -    207  484 ✔️  -    202  0 💤  -   5  0 ±0 
968 runs   - 1 312  968 ✔️  - 1 272  0 💤  - 40  0 ±0 

Results for commit a11c8f9. ± Comparison against base commit 497347c.

This pull request removes 691 and adds 484 tests. Note that renamed tests count towards both.
integrations.test_huggingface.TestHuggingFace ‑ test_every_train_should_create_new_run
integrations.test_huggingface.TestHuggingFace ‑ test_hyperparameter_optimization
integrations.test_huggingface.TestHuggingFace ‑ test_initialization_with_run_provided
integrations.test_huggingface.TestHuggingFace ‑ test_integration_version_is_logged
integrations.test_huggingface.TestHuggingFace ‑ test_log_parameters_disabled
integrations.test_huggingface.TestHuggingFace ‑ test_log_parameters_with_base_namespace
integrations.test_huggingface.TestHuggingFace ‑ test_log_with_custom_base_namespace
integrations.test_huggingface.TestHuggingFace ‑ test_model_checkpoints_best[checkpoint_settings0]
integrations.test_huggingface.TestHuggingFace ‑ test_model_checkpoints_best[checkpoint_settings1]
integrations.test_huggingface.TestHuggingFace ‑ test_model_checkpoints_best[checkpoint_settings2]
…
tests.neptune.alpha_integration.test_alpha_integration_backend.TestAlphaIntegrationNeptuneBackend ‑ test_send_channels_image_values
tests.neptune.alpha_integration.test_alpha_integration_backend.TestAlphaIntegrationNeptuneBackend ‑ test_send_channels_numeric_values
tests.neptune.alpha_integration.test_alpha_integration_backend.TestAlphaIntegrationNeptuneBackend ‑ test_send_channels_text_values
tests.neptune.legacy.internal.backends.test_hosted_neptune_backend.TestHostedNeptuneBackend ‑ test_cannot_resolve_host
tests.neptune.legacy.internal.backends.test_hosted_neptune_backend.TestHostedNeptuneBackend ‑ test_deprecated_token
tests.neptune.legacy.internal.backends.test_hosted_neptune_backend.TestHostedNeptuneBackend ‑ test_max_compatible_version_fail
tests.neptune.legacy.internal.backends.test_hosted_neptune_backend.TestHostedNeptuneBackend ‑ test_max_compatible_version_ok
tests.neptune.legacy.internal.backends.test_hosted_neptune_backend.TestHostedNeptuneBackend ‑ test_min_compatible_version_fail
tests.neptune.legacy.internal.backends.test_hosted_neptune_backend.TestHostedNeptuneBackend ‑ test_min_compatible_version_ok
tests.neptune.legacy.internal.backends.test_hosted_neptune_backend.TestHostedNeptuneBackend ‑ test_should_accept_given_api_token
…

♻️ This comment has been updated with latest results.

from neptune.new.types.value_copy import ValueCopy


def cast_value(value: Any) -> Value:
Copy link
Contributor

Choose a reason for hiding this comment

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

As we extracted this func (which is so cool!) what do you think about using a single-dispatch? https://docs.python.org/3.7/library/functools.html#functools.singledispatch You should be able to split this function into multiple one that will be triggered base on arguments type.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's a good idea.
Let's try it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Or maybe not.
We do casting not only based on type, but also on predicate which looks like it's not supported by singledispatch.

@@ -14,14 +14,12 @@
# limitations under the License.
Copy link
Contributor

Choose a reason for hiding this comment

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

CHANGELOG?

@shnela shnela merged commit 00f03bf into master Nov 4, 2022
@shnela shnela deleted the jk/assign-plot-objects branch November 4, 2022 09:32
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.

None yet

2 participants