watson-assistant-experiment
TypeScript icon, indicating that this package has built-in type declarations

1.8.1 • Public • Published

watson-assistant-experiment

Version License: ISC Coverage Status Node.js CI

Runs K-Fold cross validation on Watson Assistant Skill.

Install

npm install -g watson-assistant-experiment

Usage

CLI:

> watson-assistant-experiment

Marcão Experiment Script

  Runs K-Fold cross validation on Watson Assistant Skill. 

Options

  -h, --help                  Print usage instructions.                         
  -a, --apikey string         Watson Assistant API Key.                         
  -w, --workspace_id string   Watson Assistant workspace ID.                    
  -u, --url string            Watson Assistant base URL.                        
  -n, --num_folds number      Number of folds. Default: 3                       
  -v, --version string        Watson Assistant API version. Default: 2020-07-01 
  -o, --output string         Output file. Default: results.json                

Output

  Experiment results in JSON format

As a module:

const Assistant = require('watson-assistant-experiment')
const assistant = new Assistant({ 
  version: '2020-07-01', 
  apikey: 'YOUR_WATSON_ASSISTANT_API_KEY', 
  url: 'YOUR_WATSON_ASSISTANT_SERVICE_URL'
})

let results = await assistant.runExperiment({ workspace_id: 'TARGET_WORKSPACE_ID' })

Run tests

npm run test

Author

👤 Marco Cardoso

Show your support

Give a ⭐️ if this project helped you!

Package Sidebar

Install

npm i watson-assistant-experiment

Weekly Downloads

6

Version

1.8.1

License

ISC

Unpacked Size

17.1 kB

Total Files

9

Last publish

Collaborators

  • macardoso95