Runs K-Fold cross validation on Watson Assistant Skill.
npm install -g watson-assistant-experiment
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' })
npm run test
👤 Marco Cardoso
- Github: @MarcoABCardoso
- LinkedIn: @marco-cardoso
Give a ⭐️ if this project helped you!