auto_diff: an automatic differentiation package for Python. Nobel, P. In Proceedings of the 2020 Spring Simulation Conference, of SpringSim '20, pages 1–12, Fairfax, Virginia, May, 2020. Society for Computer Simulation International.
abstract   bibtex   
We present auto_diff, a package that performs automatic differentiation of numerical Python code. auto_diff overrides Python's NumPy package's functions, augmenting them with seamless automatic differentiation capabilities. Notably, auto_diff is non-intrusive, i.e., the code to be differentiated does not require auto_diff-specific alterations. We illustrate auto_diff on electronic devices, a circuit simulation, and a mechanical system simulation. In our evaluations so far, we found that running simulations with auto_diff takes less than 4 times as long as simulations with hand-written differentiation code. We believe that auto_diff, which was written after attempts to use existing automatic differentiation packages on our applications ran into difficulties, caters to an important need within the numerical Python community. We have attempted to write this paper in a tutorial style to make it accessible to those without prior background in automatic differentiation techniques and packages. We have released auto_diff as open source on GitHub.
@inproceedings{nobel_auto_diff_2020,
	address = {Fairfax, Virginia},
	series = {{SpringSim} '20},
	title = {auto\_diff: an automatic differentiation package for {Python}},
	isbn = {978-1-71381-288-3},
	shorttitle = {auto\_diff},
	abstract = {We present auto\_diff, a package that performs automatic differentiation of numerical Python code. auto\_diff overrides Python's NumPy package's functions, augmenting them with seamless automatic differentiation capabilities. Notably, auto\_diff is non-intrusive, i.e., the code to be differentiated does not require auto\_diff-specific alterations. We illustrate auto\_diff on electronic devices, a circuit simulation, and a mechanical system simulation. In our evaluations so far, we found that running simulations with auto\_diff takes less than 4 times as long as simulations with hand-written differentiation code. We believe that auto\_diff, which was written after attempts to use existing automatic differentiation packages on our applications ran into difficulties, caters to an important need within the numerical Python community. We have attempted to write this paper in a tutorial style to make it accessible to those without prior background in automatic differentiation techniques and packages. We have released auto\_diff as open source on GitHub.},
	urldate = {2020-07-01},
	booktitle = {Proceedings of the 2020 {Spring} {Simulation} {Conference}},
	publisher = {Society for Computer Simulation International},
	author = {Nobel, Parth},
	month = may,
	year = {2020},
	keywords = {automatic differentiation, mentions sympy, numerical methods},
	pages = {1--12},
}

Downloads: 0