@mindscript/train

0.0.1 • Public • Published

Mindscript Training Library

This is a training library for Mindscript models based on a user-friendly terminal UI. It supports simple training with tokenized or non-tokenized text.

Installation

Install the @mindlearn/train library using npm:

npm install @mindlearn/train

Usage

  1. Import the train function and specify the modelPath:
const train = require('@mindlearn/train');

const modelPath = './simple.json';
  1. Use the train function to initiate training:
// To train with tokenized text
train(true, modelPath);

// To train with non-tokenized text
train(false, modelPath);
  1. Follow the prompts in the terminal to provide training data and responses.

Code example:

const train = require('@mindlearn/train');

const modelPath = './simple.json';
// To train with tokenized text
train(true, modelPath);

Running

To run the training "UI", run:

node train.js

Package Sidebar

Install

npm i @mindscript/train

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

4.45 kB

Total Files

5

Last publish

Collaborators

  • aethera