Ruby, unlike Python, makes lots of things implicit, and there’s a special kind of if expression that demonstrates this well. It’s often referred to as an “inline-if” or “conditional modifier”, and this special syntax is able to return one value when a con… Read more
Similar
I wanted to share what I think is a neat implementation of currying in Python. Getting the arity of a function First we need to be able to get the arity of a function. This is how we do it: … (more…)
Read more »
Learn how to use the gensim Python library to determine the similarity between two or more documents.
... (more…)
Read more »
Even the best of us hate logging in Python sometimes. And while a lot of its problems are actually just bad docs and terrible defaults in the past, there is some pain that can be avoided. (more…)
Read more »
Step-by-step Keras tutorial for how to build a convolutional neural network in Python. We'll train a classifier for MNIST that boasts over 99% accuracy.
Read more »