0.6.0 • Published 9 years ago

yhat v0.6.0

Weekly downloads
66
License
-
Repository
-
Last release
9 years ago

yhat-node

A node js client for the yhat ScienceOps API

Installation

$ npm install yhat

Examples

var yhat = require("yhat");

data = {
    'address_type': 2.5,
    'building_age': 4.5,
    'floor_space': 50.5,
    'floor_space2': 1.5,
    'has_bathroom': 0.5,
    'has_central_heating': 1.5,
    'has_hot_water': 0.5,
    'kitchen_type': 0.5,
    'neighborhood_type': 2.0,
    'rooms': 1.0,
    'tiled_bathroom': 0.5,
    'window_type': 0.5,
    'year_built': 1971.5,
    'years_on_lease': 2.5
}


yh = yhat.init("{YOUR USERNAME}",
               "{YOUR API KEY}",
               "http://cloud.yhathq.com/");

yh.predict("rentPredictor", data, function(err, rsp) {
    if (err) {
        console.log("Error connecting to server: " + err);
    } else {
        console.log("this is the result:", JSON.stringify(rsp));
    }
});

Analytics

0.6.0

9 years ago

0.5.2

9 years ago

0.5.1

9 years ago

0.5.0

9 years ago

0.4.0

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago