1. SumOfGaussians layer with Keras 2.0

    SumOfGaussians layer with Keras 2.0

    Recently, the TensorFlow team announced their public 2.0 beta API
    and I thought that would make a perfect excuse to see what has changed (and
    plenty should have changed from the 1.x API…). …


  2. Use Keras Pretrained Models With Tensorflow

    Use Keras Pretrained Models With Tensorflow

    In my last post (the Simpsons Detector) I’ve
    used Keras as my deep-learning package to train and run CNN models. Since Keras is just
    an API on top of TensorFlow I wanted to play with the underlying layer and therefore implemented
    image-style-transfer
    with TF. …


  3. Simpsons Detector

    Simpsons Detector

    When life gives you GCP credits, make a Simpsons Detector! …


  4. Pickling Keras Models

    Pickling Keras Models

    It’s pretty annoying that Keras doesn’t support Pickle to serialize its objects (Models). Yes, the Model structure is serializable (keras.models.model_from_json) and so are the weights (model.get_weights), and we can always use the built-in keras.models.save_model to store it as an hdf5 file, but all these won’t help when we want to store another object that references the model (like keras.callbacks.History), or use the %store magic of iPython notebook. …


  5. Efficient Range-Joins With Spark 2.0

    Efficient Range-Joins With Spark 2.0

    If you’ve ever worked with Spark on any kind of time-series analysis, you probably got to the point where you need to join two DataFrames based on time difference between timestamp fields. …


  6. Cheapest Single-Node Docker Cluster

    Cheapest Single-Node Docker Cluster

    If you have 20$-30$/month and you’re willing to pay it for a server that you can run some stuff on, stop reading now and launch a t2.small or a g1-small machine. But if you’re a cheap bastard like me, and want to go even lower than the 4.68$/month that a t2.nano machine would cost - keep reading… …


  7. Generating Random Polygons

    Generating Random Polygons

    Let’s generate random non-overlapping polygons on a plane! Sounded fairly simple to me at the beginning, but soon I discovered those nasty polygons are not as innocent as I thought. …


  8. The Griddlers Ninja new serverless AWS architecture

    The Griddlers Ninja new serverless AWS architecture

    Or - OMG! My AWS free-tier is over in 2 months and there’s no way I’m paying monthly fees for almost idle machines! …


  9. Looking for the state of TLV - IL elections part #1

    Looking for the state of TLV - IL elections part #1

    The “state of TLV” is a widely used phrase in Israel. Ask the average Israeli and he’ll tell you that everyone in TLV are left wing voters and we all eat sushi all day. That, of course, is far from the truth, but gives an opportunity to look at this theory from a more mathematical approach. …


  10. Use Ruby Gems With Hadoop Streaming

    Use Ruby Gems With Hadoop Streaming

    For some data processing we do at work, I wanted to use Hadoop Streaming to run through a file with my ruby mapper code. I’ve used ruby and Hadoop Streaming in the past, but normally just for simple scripts that didn’t require anything but the standard packages that come with every installation of ruby. …