Add Cost.is_stochastic to make warning more selective

I think this is a valid "extended summary" section of the docstring, because it clarifies the functionality of the interface. The "Notes" section is for details about the implementation of a function, such as mathematical formulas.
https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt#method-docstrings