JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q35022F
  • License MIT

ML platform for All Contributors

Package Exports

  • ac-learn

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ac-learn) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ac-learn

Where the All Contributors machine can learn about your contributions.

Install

TBC once its deployed

yarn add ac-learn --save
#or
npm i -D ac-learn

Documentation

Table of Contents

Learner

train

Parameters
  • trainSet Array<Object> Training set (optional, default this.trainSet)

eval

Parameters
  • log boolean Log results as it goes along (optional, default false)

Returns {correctResults: number, testAccuracy: number} Result scores

serializeClassifier

Returns string Serialized classifier

serializeAndSaveClassifier

Parameters
  • file string Filename (optional, default 'classifier.json')

Returns Promise<(string | Error)> Serialized classifier

deserializeClassifier

Parameters
  • serializedClassifier string .

Returns Object Classifier Deserialized classifier

classify

Parameters
  • data {input: any, output: any} Data to classify

Returns Array<string> Classes

crossValidate

Parameters
  • numOfFolds number Cross-validation folds (optional, default 5)
  • verboseLevel number Verbosity (optional, default 0)
  • log boolean Pre-training logging (optional, default false)

Returns {microAvg: Object, macroAvg: Object} Averages

backClassify

Parameters
  • category string Category name

Returns Array<string> Labels associated with category

toJSON

Returns Object JSON representation

fromJSON

Parameters

Returns Learner Generated learner from json

getCategoryPartition

Returns Object<string, {overall: number, test: number, train: number}> Partitions

getStats

Returns Object Statistics

Contributors

Thanks goes to these wonderful people (emoji key):

Maximilian Berkmann
Maximilian Berkmann

💻 📖 🤔 🚧

This project follows the all-contributors specification. Contributions of any kind welcome!