Skip to main content

Posts

Teaching an AI to write Python code with Python code

OK, let’s drop autonomous vehicles for a second. Things are getting serious. This post is about creating a machine that writes its own code. More or less. Introducing GlaDoS Skynet  Spynet. More specifically, we are going to train a character level Long Short Term Memory neural network to write code itself by feeding it Python source code. The training will run on a GPU instance on EC2, using Theano and Lasagne. If some of the words here sound obscure to you, I will do my best to explain what is happening. This experiment is greatly inspired by  this awesome blog post  that I highly recommend reading. I am by no means an expert on deep learning, and this is my first time fooling around with Theano and GPU computing. I hope this post will show how easy it is to get started. Some background Neural networks are a family of machine learning algorithms that process the inputs by running them through layers of artificial neurons to generate some output. Train...

Setting up Linux Containers

Make sure system has 3.10+ {*Specifically, 3.16-0.generic*} for our software purpose. Install LXC On Ubuntu 1. sudo apt-get update LXC is available on Ubuntu default repositories. So, Run the following command to install it on Ubuntu, and its derivatives. 2. sudo apt-get install lxc lxctl lxc-templates The above command will install LXC, and everything needed by LXC. Now, enter the following command to check everything OK. 3. sudo lxc-checkconfig Sample Output: Kernel configuration not found at /proc/config.gz; searching... Kernel configuration found at /boot/config-3.19.0-15-generic --- Namespaces --- Namespaces: enabled Utsname namespace: enabled Ipc namespace: enabled Pid namespace: enabled User namespace: enabled Network namespace: enabled Multiple /dev/pts instances: enabled --- Control groups --- Cgroup: enabled Cgroup clone_children flag: enabled Cgroup device: enabled Cgroup sched: enabled Cgroup cpu account: enabled Cgroup memory controller: enabled Cgroup cpuset:...

Public vs Private, Amazon compared to OpenStack

Public vs Private, Amazon Web Services EC2 compared to OpenStack ® How to choose a cloud platform and when to use both The public vs private cloud debate is a path well trodden. While technologies and offerings abound, there is still confusion among organizations as to which platform is suited for their agile needs. One of the key benefits to a cloud platform is the ability to spin up compute, networking and storage quickly when users request these resources and similarly decommission when no longer required. Among public cloud providers, Amazon has a market share ahead of Google, Microsoft and others. Among private cloud providers, OpenStack ®  presents a viable alternative to Microsoft or VMware. This article compares Amazon Web Services EC2 and OpenStack ®  as follows: What technical features do the two platforms provide? How do the business characteristics of the two platforms compare? How do the costs compare? How to decide which platform to use and how to u...