GithubHelp home page GithubHelp logo

hudsonshi / anylogic-onnx-helper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from t-wolfeadam/anylogic-onnx-helper

0.0 0.0 0.0 138.95 MB

A custom AnyLogic library for inferencing ONNX models with a simple API

License: MIT License

JavaScript 13.51% Python 0.66% CSS 8.15% HTML 77.67%

anylogic-onnx-helper's Introduction

ONNX Helper Library for AnyLogic

About

This library provides a custom object that allows you to easily call predictions from an ONNX file.

Even though AnyLogic is intended to be used by business-oriented users, it does not hide or limit the possibilities of its internal language (i.e., Java) from the end user. The features this library provides are simply an abstraction on top of the already existing ONNX Runtime Java Library, to make the functionalities more accessible for all!

Getting Started

Installation

The library (a jar file) can be downloaded from the releases page, accessible on the right side of the GitHub page or from this link.

After downloading, copy/move the provided jar file in a location where it won't be accidentally moved or deleted.

Then in AnyLogic, in the Palette panel, press the plus ("+") button on the bottom left corner > Manage Libraries... > Add > (Select the jar file) > (OK)

Usage

The object in this library - "ONNX Helper" - represents a single connection to an ONNX file (.onnx). If you have multiple ONNX files that you want to query from, you can use multiple instances of this object, or a population if you want to get fancy!

After dragging an instance of the helper object into your model, its only property is to reference your desired ONNX file (as a local or absolute path). The helper object has one basic predict function with a few variants depending on your preferences and a handful of miscellaneous functions for common operations.

If you run the simulation model, you can click on the helper object to see information about the ONNX model, including:

  • the filename

  • the name, shape, and data type of all inputs

  • the name, shape, and data type of all outputs

For more detailed information about these topics, see this project's Wiki, accessible from the tab on the top of this project's repo.

anylogic-onnx-helper's People

Contributors

t-wolfeadam 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.