Yes it's Arie = Aai = @@i (sounds like I). :-)

On 20-02-19 16:57, Brian Schott wrote:
Aii,

(Is it Ari?)
Yes, that is a nice extension that absolutely anticipates my expanded
needs. I played with increasing the dimensions of i and w a little and it
works beautifully.

(Please follow below this little demonstration of expanded dimensions for
more discussion)

    ;/($ $"1 ((0 0;0 _1;_1 0 ;_1 _1){($ w),;._3 i. $ i)(,w)"_`[`] }"1 ,)
i=.3 3 $ Ga [ w=. 2 2 $ ka
┌───┬───┬───┬───┐
│abO│Mab│MNO│MNO│
│cdR│Pcd│abR│Pab│
│STU│STU│cdU│Scd│
└───┴───┴───┴───┘
    ;/($ $"1 ((0 0;0 _1;_1 0 ;_1 _1){($ w),;._3 i. $ i)(,w)"_`[`] }"1 ,)
i=.4 4 $ Ga [ w=. 2 2 $ ka
┌────┬────┬────┬────┐
│abOP│MNab│MNOP│MNOP│
│cdST│QRcd│QRST│QRST│
│UVWX│UVWX│abWX│UVab│
│YZAB│YZAB│cdAB│YZcd│
└────┴────┴────┴────┘
    ;/($ $"1 ((0 0;0 _1;_1 0 ;_1 _1){($ w),;._3 i. $ i)(,w)"_`[`] }"1 ,)
i=.4 4 $ Ga [ w=. 3 3 $ ka
┌────┬────┬────┬────┐
│abcP│Mabc│MNOP│MNOP│
│defT│Qdef│abcT│Qabc│
│ghiX│Ughi│defX│Udef│
│YZAB│YZAB│ghiB│Yghi│
└────┴────┴────┴────┘

I've convinced myself that your code is mostly a Hook with a "dummy" lha
because notice in the next demonstration I have inserted a [ on the left to
get the same result as the immediately previous demonstration. Not shown is
the case where I instead inserted a ], so that's why I am calling it a
dummy lha.

    ;/($ $"1 ([(0 0;0 _1;_1 0 ;_1 _1){($ w),;._3 i. $ i)(,w)"_`[`] }"1 ,)
i=.4 4 $ Ga [ w=. 3 3 $ ka
┌────┬────┬────┬────┐
│abcP│Mabc│MNOP│MNOP│
│defT│Qdef│abcT│Qabc│
│ghiX│Ughi│defX│Udef│
│YZAB│YZAB│ghiB│Yghi│
└────┴────┴────┴────┘

Let me refer to the w as a weight filter and the i as an input field. This
terminology is somewhat compatible with the application I am studying:
convolutional neural nets. I am trying to work through some examples of
convnet's and am hoping such the construct being developed in this thread
can be used in convnets.

So, my reason for exploring the dummy lefthand side is that I am thinking
that your script might be further expanded to accommodate more than just
the corner filter positions to positions defined by a compatible "stride"
which is like the movement vector in ;._3 (the 0{x in tesselation
discussion in the Dictionary). I don't need that at the moment, but it
would be considerably more general in the convnet context.



----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to