/curve-fitting

A simple application demonstrating some of the capabilities of the Metaprob probabilistic programming language

Primary LanguageClojure

Curve fitting

A simple application demonstrating some of the capabilities of the Metaprob probabilistic programming language.

Prerequisites

Running

Launch a Clojure REPL:

make dev

Start the server by evaluating (go) at the REPL.

Once you have made changes you can reload the visualization with (reset).

You can close the visualization with(halt).

Usage

Once you are running the application you can place points by clicking anywhere in the window. The application will then sample polynomials from the prior and display them, shading each according to how likely it explains the clicked points.

Keyboard shortcuts

  • c will clear the screen.
  • t will switch "modes" from prior to resampling, and vice versa
  • o will toggle support for outlier detection
  • p will cycle through some preconfigured sets of points
  • Digits followed by return will set the maximum number of curves.
  • Any other key will refresh the curves.