
Tweets about SciPy (Scientific Python) and related topics from @JohnDCook.
Houston
Joined February 2011
- Tweets9.4K
- Following18
- Followers208K
- Likes27
numpy.var calculates population variance by default. With optional parameter ddof=1 it computes sample variance.
4
3,282
scipy.integrate has three routines for computing integrals from samples: trapz (trapezoid), simps (Simpson's), romb (Romberg).
8
4,519
scipy.special has functions sindg, cosdg, and tandg for computing trig functions of arguments in degrees.
10
4,191
Gauss' original hypergeometric function, now known as 2F1, is implemented in scipy.special.hyp2f1.
15
6,373
FiPy is a Finite Volume PDE solver written in Python ctcms.nist.gov/fipy
How to create green noise in Python with a Butterworth filter johndcook.com/blog/2016/04/2…
7
3,011
Robert Godin and I have a new textbook out today. The book only requires some knowledge of Python and some college mathematics.
Introduction to Machine Learning and Artificial Intelligence with Python. 741 pages.
NumPy and Pandas, regression, classification, time series, a neural net with backpropagation, then PyTorch. Then transformers, and how current language models are actually built: the key-value cache, grouped-query attention, mixture of experts, quantization. Reinforcement learning. The last chapter is about shipping the code to production.
Exercises have solutions.
Paperback: amazon.com/dp/B0HT2JWXQ5/
Kindle edition: amazon.com/dp/B0GX32CJ74
Nonlinear constraints: scipy.optimize.minimize(..., constraints=..., method='trust-constr') handles eq/ineq constraints.
15
5,766
The transpose method T returns a VIEW, not a copy and not an in-place transformation. The matrix doesn't change.
12
6,187
XlsxWriter: Python module for creating Excel XLSX files xlsxwriter.readthedocs.org/
14
6,006
The package scipy.odr is for orthogonal distance regression. (Minimize squared orthogonal distance rather than squared vertical distance.)
pyflakes checks Python source files for errors pypi.python.org/pypi/pyflake…
1
20
3,679

