Code Monkey home page Code Monkey logo

ds_opt_haihui's Introduction

Dynamical System Optimization in Linear Parameter Varying Formulation

This module is a modified rendition of Haihui Gao's Python implementation of Dynamical System Optimization in Linear Parameter Varying Formulation (DS-OPT). The module has been adapted and integrated as a part of the comprehensive pipeline: Directionality-Aware Mixture Model Parallel Sampling for Efficient Dynamical System Learning. Please refer to DAMM-LPVDS for complete usage.


Input

The input of ds_opt consists of data dictionary of the following form:

data_dictionary = {
    "Data": Data,         # Data point of shape, [dimension, number_of_data]
    "Data_sh": Data_sh,   # Shifted attractor to 0 for 'Data' (used in Lyapunov function learning)
    "att": att,           # Attractor of shape, [dimension, 1]
    "x0_all": x0_all,     # Start points for all demonstrations of shape, [dimension, number_of_traj]
    "dt": dt,             # Sample time
}

and gmm parameters results, which should be saved in output.json:

{
    "name": "Clustering Result",
    "K": # Number of clusters,
    "M": # Dimension,
    "Priors": # List of Prior,
    "Mu": # ravel K x M shape Mu to a list,
    "Sigma": #ravel K x M x M Sigma to a list,
}

Usage

import ds_opt class and initialize the object:

ds_opt = ds_opt(data_dictionary, OUTPUT_JSON_PATH)

Train:

ds_opt.begin()

Evaluate: Return the rmse, e_dot, dwtd for learned trajectory

ds_opt.evaluate()

Plot: Make plots for Lyapunov derivative, value, and reproduced streamlines

ds_opt.make_plot()

21931692138054_ pic

ds_opt_haihui's People

Contributors

sunannnsun avatar

Watchers

Tianyu Li avatar  avatar

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.