Git Product home page Git Product logo

lotlib's Introduction

lotlib's People

Contributors

gblackout avatar joshrule avatar jthurst3 avatar mollicaf avatar moverlan avatar ov3y avatar piantado avatar sa- avatar yimregister 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

Watchers

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

lotlib's Issues

FunctionalNodeDemo creates TypeError in evaluate_expression

It looks like there was a change in LOTlib.Evaluation.Eval.evaluate_expression that breaks the FunctionalNodeDemo. Error below

Traceback (most recent call last):
  File "FunctionNodeDemo.py", line 106, in <module>
    f = evaluate_expression(t, args=['x'])
TypeError: evaluate_expression() got an unexpected keyword argument 'args'

pypi install

hi there,
is this project still supported and if so could I help by getting this on pypi so people can install it in a more usual way? (e.g., pip install lotlib)

deprecation error in examples

Hello,

I'm tinkering with the decay model outlined in MemoryDecay.py in the LOT examples. I'm getting a deprecation error when running the code:

"*** Use of 'args' is deprecated. Use display='...' instead."

at the line:

h0 = MyHypothesis(grammar, ll_decay=1.0, rrAlpha=1.0, args=['x'])

-Ian

new grammar with get_type_signature()

This kind of thing should be allowed but currently is not:

grammar.add_rule('FUNCTION', 'lambda', ['START'], 1.0, bv_type='OBJECT')
grammar.add_rule('FUNCTION', 'lambda', ['START'], 1.0, bv_type='BOOL', bv_args=['OBJECT'])
grammar.add_rule('FUNCTION', 'lambda', ['START'], 1.0, bv_type='BOOL', bv_args=['OBJECT', 'OBJECT'])

A workaround is

grammar.add_rule('FUNCTION', 'lambda', ['START1'], 1.0, bv_type='OBJECT')
grammar.add_rule('FUNCTION', 'lambda', ['START2'], 1.0, bv_type='BOOL', bv_args=['OBJECT'])
grammar.add_rule('FUNCTION', 'lambda', ['START3'], 1.0, bv_type='BOOL', bv_args=['OBJECT', 'OBJECT'])

grammar.add_rule('START1', '', ['START'], 1.0)
grammar.add_rule('START2', '', ['START'], 1.0)
grammar.add_rule('START3', '', ['START'], 1.0)

but this should be fixed eventually.

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.