File: executables

package info (click to toggle)
liblinear 1.8%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 484 kB
  • ctags: 331
  • sloc: cpp: 2,266; ansic: 1,432; python: 320; makefile: 127; sh: 9
file content (20 lines) | stat: -rw-r--r-- 755 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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 heart_scale "$ADTTMP"
cd "$ADTTMP"

liblinear-train heart_scale
liblinear-train -v 5 -e 0.001 heart_scale
# Both of these produce about reaching max iterations; we ignore it. Also, the
# classes don't fit heart_scale, but that's not the point here.
# We don't want to use autopkgtest's Restriction: allow-stderr generally, so
# redirect stderr here
liblinear-train -c 10 -w1 2 -w2 5 -w3 2 heart_scale 2>&1
liblinear-train -c 10 -w3 1 -w2 5 heart_scale 2>&1

liblinear-train -s 0 heart_scale
liblinear-predict -b 1 heart_scale heart_scale.model output_file