RicardoSantos

Test - Gramian Angular Field

Experimental:
The Gramian Angular Field is usually used in machine learning for machine vision, it allows the encoding of data as a visual queue / matrix.
リリースノート: updated contrast following THE_REAL_BCT advise. corrected the missing volume option.
オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードの公開物での再利用には、ハウスルールに準拠する必要があります。お気に入りに登録してチャート上でご利用頂けます。

チャートでこのスクリプトを利用したいですか?

コメント

Can't wait to see your version of cnn on TV :)
Not familiar with gram, but it looks like the definition of your polars will affect the "vision" of your algo - by defaut, it "sees" up to 2*pi then goes back around. If your src data moves by much more than that, it'll effectively scramble its vision, no?
返信
RicardoSantos THE_REAL_BCT
@THE_REAL_BCT, thats why the data is detrended bound to range (1, 0) before getting the polar, but i see what you meant, thanks for feedback.
返信
THE_REAL_BCT RicardoSantos
@RicardoSantos, ah you're right (as always?) - I've read too fast. That said you could use more of the 0-pi (or even 2pi since you have both sin & cos) range vs 0-1 perhaps. Gets you just a little extra juice out of that non-linearity... Not sure it matters a ton in the end through a cnn through.
Anyway, beautiful script again. Thanks for sharing!
返信