Skip to content

MarcoABCardoso/watson-assistant-experiment

Repository files navigation

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!

About

Runs K-Fold cross validation on Watson Assistant Skill.

Resources

License

Stars

Watchers

Forks

Packages

No packages published