1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
#!/bin/sh
# Run the examples from the man pages. Assumes $ADTTMP is set, see
# /usr/share/doc/autopkgtest/README.package-tests.gz
set -e
# Copy the example data to $ADTTMP, and run the examples.
cp data/* "$ADTTMP"
cd "$ADTTMP"
svmocas -c 10 -b 1 -v 0 riply_trn.light svmocas.model
msvmocas -c 10 -v 0 example4_train.light msvmocas.model
# linclassif exits with status == 1 on success...
linclassif -e -o riply_tst.pred riply_tst.light svmocas.model || [ $? -eq 1 ]
linclassif -e -o example4_test.pred example4_test.light msvmocas.model || [ $? -eq 1 ]
|