Giter Site home page Giter Site logo

funman's People

Contributors

danbryce avatar dmosaphir avatar jgladwig avatar rpgoldman avatar

Stargazers

 avatar

Watchers

 avatar  avatar

funman's Issues

Update documented use cases

  1. Single shot solver: consistency, parameter synthesis
  2. Comparison: cross-model, and model-sim
  3. Visualization/Analysis

Development steps:

  • examples/ version of each
  • pytest
  • documentation
  • notebook

Precommit hooks

  1. black
  2. tests (for merging)
  3. debug statements
  4. reorder imports

Factor out parameter space processing

The following logic occurs in many places and make some changes more effort than they should be. Perhaps go through and factor out those uses into so shared function call.

inst = ParameterSpace.decode_labeled_object(data)                                                                                                                        
label = inst.label                                                                                                                                                           
if isinstance(inst, Box):                                                                                                                                                    
    if label == "true":                                                                                                                                                      
        true_boxes.append(inst)                                                                                                                                              
    elif label == "false":                                                                                                                                                   
        false_boxes.append(inst)                                                                                                                                             
    else:                                                                                                                                                                    
        l.info(f"Skipping Box with label: {label}")                                                                                                                          
elif isinstance(inst, Point):                                                                                                                                                
    if label == "true":                                                                                                                                                      
        true_points.append(inst)                                                                                                                                             
    elif label == "false":                                                                                                                                                   
        false_points.append(inst)                                                                                                                                            
    else:                                                                                                                                                                    
        l.info(f"Skipping Point with label: {label}")                                                                                                                        
else:                                                                                                                                                                        
    l.error(f"Skipping invalid object type: {type(inst)}")

Docker builds

Containers:

  • Dev
  • Demo
  • dreal build (common parent of the above)

Steps:

  1. Fix Dockerfile.dreal4 to build cleanly
  2. Remove Dockerfile.dev, use Dockerfile only
  3. Demo container uses pypi instead of local install.

New tests

  • Single process box search
  • math utils
  • representation coverage

Cleanup tests for petri and regnet models

There are several temp tests marked for skipping that can likely be removed or converted into more permanent tests.

The regnet test also contains a test that should be enabled but is currently too slow. That test should be revisited and enabled.

Update FUNMAN API

Modify the API to consolidate Consistency and ParameterSynthesis scenarios as follows:

  • Input:
    • Model (json)
    • Parameters (ranges and any/all flag to indicate if synthesized)
    • Query (list of constraints)
      • Start with bounds on state variables
      • Next steps: revisit demo/eval constraints for inclusion

Consolidate Test cases

Minimum requirements:

  • Models: hand coded, bilayer, petrinet to bilayer
  • Scenarios: consistency, parameter synth
  • Parameter spaces: consolidate
  • Move to scratch: incremental solve, smtlib writing,
  • Keep: cached parameter spaces,

Default move everything to scratch and pull back what we want.

API

  • define standalone interface that includes directives, and calls funman functions.
  • not sure if should be sub package or aux package.
  • funman package should not depend on API.

Add time key to parameters

Check whether the Terrarium syntax for time dependent parameters would be a better representation. Otherwise, parameters are of the form:

{
  "name": "beta",
  "lb": 0.1,
  "ub": 0.2,
  "time": 22
  "label": "any"
}

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.