Some Basic Statistics

I've always been fascinated by the essential statistical algorithms. While there are numerous statistical libraries, the simple measures of central tendency (mean, media, mode, standard deviation) have some interesting features.
Well. Interesting to me.
First, some basics.
def s0( samples ):
    return len(samples) # sum(x**0 for x in samples …
more ...

Building Probabilistic Graphical Models with Python

A deep dive into probability and scipy: https://www.packtpub.com/building-probabilistic-graphical-models-with-python/book I have to admit up front that this book is out of my league. The Python is sensible to me. The subject matter -- graph models, learning and inference -- is above my pay grade.

Asking About a Book …

more ...

Project Euler


Package Deal for Learning Python

If you're very new to programming in general, Python's a great place to start.
There are many, many tutorials. I won't even try to summarize them. They're generally good. And the more you read, the more you learn.
Moving past the n00bz needs, there are some more advanced books. Here's …
more ...


TDD, API Design and Refactoring

See this short discussion on a Stingray Reader feature:

https://sourceforge.net/p/stingrayreader/discussion/COBOL/thread/d2132851/?limit=25#2a3a

This turned into an exercise in pure TDD.

<rant>

I'm not a fan of applying TDD in a strict, death-march fashion.

I see the comments on Stack Overflow that …

more ...

Stingray 4.4 Update -- the Posix split command applied to COBOL files

Here's an interesting problem. Implement the split command for mainframe COBOL EBCDIC files with their BDW and RDW headers.

The conventional split can't handle COBOL EBCDIC files because they don't have sensible \n line breaks. Translating an EBCDIC file to ASCII is high-risk because COMP and COMP-3 fields will be …

more ...

Python Package Design, Refactoring and the Stingray Reader Project

We'll be digging into Mastering Object-Oriented Python. Chapter 17, specifically.

We'll also be looking at a big refactoring of the Stingray Schema-Based File Reader.

We can identify three species of packages.

One common design is a Simple Package. A directory with an empty __init__.py file. This package name becomes …

more ...

Want a copy of Mastering Object-Oriented Python? Free?

Want a copy free? See this contest: http://www.blog.pythonlibrary.org/2014/05/12/ebook-contest-win-a-free-copy-of-mastering-object-oriented-python/.

If you're really interested, I can sign a copy. That will double the shipping cost, so perhaps that's not the best idea.

The bad news is that the errata have started to trickle in …

more ...

Mastering Object-Oriented Python

Coming soon.
This is relatively deep, under-the-hood stuff for folks who want to master the Python feature set.
Here's the overview of what you get:
  • 0 Some Preliminaries 3 examples, 56 lines
  • 1 The __init__() Method 55 examples, 351 lines
  • 2 Integrating Seamlessly …
more ...