Welcome to mirror list, hosted at ThFree Co, Russian Federation.

README « test - github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d87a38ae7bcebeca44134571414f2ae75b9d831c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Test suite for vw:

You may add arbitrary (train/test/varying-options) tests
by adding data (train, test) files and their expected reference
STDOUT and STDERRs

Test to run should be added below the __DATA__ section in RunTests

Tests are separated by an empty line
Each test is represented by a pair or triplet of items
   1st item is the command to run, {VW} represents the vw executable
   2nd item is the expected (reference file) standard output
   3rd item is the expected (reference file) standard error
file-names are relative to this (test) directory

Examples:

__DATA__
# Test 1:
{VW} -d train-sets/0001.dat -f models/0001.model
    train-sets/ref/0001.stdout
    train-sets/ref/0001.stderr

# Test 2:
{VW} -t train-sets/0001.dat -i models/0001.model
    test-sets/ref/0001.stdout
    test-sets/ref/0001.stderr

# Test 3: without -d, training only
{VW} train-sets/0002.dat    -f models/0002.model
    train-sets/ref/0002.stdout
    train-sets/ref/0002.stderr

# Test 4: same, with -d
{VW} -d train-sets/0002.dat    -f models/0002.model
    train-sets/ref/0002.stdout
    train-sets/ref/0002.stderr