GithubHelp home page GithubHelp logo

apoch / curvature Goto Github PK

View Code? Open in Web Editor NEW
260.0 26.0 23.0 773 KB

A full-featured editor for working with Utility-based AI

License: Other

C# 100.00%
ai artificial-intelligence utility-theory

curvature's Introduction

Curvature

Curvature is a full-featured Utility-based AI editor and sandbox tool.

The project provides a complete playground for creating, editing, and testing decision-making AI. Under the hood, Curvature uses Utility Theory to model the appeal of various behaviors. Specifically, Curvature is based on the Infinite Axis Utility System by Dave Mark. Curvature builds on the IAUS approach and includes enhancements and refinements developed during work on Guild Wars 2: Heart of Thorns as well as Guild Wars 2: Path of Fire.

Curvature is fully data-driven and supports the creation of a complete AI pipeline, from the core knowledge-base accessed by agents, to the specific considerations that drive the scoring of individual behaviors. The result is an end-to-end solution for modeling and testing AI, including a simple world representation that allows designers or AI programmers to place agents in a virtual space and see how they would choose to behave.

For complete project documentation, please see the Curvature wiki.

Screenshots

An example behavior being edited in Curvature A scenario set up to demonstrate basic chase AI in Curvature

Project Status

Curvature is currently in an open beta testing phase. Check the project releases page for the latest version of the tool suite.

Existing features of Curvature:

  • Design a knowledge-base to contain your world representation and data
  • Select knowledge-base entries to assemble a list of inputs that can drive decision-making
  • Pair an input with a decision using a consideration, which can control the relevance of the input via response curves
  • Collect considerations to make up a behavior which represents a discrete choice available to an AI agent
  • Group behaviors into behavior sets for easy categorization and bundling of related activities
  • Choose which behavior sets will be enacted for a given archetype of AI agent
  • Place AI agents in a sandbox world and watch them make decisions using scenarios
  • Response curves and considerations can be constructed with a simple wizard-style helper
  • Running scenarios will log the decisions made by each agent at each "tick" so you can review how things came about

More fine-grained information on project plans can be found in the issue tracker.

Overviews of releases and other high-level planning can be found in the project tracker.

curvature's People

Contributors

apoch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

curvature's Issues

Feature: dirty flag

Implement project "dirty" flag such that edits flag a project as dirty and saving clears the flag.

Bug: project statistics do not refresh in realtime

Creating a bunch of content does not cause the Project tab stats to refresh directly; other events can force a refresh (such as renaming the project or saving/reloading) but it'd be preferable if the numbers were always accurate. Just for fun.

Polish: fill whitespace when no archetype selected

Currently the UI shows a blank area when no archetype object is selected (including but not limited to when no object exists). Come up with a better solution for this that makes effective use of space.

Feature: improved rendering in scenarios

Implement a few features to make the scenario rendering nicer:

  • Configurable colors for each agent/location
  • Implement and display facing-direction for each agent
  • Add simple animations for actions/intentions

Bug: Incorrect attempt to union inputs

If two inputs are provided that read the same KB record but use a different origin (me vs. target) the Union function will still be called and (rightfully) barf out an exception.

Bug: clicking Cancel in the consideration wizard does not roll back changes made

Repro:

  • Create a consideration on a behavior
  • Input some values in the wizard
  • Click the consideration in the list of considerations for the behavior
  • Click the Wizard button to the right of the Input dropdown
  • Scramble some values
  • Click Cancel instead of OK
  • De-select and re-select the behavior

The scrambled values will be reflected in the consideration editor even though the dialog was canceled. This should instead roll back the dialog's changes to the state the consideration was in prior to opening the wizard.

Polish: fill whitespace when no behaviors selected

Currently the UI shows a blank area when no behavior object is selected (including but not limited to when no object exists). Come up with a better solution for this that makes effective use of space.

Feature: data persistence

Implement loading/saving of projects. Probably worth waiting on this until most of the functionality is in place to avoid versioning nightmares.

Feature: add parameterization of inputs

Currently all inputs are set up to assume a fixed range. Extend support for parameterizing ranges such that inputs can have a custom range on each consideration.

As part of this, make sure that the higher-level experimentation modes merge the ranges correctly, i.e. all possible values for an input should be settable from the experimentation UI without needing a slider per range.

Feature: random seeds for scenarios

The Random Seed dropdown UI should be completed to support actual selection of a random number seed for a simulation. Tracking a history of selected seeds would be cool.

Feature: randomize agent start locations

Add a checkbox in Scenarios so that agents can be given a random (based on a user-specified seed!) start location. Probably needs a "suggested boundary" concept or something similar to help keep things from going crazy.

Polish: fill whitespace when no scenario selected

Currently the UI shows a blank area when no scenario object is selected (including but not limited to when no object exists). Come up with a better solution for this that makes effective use of space.

Bug: consideration wizard Parameterization tab text is wrong for enumerations

When a consideration uses an input axis that has an enumeration constraint, the Consideration Wizard dialog talks about scaling the input value from 0 to 1 by dividing by the parameter. This prose is correct for fixed-range params but wrong for enumerations. Detect if the parameter being chosen is an enumeration and dynamically change the prose as necessary.

Feature: compensation formula

Implement the many-axis compensation formula into the scoring system, so that decisions with many inputs are not artificially penalized.

Feature: curve wizard

Introduce a guided step-by-step process for creating new response curves. Should be a complete solution for adding curves with various common shapes. Probably encompasses/supplants preset curve UI.

Feature: scenarios

Build a UI for placing characters in a simple 2D world and having them "think" through their respective behavior sets.

Feature: behavior sets

Rearrange the data hierarchy (and UI) so that behaviors are a soup and behavior sets are assembled piecemeal from the list of existing behaviors. Consider adding a "behavior category" ply to the hierarchy, so that the behavior soup is not unwieldy.

Task: catalog remaining wiki documentation and write it

A number of hint links in the UI point to non-existent wiki documentation. There are also pages on the existing wiki that don't link to anything because the thing they should link to has not yet been written.

Do some writing!

Feature: scenario inspectors

Add inspection capabilities so that agent thought processes can be monitored and debugged during the playback of a scenario.

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.