Skip to main content

Logo

A Practical Debugging Tool for Training Deep Neural Networks

A better status screen for deep learning.

Installation • Docs • Experiments • License • Citation

CI Lint Doc Coverage License: MIT Code style: black arXiv


pip install cockpit-for-pytorch

Cockpit is a visual and statistical debugger specifically designed for deep learning. Training a deep neural network is often a pain! Successfully training such a network usually requires either years of intuition or expensive parameter searches involving lots of trial and error. Traditional debuggers provide only limited help: They can find syntactical errors but not training bugs such as ill-chosen learning rates. Cockpit offers a closer, more meaningful look into the training process with multiple well-chosen instruments.


CockpitAnimation

Installation

To install Cockpit simply run

pip install cockpit-for-pytorch
Conda environment For convenience, we also provide a conda environment, which can be installed via the conda yml file. It includes all the necessary requirements to build the docs, execute the tests and run the examples.

Documentation

The documentation provides a full tutorial on how to get started using Cockpit as well as a detailed documentation of its API.

Experiments

To showcase the capabilities of Cockpit we performed several experiments illustrating the usefulness of our debugging tool. The code for the experiments can be found in a separate repository. For a discussion of those experiments please refer to our paper.

License

Distributed under the MIT License. See LICENSE for more information.

Citation

If you use Cockpit, please consider citing:

Frank Schneider, Felix Dangel, Philipp Hennig
Cockpit: A Practical Debugging Tool for Training Deep Neural Networks
arXiv 2102.06604

@misc{schneider2021cockpit,
   title={{Cockpit: A Practical Debugging Tool for Training Deep Neural Networks}},
   author={Frank Schneider and Felix Dangel and Philipp Hennig},
   year={2021},
   eprint={2102.06604},
   archivePrefix={arXiv},
   primaryClass={cs.LG}
}

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog.

Unreleased

1.0.2 - 2021-10-26

Added

  • Added references to a separate experiment repository that publishes the code for all experiments shown in the paper.

Fixed

  • Protects the batch_grad field in the case where non-SGD is used together with other quantities that free batch_grad for memory performance. [#5, PR]

1.0.1 - 2021-10-13

From this version on, cockpit will be available as cockpit-for-pytorch on PyPI.

Added

  • Make library pip-installable as cockpit-for-pytorch [PR]
  • Require BackPACK main release [PR]
  • Added a savename argument to the CockpitPlotter.plot() function, which lets you define the name, and now the savedir should really only describe the directory. [PR, Fixes #8]
  • Added optional savefig_kwargs argument to the CockpitPlotter.plot() function that gets passed to the matplotlib function fig.savefig() to, e.g., specify DPI value or use a different file format (e.g. PDF). [PR, Fixes #10]

Internal

  • Fix #6: Don't execute extension hook on modules with children [PR]

1.0.0 - 2021-04-30

Added

  • First public release version of Cockpit.

MIT License

Copyright (c) 2019 Frank Schneider, Felix Dangel & Philipp Hennig

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for cockpit-for-pytorch 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cockpit-for-pytorch 1.0.2
File Size Uploaded Provenance Actions
cockpit-for-pytorch-1.0.2.tar.gz 26.0 MB Without provenance Details for cockpit-for-pytorch-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cockpit-for-pytorch 1.0.2
File Interpreter ABI Platform Actions
cockpit_for_pytorch-1.0.2-py3-none-any.whl Python 3 none any Details for cockpit_for_pytorch-1.0.2-py3-none-any.whl

Total release size: 26.1 MB

Release files / cockpit-for-pytorch-1.0.2.tar.gz

Download URL cockpit-for-pytorch-1.0.2.tar.gz
Size 26.0 MB
Tags Source
SHA-256 checksum
How to use checksums
68e7ab99e8647b7114194031340f0f3dfd00952517c338868dcbd21164c63d2e
BLAKE2b-256 checksum
How to use checksums
c980f01fe4d43480f98c855c16e7196151ad44f3606b297a15c5377d1e271811
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

Release files / cockpit_for_pytorch-1.0.2-py3-none-any.whl

Download URL cockpit_for_pytorch-1.0.2-py3-none-any.whl
Size 88.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1b04d9db42824d4a6ac2c3745e1a6b1dafb1851b4721db619bcedc13e5e364c
BLAKE2b-256 checksum
How to use checksums
70cad1f7247e38699beee4b50991f2540ec1f30f77f630e139d7621570a22f4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

Security for cockpit-for-pytorch 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page