1.1.2 • Published 8 years ago

accuracy-meter v1.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

accuracy-meter

Measure accuracy, precision and recall of a machine learning classifier.

Usage

var meter = new AccuracyMeter();

dataset.forEach(function(){

	meter.add(['positive'],['negative']); // meter.add(predicted, golden);

});

meter.get();

API

add(predicted, golden)

It adds a pair <predicted, golden>, representing the set of prdicted labels and the set of golden labels. Golden and predicted labels are both arrays.

get()

It returns an object containing:

  • precision
  • recall
  • fscore

Why

  • node.js is not a standard language for NLP tasks, but...
  • machine learning is more and more in the cloud (check Watson NLP Classifier)
  • machine learning is becoming just a set of Http end points to invoke
  • node.js is perfect as middleware and client among Http end points
  • ...accuracy-meter might help you to measure the accuracy of your algorithms in the cloud
1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago