exp show: Add --drop and --keep args

Removed `--include-metrics` / `--include-params` and
`--exclude-metrics` / `--exclude-params`.

Removed `--no-timestamp` . Can be done by `--drop Created`.

`--drop` and `--keep` operate directly on the table columns.

`--keep` does not perform any filtering. It's only used
to specify columns to keep despite the other filtering.

For example `--only-changed --keep foo` will prevent
`foo` from being removed by `--only-changed`.

Another example, `--drop train.* --keep train.dropout`
will remove all columns matching `train.*` except for
`train.dropout`.

Closes #7079
Closes #7080
Pre-requisite for #6434
This commit is contained in:
David de la Iglesia Castro
2022-01-20 03:28:33 +01:00
parent 255e6a1aec
commit 43953ace53
3 changed files with 91 additions and 267 deletions
+3 -1
View File
@@ -790,7 +790,9 @@ def test_show_experiments_pcp(tmp_dir, mocker):
show_experiments(all_experiments, pcp=True)
td.dropna.assert_called_with("rows", how="all")
td.drop.assert_called_with("Created")
td.dropna.assert_called_with("rows", how="all", subset=[])
td.drop_duplicates.assert_called_with("rows", subset=[])
kwargs = td.to_parallel_coordinates.call_args[1]