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-learnDocumentation
Table of Contents
Learner
train
Parameters
eval
Parameters
logboolean Log results as it goes along (optional, defaultfalse)
Returns {correctResults: number, testAccuracy: number} Result scores
serializeClassifier
Returns string Serialized classifier
serializeAndSaveClassifier
Parameters
filestring Filename (optional, default'classifier.json')
Returns Promise<(string | Error)> Serialized classifier
deserializeClassifier
Parameters
serializedClassifierstring .
Returns Object Classifier Deserialized classifier
classify
Parameters
data{input: any, output: any} Data to classify
crossValidate
Parameters
numOfFoldsnumber Cross-validation folds (optional, default5)verboseLevelnumber Verbosity (optional, default0)logboolean Pre-training logging (optional, defaultfalse)
Returns {microAvg: Object, macroAvg: Object} Averages
backClassify
Parameters
categorystring 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 💻 📖 🤔 🚧 |
This project follows the all-contributors specification. Contributions of any kind welcome!