cli.rst 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Tune CLI (Experimental)
  2. =======================
  3. ``tune`` has an easy-to-use command line interface (CLI) to manage and monitor your experiments on Ray. To do this, verify that you have the ``tabulate`` library installed:
  4. .. code-block:: bash
  5. $ pip install tabulate
  6. Here are a few examples of command line calls.
  7. - ``tune list-trials``: List tabular information about trials within an experiment. Empty columns will be dropped by default. Add the ``--sort`` flag to sort the output by specific columns. Add the ``--filter`` flag to filter the output in the format ``"<column> <operator> <value>"``. Add the ``--output`` flag to write the trial information to a specific file (CSV or Pickle). Add the ``--columns`` and ``--result-columns`` flags to select specific columns to display.
  8. .. code-block:: bash
  9. $ tune list-trials [EXPERIMENT_DIR] --output note.csv
  10. +------------------+-----------------------+------------+
  11. | trainable_name | experiment_tag | trial_id |
  12. |------------------+-----------------------+------------|
  13. | MyTrainableClass | 0_height=40,width=37 | 87b54a1d |
  14. | MyTrainableClass | 1_height=21,width=70 | 23b89036 |
  15. | MyTrainableClass | 2_height=99,width=90 | 518dbe95 |
  16. | MyTrainableClass | 3_height=54,width=21 | 7b99a28a |
  17. | MyTrainableClass | 4_height=90,width=69 | ae4e02fb |
  18. +------------------+-----------------------+------------+
  19. Dropped columns: ['status', 'last_update_time']
  20. Please increase your terminal size to view remaining columns.
  21. Output saved at: note.csv
  22. $ tune list-trials [EXPERIMENT_DIR] --filter "trial_id == 7b99a28a"
  23. +------------------+-----------------------+------------+
  24. | trainable_name | experiment_tag | trial_id |
  25. |------------------+-----------------------+------------|
  26. | MyTrainableClass | 3_height=54,width=21 | 7b99a28a |
  27. +------------------+-----------------------+------------+
  28. Dropped columns: ['status', 'last_update_time']
  29. Please increase your terminal size to view remaining columns.