By Adam Anderson
This write-up assumes you have an general understanding of the TensorFlow programming model, but maybe you haven't kept up to date with the latest library features/standard practices.
/* Print out differences between two JSON files | |
*/ | |
'use strict' | |
const _ = require('lodash'); | |
const path = require('path'); | |
/** | |
* Print out all differences between two objects |
By Adam Anderson
This write-up assumes you have an general understanding of the TensorFlow programming model, but maybe you haven't kept up to date with the latest library features/standard practices.
This Gist summarizes some information about using the logging
module in Python 2.7. The examples here are
taken from the references.
The logging
module makes it easy to track what's going on in your code in a more graceful way than just putting
print statements during debugging. What we can do with the logging
module is create handlers which will
be responsible for sending log messages to a particular destination (a file, the terminal, etc).
logging
can report information at multiple levels:
Make sure you have installed all dependencies used by the project. This is easily accomplished with pip install <module_name>
See First Steps with Sphinx for an overview on how Sphinx works. Essentially, Sphinx uses a markup language called reStructuredText to create nice looking documentation. It will be helpful to read about the function of the master document index.rst
so that you can understand how the toctree
works.
Install Sphinx with pip install sphinx
To get Sphinx setup, sphinx-quickstart
. This will ask several questions about the project. To make the file tree cleaner, I think it's good to separate the respond to Separate source and build directories (y/n)
with y
. Sphinx's Autodoc extension automatically generates the reStructuredText needed for Sphinx to build the documentation from docstrings, so
By Adam Anderson
Aggregated links to tutorials with some summaries. Like all of my Gist notes, this document is mostly so I can keep track of useful resources.
By Adam Anderson
These notes are mostly just summaries of the provided references. The purpose of this document is to centralize the resources I found useful so they would be easy to find. Most definitions and explanations are paraphrased or quoted directly from the sources.