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

metrics: rework metrics implementation #3658

Merged
merged 1 commit into from
Apr 22, 2020
Merged

metrics: rework metrics implementation #3658

merged 1 commit into from
Apr 22, 2020

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Apr 20, 2020

Dropping support for all types except json and yaml. No more xpath
support.

Fixes #3572

@dmpetrov agreed to provide docs PR for this. πŸ™

  • ❌ I will check DeepSource, CodeClimate, and other sanity checks below. (We consider them recommendatory and don't expect everything to be addressed. Please fix things that actually improve code or fix bugs.)

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™

@efiop efiop force-pushed the 3572 branch 2 times, most recently from a3fe66f to 8ab3506 Compare April 20, 2020 14:17
@efiop
Copy link
Contributor Author

efiop commented Apr 20, 2020

Need to use custom loader for yaml for metrics and params to load float as Decimal. That way it will be much nicer looking and we won't have to bother with precision. Will provide a separate PR.

@efiop efiop force-pushed the 3572 branch 5 times, most recently from d374347 to 69aa10b Compare April 21, 2020 19:08
Dropping support for all types except json and yaml. No more xpath
support.

Fixes iterative#3572
@efiop efiop changed the title [WIP] metrics: rework metrics implementation metrics: rework metrics implementation Apr 22, 2020
@efiop efiop merged commit 45944dd into iterative:master Apr 22, 2020
@efiop efiop deleted the 3572 branch April 22, 2020 15:11
)
metrics_show_parser.add_argument(
"-x", "--xpath", help="json/yaml path.", metavar="<path>",
)
Copy link
Member

Choose a reason for hiding this comment

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

I thought we wanted to keep for metrics show (may be diff as well)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not in the same shape. As a filter - maybe, but later.

@shcheklein
Copy link
Member

Do we flatten the table in metrics show as we do for metrics diff now?

@efiop
Copy link
Contributor Author

efiop commented Apr 22, 2020

Do we flatten the table in metrics show as we do for metrics diff now?

Not like in metrics diff but somewhat similar. dvc metrics show didn't get a lot of attention because of the upcoming show for experiments, so we agreed to just not touch it much for now.

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.

Support yaml as metrics file
2 participants