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

Add return type annotations to key MLflow APIs #4242

Merged
merged 19 commits into from
Apr 16, 2021

Conversation

harupy
Copy link
Member

@harupy harupy commented Apr 13, 2021

Signed-off-by: harupy 17039389+harupy@users.noreply.github.com

What changes are proposed in this pull request?

Put type annotations on key MLflow APIs.

Which API should be annotated?

  • Fluent APIs (e.g. mlflow.start_run)
  • Client APIs (e.g. mlflow.tracking.MlflowClient.get_run)

How is this patch tested?

Manual testing

Release Notes

Is this a user-facing change?

  • No. You can skip the rest of this section.
  • Yes. Give a description of this change to be included in the release notes for MLflow users.

(Details in 1-2 sentences. You can just refer to another PR with a description if this PR is part of a larger change.)

What component(s), interfaces, languages, and integrations does this PR affect?

Components

  • area/artifacts: Artifact stores and artifact logging
  • area/build: Build and test infrastructure for MLflow
  • area/docs: MLflow documentation pages
  • area/examples: Example code
  • area/model-registry: Model Registry service, APIs, and the fluent client calls for Model Registry
  • area/models: MLmodel format, model serialization/deserialization, flavors
  • area/projects: MLproject format, project running backends
  • area/scoring: Local serving, model deployment tools, spark UDFs
  • area/server-infra: MLflow server, JavaScript dev server
  • area/tracking: Tracking Service, tracking client APIs, autologging

Interface

  • area/uiux: Front-end, user experience, JavaScript, plotting
  • area/docker: Docker use across MLflow's components, such as MLflow Projects and MLflow Models
  • area/sqlalchemy: Use of SQLAlchemy in the Tracking Service or Model Registry
  • area/windows: Windows support

Language

  • language/r: R APIs and clients
  • language/java: Java APIs and clients
  • language/new: Proposals for new client languages

Integrations

  • integrations/azure: Azure and Azure ML integrations
  • integrations/sagemaker: SageMaker integrations
  • integrations/databricks: Databricks integrations

How should the PR be classified in the release notes? Choose one:

  • rn/breaking-change - The PR will be mentioned in the "Breaking Changes" section
  • rn/none - No description will be included. The PR will be mentioned only by the PR number in the "Small Bugfixes and Documentation Updates" section
  • rn/feature - A new user-facing feature worth mentioning in the release notes
  • rn/bug-fix - A user-facing bug fix worth mentioning in the release notes
  • rn/documentation - A user-facing documentation change worth mentioning in the release notes

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
@harupy harupy marked this pull request as draft April 13, 2021 03:21
@github-actions github-actions bot added the rn/none List under Small Changes in Changelogs. label Apr 13, 2021
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Comment on lines +33 to +39
try:
import pandas as pd

SearchRunsReturnType = Union[pd.DataFrame, List[Run]]
except ImportError:
SearchRunsReturnType = List[Run]

Copy link
Member Author

@harupy harupy Apr 13, 2021

Choose a reason for hiding this comment

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

A workaround for the skinny client (which doesn't install pandas).

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
@harupy harupy changed the title Put type annotations on key MLflow APIs Add type annotations to key MLflow APIs Apr 13, 2021
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
@harupy harupy marked this pull request as ready for review April 14, 2021 02:18
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Gets a dict that maps an invalid reference to a valid one.
"""
ref_map = {
"mlflow.tracking.fluent.ActiveRun": "mlflow.ActiveRun",
Copy link
Member Author

@harupy harupy Apr 14, 2021

Choose a reason for hiding this comment

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

Now mlflow.start_run is type-annotated and looks like this:

def start_run(...) -> ActiveRun:
    ...

Sphinx tries to create a link for ActiveRun using its fully qualified class name (mlflow.tracking.fluent.ActiveRun) as a reference target, but our doc doesn't contain the reference mlflow.tracking.fluent.ActiveRun so it will result in the following warning (which is treated as an error due to the -W option):

/home/circleci/project/mlflow/__init__.py:docstring of mlflow.tracking.fluent.active_run:: WARNING: py:class reference target not found: mlflow.tracking.fluent.ActiveRun

As a workaround, map mlflow.tracking.fluent.ActiveRun to mlflow.ActiveRun.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems missing some similar cases, such as:

mlflow.deployments.BaseDeploymentClient
mflow.models.{Model, ModelSignature, ModelInputExample, infer_signature, FlavorBackend}
mflow.projects.SubmittedRun

mlflow.tracking.MlflowClient
mflow.types.{DataType, ColSpec, Schema, TensorSpec}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we can automatically generate the reference_map, by searching all __all__ exports in every sub-module, and for each item in __all__ , if it is not a function but an Class, then we can add it into reference_map, we can generate the original ref by https://github.com/mlflow/mlflow/pull/4242/files#r614140548

Copy link
Member Author

@harupy harupy Apr 15, 2021

Choose a reason for hiding this comment

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

One challenge is:

{"mlflow.tracking.fluent.ActiveRun": "< valid_ref >"}

How can we dynamically get < valid_ref > ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

How can we dynamically get < valid_ref > ?

Using module (include the all list) name + item name?
we can search 2 depth level modules

@harupy harupy requested a review from smurching April 15, 2021 00:19
@harupy
Copy link
Member Author

harupy commented Apr 15, 2021

Offline discussion: Ideally, we should put both argument and return type annotations because both are benefitial for auto-completion in Databricks notebook, but we can address them separately. In this PR, I'm adding return type annotations.

@harupy harupy changed the title Add type annotations to key MLflow APIs Add return type annotations to key MLflow APIs Apr 15, 2021
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
docs/source/conf.py Outdated Show resolved Hide resolved

def _get_reference_map():
"""
Gets a dict that maps an invalid reference to a valid one.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we add some context (e.g. basically just your description in https://github.com/mlflow/mlflow/pull/4242/files#r613161818) to why this is necessary in the docstring, for future readers? Namely that Sphinx computes references using fully-qualified classnames, so references in undocumented modules (even if the referenced object is exposed via a different module from the one it's defined in) are considered invalid by Sphinx (you can use the ActiveRun example)

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the comment! Added some context!

Copy link
Collaborator

@smurching smurching left a comment

Choose a reason for hiding this comment

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

Basically LGTM with minor comments

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
@harupy
Copy link
Member Author

harupy commented Apr 16, 2021

@smurching Thanks for the review! I'll merge the PR once all the CI checks pass.

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
@harupy harupy merged commit 5823776 into mlflow:master Apr 16, 2021
@harupy harupy deleted the add-type-hints branch April 16, 2021 02:40
@harupy harupy mentioned this pull request Apr 16, 2021
27 tasks
YQ-Wang pushed a commit to YQ-Wang/mlflow that referenced this pull request May 29, 2021
* Annotate fluent APIs

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix typo

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix typo

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* annotate client APIs

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* add None

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix lint?

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix return type of get_experiment_by_name

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix docstring of get_experiment_by_name

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add PagedList to __init__.py

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Workaround for missing reference

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* rename variable

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add more type hints

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix typo

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix lint

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix lint?

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* apply weichen's suggestion

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* remove unused re

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* address comments

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: Yiqing Wang <yiqing@wangemail.com>
harupy added a commit to wamartin-aml/mlflow that referenced this pull request Jun 7, 2021
* Annotate fluent APIs

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix typo

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix typo

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* annotate client APIs

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* add None

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix lint?

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix return type of get_experiment_by_name

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix docstring of get_experiment_by_name

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add PagedList to __init__.py

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Workaround for missing reference

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* rename variable

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add more type hints

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix typo

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix lint

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix lint?

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* apply weichen's suggestion

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* remove unused re

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* address comments

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
harupy added a commit to wamartin-aml/mlflow that referenced this pull request Jun 7, 2021
* Annotate fluent APIs

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix typo

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix typo

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* annotate client APIs

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* add None

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix lint?

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix return type of get_experiment_by_name

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix docstring of get_experiment_by_name

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add PagedList to __init__.py

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Workaround for missing reference

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* rename variable

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add more type hints

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix typo

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix lint

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix lint?

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* apply weichen's suggestion

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* remove unused re

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* address comments

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
harupy added a commit to wamartin-aml/mlflow that referenced this pull request Jun 7, 2021
* Annotate fluent APIs

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix typo

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix typo

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* annotate client APIs

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* add None

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix lint?

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix return type of get_experiment_by_name

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix docstring of get_experiment_by_name

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add PagedList to __init__.py

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Workaround for missing reference

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* rename variable

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add more type hints

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix typo

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix lint

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix lint?

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* apply weichen's suggestion

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* remove unused re

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* address comments

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
harupy added a commit that referenced this pull request Jun 16, 2021
* Initial set of changes to add list exp page token

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* add intial testing, none for rest store

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* quick variable fix

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* linting fixes

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* proto generation - someone check this pls

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix comment

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* adding _get_experiment back after accidental delete

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix tests and page size limit check

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix null token problem

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* reformatting

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* protos generated

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* [HOT FIX] skip `test` job if matrix ends up being empty in cross version tests (#3800)

* skip if the matrix is empty

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* set is_matrix_empty

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix syntax error

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* minor comment fix

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Allow using post releases in the cross version tests (#3807)

* Fix for xgboost 1.3.0

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* do not include 1.3.0 since it has been removed

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* re-run all the tests if set_matrix contains changes

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* nit

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix regexp

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* add test case

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Refactor using packaging

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* add packaging

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* nit

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Introduce utilities for autologging error tolerance / safety (#3682)

* Safe

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Keras

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* TF

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Fixes

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Some unit tests

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* More unit tests

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Test coverage for safe_patch

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Add public API for autologging integration configs

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>
Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Remove big comment

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Conf tests

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Tests

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Mark large

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Whitespace

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Blackspace

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Rename

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Simplify, will raise integrations as separate PR

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Black

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Remove test_mode_off for now

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Support positional arguments

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Docstring fix

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* use match instead of comparison to str(exc)

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Black

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Forward args

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Try  importing mock from unittest?

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Fix import mock in statsmodel

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Revert "Fix import mock in statsmodel"

This reverts commit a81e810.

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Black

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Support tuple

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Address more comments

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Stop patching log_param

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

Co-authored-by: Mohamad Arabi <mohamad.arabi@databricks.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* reject bool metric value (#3822)

* reject bool metric value

Signed-off-by: Halil Coban <halil.coban@gmail.com>

* add comment on why we check for bool

Signed-off-by: Halil Coban <halil.coban@gmail.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix invalid metric error in statsmodels tests (#3828)

* Fix invalid metric issue in statsmodels flavor

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Introduce _is_numeric

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add autologging safety utils to several autologging integrations (#3815)

* Safe

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Keras

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* TF

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Fixes

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Some unit tests

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* More unit tests

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Test coverage for safe_patch

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Add public API for autologging integration configs

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>
Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Remove big comment

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Conf tests

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Tests

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Mark large

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Whitespace

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Blackspace

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Rename

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Simplify, will raise integrations as separate PR

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Remove partial tensorflow

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Black

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Updates from utils

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Remove test_mode_off for now

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Support positional arguments

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Docstring fix

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* use match instead of comparison to str(exc)

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Black

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Forward args

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Fixes from #3682

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* integration start

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Try  importing mock from unittest?

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Fix import mock in statsmodel

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Mock fix

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Revert "Fix import mock in statsmodel"

This reverts commit a81e810.

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Black

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Support tuple

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Address more comments

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Stop patching log_param

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Modules

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Another test, enable test mode broadly

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Black

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Fix

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Move to fixture

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Docstring

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Use test mode for try_mlflow_log

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Test try_mlflow_log

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Docs

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Assert

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Try log keras

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Review comment, add init for tests

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Actually commit the fixtures file...

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Test fixes, lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Fix, format

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Fix fast.ai

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lintfix

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Docstrings

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Address nit

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

Co-authored-by: Mohamad Arabi <mohamad.arabi@databricks.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add disable=True/False flag for Spark autologging (#3838)

* Safe

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Keras

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* TF

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Fixes

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Some unit tests

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Add public API for autologging integration configs

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>

* More unit tests

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Test coverage for safe_patch

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Add public API for autologging integration configs

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>
Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Remove big comment

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Conf tests

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Tests

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Mark large

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Whitespace

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Blackspace

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Rename

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Simplify, will raise integrations as separate PR

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Black

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Remove test_mode_off for now

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Support positional arguments

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Docstring fix

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* use match instead of comparison to str(exc)

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Black

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Forward args

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Try  importing mock from unittest?

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Fix import mock in statsmodel

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Revert "Fix import mock in statsmodel"

This reverts commit a81e810.

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Black

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Add support for disabling spark autologging

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>

* Remove unused method

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>

* Remove unused method part 2

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>

* add test case for before spark session

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>

* unnecessary change

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>

* modify comment

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>

* cannot assign FLAVOR_NAME in _spark_autolgging.py

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>

* address final comments

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>

* fix api documentation

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>

* fix api documentation II

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>

Co-authored-by: Corey Zumar <corey.zumar@databricks.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix ONNX and TF test failures (#3844)

* ONNX fixes

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Fixture fix

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Test fix

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Use correct resources

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* ONNX model files

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* fix imports

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Fix spark line length

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Add resource generation script

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Comment

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add autologging safety utils to LightGBM integration (#3833)

* Add autologging safety utils to LightGBM integration

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* lint

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* address comment

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add autologging safety utils to gluon (#3854)

* Apply safe patch utils to gluon

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* revert unrelated change

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* revert unrelated change

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* lint

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* docstring

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Set tags on autologged runs for easy identification (and add tags to start_run) (#3847)

* Progress

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Partial

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Test case

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Test case

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Test case

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Test scaffolding

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Progress

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Tests

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Fix fluent test

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Sklearn

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add autologging safety utils to pytorch integration (#3855)

* Add autologging safety utils to pytorch integration

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* lint

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add ExceptionSafeAbstractClass

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* nit

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* docstring and rename

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* decorate autolog not _autolog

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* docstring

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* lint

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* class -> metaclass

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* disable invalid-metaclass

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* update tests

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* patch in __init__

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix max-line-length error

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Comment on why we ignore invalid-metaclass error

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* nit

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* docstring

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* nit

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* comment

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* rename

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* API code snippets for fastai model  (#3850)

* Added short code snippets for autolog and get_default_env

Signed-off-by: Jules Damji <dmatrix@comcast.net>

* Added short code snippets for log_model, save_model, load_model

Signed-off-by: Jules Damji <dmatrix@comcast.net>

* minor modification

Signed-off-by: Jules Damji <dmatrix@comcast.net>

* Use model variable instead of learn

Signed-off-by: Jules Damji <dmatrix@comcast.net>

* import fastai.vision as vis

Signed-off-by: Jules Damji <dmatrix@comcast.net>

* Fixed lint issue

Signed-off-by: Jules Damji <dmatrix@comcast.net>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add fault tolerance for Spark autologging (#3860)

* Add fault tolerance for Spark autologging

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>

* add test case

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>

* fix spacing

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>

* fix errors

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>

* Move autolog impl up to spark.py

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>

* Teardown logic to avoid autologging active session bleeding

Signed-off-by: Mohamad Arabi <mohamad.arabi@databricks.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add autologging safety utils to tensorflow (#3861)

* commit

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* apply safe patch

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* workaround for export_saved_model

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* nit

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* nit

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* docstring

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* lint

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Use _on_exception to clean up log_dir

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* remove inst

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* inst?

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* unused import

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add autologging safety utils to statsmodels & Fast.ai (#3859)

* Fastai

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* statsmodels

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Progress

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Docstring

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Test fixes

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Format, docstring

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Some lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* Lint

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>

* use exception instead of valuerror

Signed-off-by: Corey Zumar <corey.zumar@databricks.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fixes after scuffed merge

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* mostly whitespace updates

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* hopefully final whitespace fix

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* actual final whitespace fix

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* removed unused variable again

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* switch to kwargs, add more testing

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix error test

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix problem kwarg in handlers

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* linting

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix lint in tracking test

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* file_store pagination, untested, plus pagedlist and protos changes

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* testing and fixing for file store

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* commit mostly to run tests again

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* commit again to re-trigger tests

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* add high default back

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add return type annotations to key MLflow APIs (#4242)

* Annotate fluent APIs

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix typo

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix typo

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* annotate client APIs

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* add None

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix lint?

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix return type of get_experiment_by_name

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix docstring of get_experiment_by_name

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add PagedList to __init__.py

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Workaround for missing reference

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* rename variable

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add more type hints

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix typo

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix lint

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix lint?

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* apply weichen's suggestion

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* remove unused re

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* address comments

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add argument type annotations (#4255)

* Add argument type hints

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix doc build

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* autolog

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix run_view_type

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix log_dict

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* bytes -> str

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Use TYPE_CHECKING

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* use TYPE_CHECKING

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Ignore pandas.DataFrame

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix order

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* trailing whitespace

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* black reformat

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* push to update PR

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* adding validation for lower max_results limit

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix comment length

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* trailing whitespace

Signed-off-by: Walter Martin <wamartin@microsoft.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add end to end integration test against REST server

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix test

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix formatting

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix test

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix limit for max_results

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* sort by creation time and experiment id

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* update proto

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* remove order by

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix comment

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* compile proto

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix tests

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix validation test

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add view_type doc

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix comment in proto

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* udpate commet on max_results

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add mlflow.list_experiments

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* remove unused imports

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* parametrize

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix experiment name

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Verify pagination behavior

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix URI

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix comment

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Set max_results to None

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* nit

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Remove default value for max_results

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix max_results logic

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Formatting

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* use ListFields

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* comment for listFields

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* rename function

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* remove used _list_experiments

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix broken test

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* remove print

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* use comprehensive list

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix failed tests

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* revert unrelated changes

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* revert unrelated changes

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Add fluent list_experiments

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* remove validation in client

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix test_list_experiments_paginated_errors

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Use SEARCH_MAX_RESULTS_DEFAULT

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* revert unrelated changes

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix _validate_experiment_pagination to exit immediately if given max_results is None

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* return nothing

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Address comments on _validate_experiment_pagination

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* update comment

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* set max_results to None

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* set max_results to None

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* fix lint errors

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix docstrings

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* set view_type to ACTIVE_ONLY be default

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* udpate return description

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix threshold for file/sql stores and comment on max_results

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* cleanup

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* Fix test_validate_list_experiments_max_results

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* lint

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* lint

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* remove page_token in fluent list_experiments

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

* protos

Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>

Co-authored-by: Harutaka Kawamura <hkawamura0130@gmail.com>
Co-authored-by: dbczumar <39497902+dbczumar@users.noreply.github.com>
Co-authored-by: Mohamad Arabi <mohamad.arabi@databricks.com>
Co-authored-by: Halil Coban <halil.coban@gmail.com>
Co-authored-by: mohamad-arabi <73549313+mohamad-arabi@users.noreply.github.com>
Co-authored-by: Corey Zumar <corey.zumar@databricks.com>
Co-authored-by: dmatrix <dmatrix@comcast.net>
Co-authored-by: Sid Murching <sid.murching@databricks.com>
Co-authored-by: harupy <17039389+harupy@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rn/none List under Small Changes in Changelogs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants