@@ -7,7 +7,7 @@ commits in the <abbr>DVC repository</abbr>, or between a commit and the
7
7
## Synopsis
8
8
9
9
``` usage
10
- usage: dvc params diff [-h] [-q | -v] [--all] [--show-json]
10
+ usage: dvc params diff [-h] [-q | -v] [--all] [--show-json] [--show-md]
11
11
[a_rev] [b_rev]
12
12
13
13
positional arguments:
@@ -40,6 +40,8 @@ itself does not ascribe any specific meaning for these values.
40
40
- ` --show-json ` - prints the command's output in easily parsable JSON format,
41
41
instead of a human-readable table.
42
42
43
+ - ` --show-md ` - prints the command's output in the Markdown table format.
44
+
43
45
- ` -h ` , ` --help ` - prints the usage/help message, and exit.
44
46
45
47
- ` -q ` , ` --quiet ` - do not write anything to standard output. Exit with 0 if no
@@ -78,12 +80,12 @@ Let's now print parameter values that we are tracking in this
78
80
79
81
``` dvc
80
82
$ dvc params diff
81
- Path Param Old New
82
- params.yaml lr None 0.0041
83
- params.yaml process.bow None 15000
84
- params.yaml process.thresh None 0.98
85
- params.yaml train.epochs None 70
86
- params.yaml train.layers None 9
83
+ Path Param Old New
84
+ params.yaml lr None 0.0041
85
+ params.yaml process.bow None 15000
86
+ params.yaml process.thresh None 0.98
87
+ params.yaml train.epochs None 70
88
+ params.yaml train.layers None 9
87
89
```
88
90
89
91
The command above shows the difference in parameters between the workspace and
@@ -96,22 +98,22 @@ won't be shown if there are no changes:
96
98
97
99
``` dvc
98
100
$ dvc params diff
99
- Path Param Old New
100
- params.yaml lr 0.0041 0.0043
101
- params.yaml train.layers 9 7
102
- params.yaml train.epochs 70 110
101
+ Path Param Old New
102
+ params.yaml lr 0.0041 0.0043
103
+ params.yaml train.layers 9 7
104
+ params.yaml train.epochs 70 110
103
105
```
104
106
105
107
Specify ` --all ` option to see all the parameters including not changed ones:
106
108
107
109
``` dvc
108
110
$ dvc params diff --all
109
- Path Param Old New
110
- params.yaml lr 0.0041 0.0043
111
- params.yaml process.bow 15000 15000
112
- params.yaml process.thresh 0.98 0.98
113
- params.yaml train.layers 9 7
114
- params.yaml train.epochs 70 110
111
+ Path Param Old New
112
+ params.yaml lr 0.0041 0.0043
113
+ params.yaml process.bow 15000 15000
114
+ params.yaml process.thresh 0.98 0.98
115
+ params.yaml train.layers 9 7
116
+ params.yaml train.epochs 70 110
115
117
```
116
118
117
119
To compare parameters with a specific commit, a tag or any
@@ -120,9 +122,9 @@ additional command line parameter:
120
122
121
123
``` dvc
122
124
$ dvc params diff e12b167
123
- Path Param Old New
124
- params.yaml lr 0.0038 0.0043
125
- params.yaml train.epochs 70 110
125
+ Path Param Old New
126
+ params.yaml lr 0.0038 0.0043
127
+ params.yaml train.epochs 70 110
126
128
```
127
129
128
130
Note that the ` train.layers ` parameter disappeared because its value was not
@@ -133,8 +135,8 @@ To see the difference between two specific commits, both need to be specified:
133
135
134
136
``` dvc
135
137
$ dvc params diff e12b167 HEAD^
136
- Path Param Old New
137
- params.yaml lr 0.0038 0.0041
138
- params.yaml train.layers 10 9
139
- params.yaml train.epochs 50 70
138
+ Path Param Old New
139
+ params.yaml lr 0.0038 0.0041
140
+ params.yaml train.layers 10 9
141
+ params.yaml train.epochs 50 70
140
142
```
0 commit comments