Have ideas to improve npm?Join in the discussion! »

    marcao-wa-experiment
    TypeScript icon, indicating that this package has built-in type declarations

    1.5.1 • Public • Published

    marcao-wa-experiment

    Version License: ISC Coverage Status Node.js CI

    Runs K-Fold cross validation on Watson Assistant Skill.

    Install

    npm install -g marcao-wa-experiment

    Usage

    CLI:

    > marcao-wa-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('marcao-wa-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!

    Install

    npm i marcao-wa-experiment

    DownloadsWeekly Downloads

    80

    Version

    1.5.1

    License

    ISC

    Unpacked Size

    14.5 kB

    Total Files

    9

    Last publish

    Collaborators

    • avatar