Skip to content

Conversation

@pmrowla
Copy link
Contributor

@pmrowla pmrowla commented Oct 9, 2020

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

Will close #4688.

$ dvc exp show --no-pager
┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Experiment            ┃ Created      ┃     auc ┃ featurize.max_features ┃ featurize.ngrams ┃ prepare.seed ┃ prepare.split ┃ train.n_estimators ┃ train.seed ┃
┑━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
β”‚ workspace             β”‚ -            β”‚ 0.57756 β”‚ 2000                   β”‚ 2                β”‚ 20170428     β”‚ 0.2           β”‚ 50                 β”‚ 20170428   β”‚
β”‚ 11-bigrams-experiment β”‚ Jun 20, 2020 β”‚ 0.61314 β”‚ 1500                   β”‚ 2                β”‚ 20170428     β”‚ 0.2           β”‚ 50                 β”‚ 20170428   β”‚
β”‚ β”œβ”€β”€ 1df77f7           β”‚ 02:29 PM     β”‚ 0.51676 β”‚ 500                    β”‚ 2                β”‚ 20170428     β”‚ 0.2           β”‚ 50                 β”‚ 20170428   β”‚
β”‚ β”œβ”€β”€ 1dad0d2           β”‚ 02:29 PM     β”‚ 0.57756 β”‚ 2000                   β”‚ 2                β”‚ 20170428     β”‚ 0.2           β”‚ 50                 β”‚ 20170428   β”‚
β”‚ └── *5a9d6dc          β”‚ 02:29 PM     β”‚       - β”‚ 2000                   β”‚ 2                β”‚ 20170428     β”‚ 0.2           β”‚ 50                 β”‚ 20170428   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Indented output for dvc exp show --show-json in the same project:

{
  "workspace":{
    "baseline":{
      "timestamp":null,
      "params":{
        "params.yaml":{
          "prepare":{
            "split":0.2,
            "seed":20170428
          },
          "featurize":{
            "max_features":2000,
            "ngrams":2
          },
          "train":{
            "seed":20170428,
            "n_estimators":50
          }
        }
      },
      "queued":false,
      "metrics":{
        "scores.json":{
          "auc":0.5775633054725381
        }
      }
    }
  },
  "9e0cd8a4f9eff4dd184470721da42ac4eb64fd2c":{
    "baseline":{
      "timestamp":"2020-06-20T06:45:46",
      "params":{
        "params.yaml":{
          "prepare":{
            "split":0.2,
            "seed":20170428
          },
          "featurize":{
            "max_features":1500,
            "ngrams":2
          },
          "train":{
            "seed":20170428,
            "n_estimators":50
          }
        }
      },
      "queued":false,
      "metrics":{
        "scores.json":{
          "auc":0.6131382960762474
        }
      },
      "name":"11-bigrams-experiment"
    },
    "1df77f701b1f73e79df68513676631db8bd59636":{
      "timestamp":"2020-10-09T14:29:23",
      "params":{
        "params.yaml":{
          "prepare":{
            "split":0.2,
            "seed":20170428
          },
          "featurize":{
            "max_features":500,
            "ngrams":2
          },
          "train":{
            "seed":20170428,
            "n_estimators":50
          }
        }
      },
      "queued":false,
      "metrics":{
        "scores.json":{
          "auc":0.5167645657589519
        }
      }
    },
    "1dad0d2bd1ee6dced3a676e5cb672522e9e6406a":{
      "timestamp":"2020-10-09T14:29:49",
      "params":{
        "params.yaml":{
          "prepare":{
            "split":0.2,
            "seed":20170428
          },
          "featurize":{
            "max_features":2000,
            "ngrams":2
          },
          "train":{
            "seed":20170428,
            "n_estimators":50
          }
        }
      },
      "queued":false,
      "metrics":{
        "scores.json":{
          "auc":0.5775633054725381
        }
      }
    },
    "5a9d6dc5056efa1310cd9afb61f437680f38b1af":{
      "timestamp":"2020-10-09T14:29:53",
      "params":{
        "params.yaml":{
          "prepare":{
            "split":0.2,
            "seed":20170428
          },
          "featurize":{
            "max_features":2000,
            "ngrams":2
          },
          "train":{
            "seed":20170428,
            "n_estimators":50
          }
        }
      },
      "queued":true
    }
  }
}

@pmrowla pmrowla added enhancement Enhances DVC A: experiments Related to dvc exp labels Oct 9, 2020
@pmrowla pmrowla self-assigned this Oct 9, 2020
@pmrowla
Copy link
Contributor Author

pmrowla commented Oct 9, 2020

Output is just nested dictionaries.

  • At the top level, the first set of keys is commit SHAs from the original/parent DVC repo or workspace special case for the local workspace.
  • At the next level, keys are experiment commit SHAs or baseline special case containing the values from the original parent/baseline commit.
  • Within each experiment dict you can have:
    • name - Optional git branch/tag name string
    • timestamp - ISO8601 formatted timestamp string
    • params - nested dict of DVC parameters (mapping params_file: {key: value, ...})
    • metrics - nested dict of DVC metrics (mapping metrics_file: {key: value, ...})
    • queued - bool, True if experiment is queued and not yet run (same as asterisk from the regular table)
    • checkpoint_tip - Optional commit SHA string pointing to the tip of this checkpoint experiment branch. Only used for checkpoints, can be used to group checkpoint commits - commits from a checkpoint run will all share the same SHA.

@pmrowla pmrowla merged commit f20adf5 into treeverse:master Oct 9, 2020
@pmrowla pmrowla deleted the exp-show-json branch October 9, 2020 06:08
@efiop
Copy link
Contributor

efiop commented Oct 9, 2020

Thank you! πŸ™

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A: experiments Related to dvc exp enhancement Enhances DVC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --show-json support for dvc exp show

2 participants