Git Product home page Git Product logo

cbf-ssm's Introduction

Conditional Backward/Forward SSM

This repository contains the official implementation of the CBF-SSM model presented in Structured Variational Inference in Unstable Gaussian Process State Space Models by Silvan Melchior, Felix Berkenkamp, Sebastian Curi, Andreas Krause.

Please cite the above paper when using this code in any way.

Datasets

The datasets PR-SSM was already benchmarked on (Actuator, Ballbeam, Drive, Dryer, Furnace, Sarcos) can be downloaded as described in the readme in their repo.

The remaining datasets (RoboMove, Voliro, SpringNonLinear) can be downloaded here.

All datasets need to be placed in cbfssm/datasets/data.

Installation

To install CBF-SSM, run:

$ cd <path-of-repo>
$ pip3 install -e .

Reproduce Paper Results

The folder run contains a script to reproduce the results for every dataset we use to compare CBF-SSM to previous work. The results will be in a new folder called run_output.

Run Your Own Experiments

Follow these instructions to run your own experiments using CBF-SSM

Dataset Class

At first, write a new dataset class which derives from the base class. The code needs to overload dim_u, dim_y and the method prepare_data (see example) s.t. it

  • loads the data
  • normalizes the data
  • saves the data as train- and test-arrays with shape [experiments, time-samples, data-dimension]
  • calls create_batches()

Loading of the data depends on the source of your new dataset. For normalizing the data, there are helper functions if you have one experiment only (i.e. one long sequence), again see example.

Run File

Then, write a new run-file. You can use the template as a starting point, which also contains a lot of comments on how to choose your parameters.

cbf-ssm's People

Contributors

befelix avatar silvanmelchior avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cbf-ssm's Issues

setup.py

This is not urgent right now. But before we release this can we turn this into a single library together with a setup.py file so that it can be installed with pip install .? That would eliminate any issues caused by missing dependencies and get rid of the set_path.sh file.

Also that way the scripts to run the experiments can be in a separate folder, import cbfssm, and then do their thing. Would be a lot cleaner.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.