|
® |
|
Figure 3.1:
Note that given B, if we choose any data point p from I, p will be in a unique block Bk for some k. Let's denote this unique block number by the symbol v(p). This gives us a way to assign to each input p, a unique ``address'' v(p). We can summarize this discussion as follows:
Figure 3.2:
| Nk(p) = |
ì í î |
|
Let V be the 1 × 48 matrix with entries { V0, ···, V47} where each Vi is an arbitrary scalar. The vector V now plays the role of the parameter set P. We can use this notation to define a function G(V): B ® Â by
Figure 3.3:
| G(V)(p) | = |
|
|||||
| = | Vv(p). |
| G(V |
|
)(pi) » yi, |
| G(V |
|
)(pi) = V32 » yi |
| G(V0)(p) = V |
|
. |
Figure 3.4:
A closeup of the offsetting strategy is shown in Figure 3.6 for convenience. Further, the abstraction of Level 1 can be seen in Figure 3.7.
Figure 3.5:
Figure 3.6:
Note that the blocks in Level 1 are denoted by the symbols Bk1. and that there are K1 such blocks. A given input p will now land in a unique block in Level 0, Bk10 and a unique block in Level 1, Bk21, where k1 Î [0,K0-1] and k2 Î [0,K1-1]. For our particular example, we see K1 = 48 also, but if you think about it a bit, there is no reason to believe that the number of blocks obtained by a given offsetting strategy will always match the number in the previous level. It is clear that we can now assign two unique addresses to the input p, v0(p) = k1 and v1(p) = k2. This defines an address vector
Figure 3.7:
| v(p) = |
é ë |
|
ù û |
|
. |
Figure 3.8:
We summarize these results in Table 3.1:
Figure 3.9:
The address vectors are then:
Table 3.1:
| v(p1) | = |
|
|||||||
| v(p2) | = |
|
| Nk1(p) = |
ì í î |
|
| G(V)(p) | = |
|
||||||||||
| = |
|
|||||||||||
| = |
|
|||||||||||
| = |
|
Now in the combined level structure, there are 140 disjoint blocks and 140 unique addresses. If we built a single level coarse encoding using the combined levels, we could build a CMAC style mapping as follows: the address for a given p is given by v(p) which is an integer from 0 to 139. We can pick any 1 × 140 matrix U of scalars and define a model by
Figure 3.10:
| I | Ì |
|
|||||
| I | Ì |
|
|||||
| · · · |
|||||||
| I | Ì |
|
| v0(p) | = | s0 address level 0 |
| v1(p) | = | s1 address level 1 |
| · · · |
||
| vL-1(p) | = | sL-1 address level L-1 |
| Kj | = |
|
|||||||||||||||||
| · · · |
|||||||||||||||||||
| × |
|
||||||||||||||||||
| = | m0j × m1j × ··· × mN-2j × mN-1j |
| V | = |
|
(3.1) |
| v(p) | = |
|
| v(p) | = | { v0(p), v1(p), ··· ,vL-1(p) } |
| G(V)(p) | = |
|
||||||||||
| = |
|
|||||||||||
| = |
|
| K = number of nonempty | B |
|
Ç | B |
|
Ç ··· Ç | B |
|
. |
| G(V)(pi) = V |
|
= yi, |
| G(V)(x) = V |
|
= V0,i = yk, |
| (Qx,Qy) = ( |
|
, |
|
), |
| V | = |
|
| (Qx,Qy) = ( |
|
, |
|
). |
| V | = |
|
| (Qx,Qy) = ( |
|
, |
|
), |
| V | = |
|
|
£ |
|
L = .69L |
| G(V)(p0) | = |
|
|||||||||
| G(V)(p1) | = |
|
|||||||||
| G(V)(p2) | = |
|
|||||||||
| · · · |
|||||||||||
| G(V)(p0) | = |
|
|||||||||
| G(V)(p0) | = |
|
| V |
|
= V |
|
+ l |
|
, |
| for(i = 0; i < T; ++i) { |
| ei = yi - G(V)t,i(pi) |
| Et += ei |
| for( j=0; j < L, ++j ) { |
| Vt,i+1(j,vj(pi)) = Vt,i(j,vj(pi)) + l ei/L } |
| } |
| } |
| G(W)(p) | = |
|
||||||||
| = |
|
|||||||||
| = | G(p2) |
| w = |
|
. |
| (Dx,Dy) = ( |
|
, |
|
), |