jub

jubatus

Jubatus client for Node.js (unofficial)

Showing:

Popularity

Downloads/wk

0

GitHub Stars

7

Maintenance

Last Commit

3yrs ago

Contributors

3

Package

Dependencies

3

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

jubatus-node-client

Build Status npm version Codacy Badge Codacy Badge Known Vulnerabilities

Jubatus client for Node.js (unofficial)

Usage

See also http://jubat.us/en/api/index.html

Classifier

const jubatus = require("jubatus");

const classifier = new jubatus.classifier.client.Classifier(9199, "localhost");

Train

const datum = new jubatus.common.types.Datum().addString("foo", "bar").addNumber("quux", 0.1);
const labeledDatum = new jubatus.classifier.types.LabeledDatum("baz", datum);
const data = [labeledDatum];

classifier.train(data).then(result => {
    console.error(result);
}).catch(error => {
    console.error(error);
});

Classify

var stringValues = [ [ "foo", "qux" ] ],
    numValues = [ [ "quux", 1 ] ],
    datum = new jubatus.common.types.Datum(stringValues, numValues),
    data = [ datum ];

classifier.classify(data).then(result => {
    result.forEach(estimateResults => {
        var mostLikely = estimateResults
                .reduce((previous, current) => previous.score > current.score ? previous : current);
        console.log("estimate = %j", mostLikely);
    });
}).catch(error => {
    console.error(error);
});

Tutorial

see https://github.com/naokikimura/jubatus-tutorial-node

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial