1.1.1 • Published 3 years ago

jonbrain v1.1.1

Weekly downloads
3
License
ISC
Repository
github
Last release
3 years ago

JonBrain

A brain, like AI in works, but it's not very good yet. In early development so it's not much of an AI :)

If you think the old version was easier, it is on github, and you can goto the versions tab :)

Added "smart" search function.

A few compatibility fixes added.

Usage:

let jonbrain = require('jonbrain');
jonbrain.train(["yes",true], test); // trains the input "yes" to output true
function test(thing) { // callback function example, JonBrain also returns directly, so you can let response=jonbrain.train(["yes"]); too
	console.log(thing, response); // you can both use callback and the returned value, they're the same though.
}
var response = jonbrain.run(["yes"], test, true); // runs the input "yes" and let's the code find the output
jonbrain.search(["yes", 4], function(results){ /* top 5 results */
	console.log(results[0]);
});
1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago