Unverified Commit 65852675 authored by Thomas Michael Timmermanns's avatar Thomas Michael Timmermanns Committed by GitHub

Update README.md

parent 8ca776e6
......@@ -130,7 +130,7 @@ It is possible to avoid redundancy in the architecture through the declaration o
The method `resLayer` in this example corresponds to a building block of a Residual Network. The `If` argument is a special argument which is explained in the next section.
## Special Arguments
There exists special structural arguments which can be used in each method. These are `->`, `|` and `If`. `->` and `|` can only be set to positive integers and `If` can only be set to a boolean. The argument `If` does not nothing if it is set to true and removes the layer completely if it is set to false. The other two arguments create a repetition of the method. We will show their effect with examples. Assuming `a` is a method without required arguments, then `a(-> = 3)->` is equal to `a()->a()->a()->`, `a(| = 3)->` is equal to `(a() | a() | a())->` and `a(-> = 3, | = 2->` is equal to `(a()->a()->a() | a()->a()->a())->`.
There exists special structural arguments which can be used in each method. These are `->`, `|` and `If`. `->` and `|` can only be positive integers and `If` can only be a boolean. The argument `If` does not nothing if it is true and removes the layer completely if it is false. The other two arguments create a repetition of the method. We will show their effect with examples. Assuming `a` is a method without required arguments, then `a(-> = 3)->` is equal to `a()->a()->a()->`, `a(| = 3)->` is equal to `(a() | a() | a())->` and `a(-> = 3, | = 2->` is equal to `(a()->a()->a() | a()->a()->a())->`.
## Argument Sequences
It is also possible to create a repetition of a method in another way through the use of argument sequences. The following are valid sequences: `[2->5->3]`, `[true|false|false]`, `[2->1|4->4->6]`, `[ |2->3]`, `1->..->5` and `3|..|-2`. All values in these examples could also be replaced by variable names or expressions. The first three are standard sequences and the last two are intervals. An interval can be translated to a standard sequence. The interval `3|..|-2` is equal to `[3|2|1|0|-1|-2]` and `1->..->5` is equal to `[1->2->3->4->5]`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment