File: libfann-doc.examples.README

package info (click to toggle)
libfann 2.2.0%2Bds-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,792 kB
  • sloc: ansic: 6,033; cpp: 1,436; makefile: 113; sh: 27
file content (46 lines) | stat: -rw-r--r-- 893 bytes parent folder | download | duplicates (4)
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
39
40
41
42
43
44
45
46
README
---------

To compile and run these tests, you need to be in a directory for which you
have write permission (for example the /tmp directory).

Note that some of these tests have interdependencies. Specifically, for all
tests <NAME>_test.c, you have to run <NAME>_train.c first.

Available Tests are:
    xor_train
    xor_test
    simple_train
    simple_test 
    scaling_train
    scaling_test
    steepness_train
    robot
    mushroom
    cascade_train



Method 1:
---------

Use the Makefile provided by the package:

# Compile only one example

    $ make -f /usr/share/doc/libfann-dev/examples/Makefile cascade_train
    $ ./cascade_train

# Compile all examples

    $ make -f /usr/share/doc/libfann-dev/examples/Makefile
    $ ./TESTNAME


Method 2:
--------

Use gcc directly:

    $ gcc -o example -lm -lfann /usr/share/doc/libfann-dev/examples/<example>.c
    $ ./example