GithubHelp home page GithubHelp logo

fulldecent / 19-questions Goto Github PK

View Code? Open in Web Editor NEW
18.0 3.0 7.0 179 KB

A machine learning / bayesian inference engine assigning attributes to objects

License: MIT License

PHP 100.00%
game php data-science neural-network bayesian-inference bayesian bayesian-methods bayesian-optimization bayesian-network entropy

19-questions's People

Contributors

dtedesco1 avatar fulldecent avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

19-questions's Issues

Pick questions that aren't opposites of each other

In one game, it asked me "Is it hard" and "Is it soft". Maybe some work could be done to eliminate questions that are opposites. I could be wrong with my assumption, but I can't think of anything that's both hard and soft or white and green.

Review index size

  • The maximum index for objects and questions is 65536 because they use SMALLINT

Compare results to 20Q

DATA FROM 20Q

Plays   Objs     Ques      Synaps   Hit rate
1996    2k          
1998                                40%
2004    1m       10k       10m      73%
2006    16m             
Handhld          2k        250k     80%

Review scaling issue with number of hits

  • If the number of yes or no for a given (q,obj) < 65535 then the number of bits needed are:
    THE DECIMAL SCALING FACTOR ("DEC") is 65536

VAR | MIN | MAX | BITS
---------+---------+--------+--------
yes | 0 | 65535 | 16
pyes2 | 0 | 2*DEC | 17
pyes2min1 | -DEC | DEC | 16 + signed
logpyes2 | -14.99 | 1 | 20 + signed

note: p will never be 0 or 1, so that shaves a bit off of those

Review clipping

CLIP OBJECT HITS WITH:
update objects set hits=4 where hits>4;
UPDATE objects SET loghits=log2(hits+1)*65536

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.