Giter Club home page Giter Club logo

inferdynamic's Introduction

InferDynamic

Infer a dynamic system

Overview

  • We presented three methods for black-box identification of switched nonlinear dynamical systems from trajectory data, and proposed a way to evaluate an inferred model by comparison to the original model. Using this evaluation, we tested the three methods for robustness and compared them on five classes of 20 examples in total.

Installation & Usage

Prerequisite

  • Python 3.7 with libraries SciPy, scikit-learn and LIBSVM

Installation

  • Just download. We have tested on an 1.8GHz Intel Core-i7 8550U processor with 8GB RAM running 64-bit Windows

Usage

  • Run run_tests.py

Output

  • Each row of results represents an experiment on a system and these components are respectively 'the variant ID' , 'the example ID', 'number of initial points', 'time step size', 'interval of simulation', 'the absolute error tolerance in Method 2', 'average relative distances using Method 1, Method 2, and Method 3' and 'wall-clock inference time in seconds using Method 1, Method 2, and Method 3'.

inferdynamic's People

Contributors

leslieaj avatar bzhan avatar jinxy0979 avatar

Watchers

James Cloos avatar  avatar  avatar

inferdynamic's Issues

Cannot run run_test in run_tests.py

Hello,
I am trying to run the function run_test you provide in the run_tests.py file to explore your code and comparisons between dbscan, tolmerge, and piecelinear methods, however, I am stumbling upon an error in the SVM classification problem.
I uncommented the lines 478, 483, and 488 of the file run_tests.py to preserve the signature you provide to use run_test.

The error I'm getting is the following:

Traceback (most recent call last):
  File "/Users/dk/Documents/git-repos/InferDynamic/run_tests.py", line 478, in <module>
    run_test(i+1, 'A', i, methods=['dbscan','tolmerge', 'piecelinear'])
  File "/Users//Documents/git-repos/InferDynamic/run_tests.py", line 116, in run_test
    P, G, boundary = infer_model(
  File "/Users/dk/Documents/git-repos/InferDynamic/infer_multi_ch.py", line 2426, in infer_model
    coeffs = svm_classify(P, Y, L_y, boundary_order, num_mode)
  File "/Users/dk/Documents/git-repos/InferDynamic/infer_multi_ch.py", line 1719, in svm_classify
    return get_coeffs(m, order=boundary_order)
  File "/Users/dk/Documents/git-repos/InferDynamic/infer_multi_ch.py", line 1683, in get_coeffs
    list_a[d] += svc[i][0] * 0.5 * sv[i][d+1]
KeyError: 3

I am running on macOS Montery 12.5.1 with Python 3.9.10. I have all the dependency libraries you mention installed.

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.