Windy Walk

So, today we advance to something slightly more interesting.
OpenAI, founded by Elon Musk and Sam Altman, is a cool platform for testing artificial intelligence algorithms. The platform aims to provide a consistent interface for a host of different environments. It is also extensible.
The most import thing in this mini-series of two posts is this: We provide an environment which reacts according to our action, but also with a random element. So the resulting reaction is a mixture of the intentional action plus a random factor.
This topic is split into two posts:
  1. In the first post we introduce a very simple windy walk model. To make things as simple as possible, this model is implemented without using OpenAI
  2. in the second post this same windy walk model is implemented as an extension to OpenAI
Let’s get started. We want to have an environment, implemented as a class, with two methods: reset (so the walk restarts at zero) and step (the walker takes a step and is shaken by the wind).

In [22]:

Next we take a walk…
In [23]:
We import necessary functions for plotting….
In [24]:
Out[24]:
Next we do a walk with a bigger IntendedStepSize
In [27]:
In [28]:

Simple Sin Function

This is a simple illustration that the
  • code highlighting works
  • plots are shown
This post that was exported from a Jupyiter notbook, as described in the previous post Introduction and Hello!
We start with importing numpy and matplotlib, two important python packages.

Now we generate vectorised x and y values for plotting:

So,  it works, hurray!

Introduction and Hello!

So time to start a new blog! Devoted to python, R and artificial intelligence.

The first post, however, is somewhat mundane.

I like Jupyter notebooks, which can be used to write presentable python code. I want to turn Jupyter notebooks – more or less automatically – into a blog post on a WordPress content management system. Especially, we want syntax color highlighting and pretty pictures coming out of the analysis in Jupyter Notebook.

I found a few helpful references on the web, especially this one, however, my WordPress Installation behaved slightly differently, so I will describe what I did.

Continue reading “Introduction and Hello!”