ラベル

AI Forecast 8306MUFG (211) Social (75) life (70) Financial (62) IT (57) Proposal (56) idea (50) Fund Management (48) Trading (43) economics (42) Covid-19 (40) AI (38) Hedge Fund (36) Risk (36) Culture (31) BOJ (29) Science (26) hobby (24) accounting (17) Apps (16) career (11) job (7) Travel (5) emotion (5) Hiking (4) music (3) Statarb (2) piano (2)

2020年1月31日金曜日

Google Home 文鎮化 Google Home is now Paperweight

Google Home 文鎮化

Google Home is now Paperweight



とうとうその日が来た。GoogleStoreから6千円で買った、2年ほど使ったGoogle Home Miniがとうとう文鎮化してしまった。白いLEDが4つ点灯したまま、何の応答もなくなる。裏のリセットボタンを押し続けると最初オレンジ、次に緑のLEDが付いたまま処理は進まなくなる。Finally the day came. Google Home bought two years ago at 6K jpy from Google Store finally became paperweight, i.e., bricked. Four LEDs light up but no answer. Reset button long-pressing at the bottom lit up green light after orange light without further initializing processing.


GoogleHomeはネットワーク経由で定期的に内部プログラムのUpdateが行われる。が、これが曲者で、リブート、リセットをしないと復旧しなくなる。平均して3か月に1回はリセットしている感じだ。そして、最後にリセットも効かなくなる恐怖の瞬間が来る。ネットではすでに情報があふれているが、定期的なUpdateが運が悪いとリセットでも復旧できなくなるまでにGoogleHomeを壊してしまうのだ。 Google home does periodical update through network for internal programs. However, due to this update, sometimes system goes down and will not recover unless reboot or reset. In average, I did reset once every three months. And finally the scary moment will come when even reset does not work. As talked a lot in net, if you are unfortunate, periodical update sometimes breaks down the whole Google Home due to software problem. Recovery now becomes impossible even by reset.

ネット情報では、Googleもこの問題を認識し、保証期間を超えても交換に応じるようなので、サポートのChatで写真などを送って見てもらった。しかし最後に保証期間を超えたら交換しないと言われた。ネット情報と違うので、日本時間のサポートが終わってから英語のサポートチャット(多分US)で同じように確認したが、そこでも保証期間を超えたら交換しないと言われてしまった。According to information in net, Google recognize this problem and replaces the product even after the warranty period. So I talked to Google through chat and sent them pictures of LEDs. However, in the end, I was told that no replacement is possible since warranty period expired. Since it was different from net information, I checked English support after Japan chat desk closed. However, even at English(probably US) help desk, I was again told the same that warranty period prevails over anything.

2週間ほど前に同じ問題が起き、その時は電源を抜いて半日ぐらいしてから再起動したら復旧した。その時は、もしダメでもGoogleが交換してくれるだろうと思っていたが、残念だ。Two weeks ago, I got same issue but reboot after unplugging for half day resolved the problem. At that time, I thought Google will replace even if recovery become impossible. But I was optimistic.

とはいえ、もはや日常の一部になってしまったGoogle Home。早速、ビックカメラで3千円のセールで新規に調達し、Google Homeなしの生活は2日で済んだ。 Nevertheless Google Home now became part of daily life in my home. So I run down to Bic Camera nearby and bought new one for 3K jpy, so missed only two days without Google Home.


2020年1月30日木曜日

アリは冬はお休み Ant Hibernates in Winter

アリは冬はお休み

Ant Hibernates in Winter




子供がアリ観察セットをどうしても欲しいというので、あまり考えずにamazonで買ってしまった。数種類のセットが出ていて、その中から、レビューと、YouTubeをみて、上のセットを買った。Kid desperately asked for ant observatory kit, so I bought it through amazon without thinking much about it. There were several products from which I picked the one above after checking reviews and YouTube.

こどもは喜び勇んで組み立てて、さあアリを取りに行こう!ということになった。Kid became excited and assembled kit, then said, let's go hunting ants!

子供が、公園に行っても、アリは一匹もいない。夏はあんなにいたのに。Kids went down to park but there was no ant, even a single one. There were so many during summer.

気温は朝6度、昼17度位で比較的暖かい1月の冬。 Temperature was 6 degree in the morning and 17 degree during the day, rather warm winter day in January.

ググってみると、アリはもう冬眠の時期だそう。I googled and found that now ants are totally under hibernation in this season.

調べてから買うべきだったが、後の祭り! I should have bought after checking but too late!

子供もアリの冬眠を身をもって実感。とても良い勉強になりました。 It was good leaning experience for kid too knowing about ant's hibernation.


2020年1月29日水曜日

AI 株価予測ー新値3本(日次) Stock Price AI Forecast - Three Line Break (Daily)

AI 株価予測 ー 新値3本(日次)

Stock Price AI Forecast - Three Line Break (Daily)


新値3本(日次、月次はこちら)をAI予測するツールを作って見た。なぜ、新値3本か? Made AI tool to forecast three line break(Daily. Monthly is here). Why three line break?

注)この投稿はあくまで実験ベースです。計算結果に基づく実際の投資は一切行わないでください。
Caution) This article is for experiment only.  Never make any actual investment based on the result.

株価を予測するAIは多く発表されている。しかし、ARIMAモデルなど自己相関に基づくモデル、オシレーター系のテクニカルチャートを使ったモデルなど、いずれも時間軸に縛られたモデルが殆どで、位相の伸縮に対応できないのが難点だ。Lots of AI systems out there to forecast stock price. However, most of them are bound to time axis such as ARIMA model, based on auto-correlation or oscillator based technical chart models, hence they cannot cope with extension or shrinkage of phase.

一方、新値3本は時間軸を無視して値動きのみを捉えたテクニカルチャートだ。過去3回の新値が否定された場合方向が逆転する。上図はTSE東証 8306 MUFG (株)三菱UFJフィナンシャル・グループの新値3本チャートだ。ロウソク足チャートと比べ、かなりすっきり特徴だけが抽出されている。Meanwhile, three line break ignores time axis but focus only on price movement. Denial of last 3 line inverts the direction. Picture above shows three line break on TSE 8306 MUFG. Looks much simpler depicting characteristics, compared to original candle stick chart.

このAIでは、2001年から現在までの日次の株価をベースにニューラルネットを教育する。新値3本の過去N本分(初期値は20)の値幅から、つぎの新値の値幅を予測する。厳密な逆転は考慮せず、次の新値の方向性を見る。エポックの初期値は収束のため20としてあるが、学習時間はかなりかかるため、動作チェック時には3などに減らす。This AI trains neural net based on daily stock price movements from yr 2001. Forecast next line break from previous N(default is set as 20) three line breaks.  Strict reversion is not considered but looks for direction of next break. Initial epoch is set as 20 for convergence but set down to 3 or lower for function test only since it takes long time to run.

活性化関数は全部で11ある。There are all 11 activation functions you can try (elu, hardsigmoid, linear, relu, relu6, selu, sigmoid, softmax, softplus, softsign, tanh).

すべてJavascript(github here)であなたのマシン上で実行される。ハードウエアアクセラレーションをブラウザ設定でONにするとWebGLがデフォルトで起動するので、強力なGPUがあるマシンの方が有利だが、なくても十分動作する。All run on your machine by Javascript(github here). If you turn on hardware acceleration in browser setting, WebGL will run on default, hence powerful GPU has advantage however, even if you do not have, it runs pretty ok.



JS FileReader
TLB(Three Line Break) Neural Net Prediction on TSE東証 8306 MUFG (株)三菱UFJフィナンシャル・グループ
Normalized Version
#OfNeurons/layerニューロン数/層
#ofEpoc教育繰り返し回数
InputLyrActivFunc入力層活性化関数
HidnLyrActivFunc中間層活性化関数
#ofHiddenLayer中間層の数
#ofThreeLineBreaks入力 新値 本数
ValidationSplit 検証用データ割合
ObservationStartDate 時系列開始日
ObservationEndDate 時系列最終日

Input most recent three line break width
 TLB width last 20 新値幅 20 本前
 TLB width last 19 新値幅 19 本前
 TLB width last 18 新値幅 18 本前
 TLB width last 17 新値幅 17 本前
 TLB width last 16 新値幅16 本前
 TLB width last 15 新値幅 15 本前
 TLB width last 14 新値幅 14 本前
 TLB width last 13 新値幅 13 本前
 TLB width last 12 新値幅 12 本前
 TLB width last 11 新値幅 11 本前
 TLB width last 10 新値幅 10 本前
 TLB width last 9 新値幅 9 本前
 TLB width last 8 新値幅 8 本前
 TLB width last 7 新値幅 7 本前
 TLB width last 6 新値幅 6 本前
 TLB width last 5 新値幅 5 本前
 TLB width last 4 新値幅 4 本前
 TLB width last 3 新値幅 3 本前
 TLB width last 2 新値幅 2 本前
 TLB width last 1 新値幅 1 本前
Output forecast of next three line break width
 ThreeLineBreak Forecast 新値幅予測