|
Formatting string syntax
Formatting strings are used to describe format of the data
files and the mapping infos. Each string consists of
the comma separated
entries (vector elements) composed of the entry
type
and index;
available
types
are: "i"
(input), "o" (output), "t" (target), "n" (nothing or
not-used) "e" (error);
1-based
index
indicates the place in the corresponding input /
output / target / nothing vector; "nx" entries compose the vector that is not used during
the training nor testing the network (however this
vector could be used to filter other data when
creating the graphs or writing output files or to
keep and pass forward values that are not used at
the current stage or as event weights during the
training).
Examples:
"i1, i2, i3, t1, t2" - If
applied to input/output file format, means: file
contains events with input vectors (length = 3)
followed by target vectors (length = 2);
appropriate output vectors (of the length = 2) will
be created automatically (and initialized to "0"). If
applied to forward mapping, means: destination event
vector will be created from source event input
vector (its first, second and third element) and
target vector (its first and second element).
"i1, o1, t1, i2, o2, t2" -
If applied to input/output file format, means: all
data (input / output / target) is stored in
file, but vector components are mixed. If applied to forward mapping, means:
put into the destination event vector following
values: source event input vector first element,
then source event output vector first element, then
source target vector first element, then source
input vector second element and so on...
"n1, i1, i2, n2, t1" - If
applied to input/output file format, means:
there are two numbers which are not used,
put them into the not-used vector. If applied
to forward mapping, means:
mix the not-used values with the input values and
with the target value from source event and put it
all into the destination event vector.
"ri:1-10, o1, t1" -
Sequence of entries of any
type can be replaced with single
range
entry rt:start-stop,
where
t
is the entries
type,
start
and
stop
are the indexes of the first and last entries
respectively; this format string is equivalent to "i1,
i2, i3, i4, i5, i6, i7, i8, i9, i10, o1, t1";
"ri:1-1000, rt:1-16, ri:1001-1024"
- ...another example of the
range
entry use.
Filter string syntax
Filter strings are sets of conditions used to select
events when creating graphs, writing data to the
file or exchanging events between blocks. Simplified
C syntax is used. Each condition consists of two
operands (number or vector element encoded like
above) and relation operator: ==, !=, >, >=, <, <=.
Brackets and logical operators & (AND) and | (OR)
may be used.
Examples: "i1
> 3.0"; "(i2 <= i3)&(t1 == 0.9)".
--top--
--up-- |