Socket
Book a DemoInstallSign in
Socket

accuracy-meter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

accuracy-meter

1.1.2
latest
npmnpm
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 31 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.