2017

本日は、コラムがリリースされた日なので、日記はお休みです。

Today, new my column is released, so I take a day off.

"Over the AI(14) ---- beyond a reach of our imagination of AI"

Artificial intelligence coming to bay ---- Rare technology that has advanced due to giving up "perfect"

-----

今回のネタは、この話の典型例です。

This story is a typical example of the following.

"Don't make me laugh!" in my diary.

-----

実際に

In fact,

AI技術のコーディングを一度もやったことない人間が、

The person who has never tried coding AI technology,

AI技術の本を出版して、AI機能の資料を作成して、

writes books about AI technology, makes the materials of the AI functions,

AIサービスの未来を語っています。

and speaks about the future of AI service.

―― エラそうに

"with an arrogant attitude."

-----

えー? 違います、違います。

Well? No, no. No way.

「あなた」のことじゃありません。

It is not about you.

「私」のことですよ、勿論。

It is about me, isn't it? of course.

2023,江端さんの忘備録

GWの最初の2日間は、コラムを書いていて、そこからずっとコーディングをしていました。

I had written a long column for the first two days, and after that, I have been coding since then.

が、まあ、予想を越えてコーディングが面倒くさくて、現時点でも予想した進捗の5割も達成していない状況です。

However, beyond my first estimation, I have completed less than just half progress in the present.

いわゆる、『2行のデバッグに丸一日』というやつです ―― 最近の私のブログを読んで頂ければ状況はご理解頂けるとは思いますが。

This is so called, "Two line debugs for one whole day". You could be understanding my real progress by reading recent my columns.

まあ、その『2行のデバッグに丸一日』の結果を、私がバシバシと公開しているのは、私が気前が良い訳ではありません。

I disclosed the result of "Two lines debug for whole one day" easily, however, I am not "open-minded".

世界中の多くのそういう人の記事に助けて貰っているからです ―― "Give and Take"です。

I have been helped by the person who opens their technical tips easily every day. It is a typical "Give and Take"

だから、今一度、言おう。『インターネット、ばんざい』

-----

ところで、私については、"I take"は間違いがないのですが、"I give"については、ちょっと疑義があります。

By the way, for me, It is true that "I take", on the other hand, it is doubtful whether "I give" is.

良いものを頂いて、粗品を返却しているというのでは、なんとも申し訳ありません。

It is not excusable even if I take "something awesome" but I give "something little".

で、まあ、私のブログの横に出てくる参照情報を見ています。

So now I am reading the reference information on my blog page.

まあ、"トントン"くらいにはなっているのかな、と思っています。

I hope that they are almost "even"

『江端のサイトにアクセスしたけど、全然、役に立っていない』ということもありますからね。

There might be many cases that "the information is not useful, even if you access Ebata's Web site".

-----

以前、上司から、

Before, my boss told me that

『江端さんは、社内の特許・秘密情報に抵触しない範囲で、非常に上手く技術情報を開示していることは、よく分かっています。"匠の技"だと思います』

"I know well that Ebata-san opens technical information except for our company secret, security, and patentable information, It is "master craftsmanship", I believe"

と言われたことがあります。

一方、釘も刺されました。

On the other hand, my boss ordered me that,

『しかし、若手研究員の中には、江端さんの"匠の技"に気がつかない者もいます。その者への教育もしっかりやって下さいね』

"Some young researchers in my company might not notice your "master craftsmanship".so I hope you ask to instruct them about your methods"

と。

-----

という訳で、社内の研究員の諸君。

So, young researchers in my company.

自分の力量では、「社内情報を流してしまうかもしれない」と思っているなら、私のマネをしない方がいいです

You don't follow my examples if you worry about your "leak of information".

ゆめゆめ『匿名』ごときで逃げられると思わないようにして下さい。

You don't think that you can run away by using "anonymous"

もし会社が命じれば、私が『追手』になるケースすら考えられます。

Even if my company orders me, I become a "chaser" to you by far.

忘れないでください ―― 私は「会社の犬」です。

Don't forget it. I am a "company's dog".

2023,江端さんの忘備録

WSL2が凄い ―― と、今、実感しています。

WSL2 is awesome -- and now I realize it.

WSL2は、Windows BoxでLinuxを使えるようにしたものです。

WSL2 is a Windows Box that allows you to use Linux on your Windows Box.

私、これ、長い間、WindowsをホストOSとする仮想マシン(ゲストOS)だと思ってきました ―― まあ、間違っていないのですが。

I have long thought that this is a virtual machine (guest OS) with Windows as the host OS -- well, I am not wrong.

で、ゲストOSは、かならずホストOSの性能に「足を引っ張られる」と決めつけていました ―― これも、一般的には間違っていません。

So, I assumed that the guest OS would always be "dragged down" by the performance of the host OS -- which is also generally not wrong.

-----

しかし、昨年、制作を依頼した担当者から『WSL2を使えば、Go言語のパフォーマンスが向上する』と連絡があったんです。

But last year, the person in charge of commissioning the production contacted me and said, 'If you use WSL2, you can improve the performance of the Go language.

疑いながらも、実際に使ってみると、驚くような性能アップを確認しました。

Despite our doubts, I actually used the system and confirmed the surprising improvement in performance.

―― これ、ホストとゲストの関係じゃないぞ

"This is not a host/guest relationship"

と、ようやく気がつきました。

I finally realized that.

で調べてみたら、やはり、その通りでした。

I looked into it, and I was right.

-----

まあ、これだけでも凄いと思うのですが、Windowsの環境のディレクトリ構造をそのままで、"sudo apt install"等が使える、という、幸せに浸っております。

Well, I think this alone is great, but I am happy that I can use "sudo apt install" etc. without changing the directory structure of the Windows environment.

Linuxでの開発の記事の内容を、Windowsでそのままできて、コーディングはWindowsのvscodeそのままで問題なし ―― 天国かよ。

I can do the content of the article on development on Linux as it is on Windows, and coding is no problem with the Windows vscode intact -- is this heaven?

"sudo apt"も"wget"もできて、javaもlinux版がサクッとインストールできました。

I was able to do "sudo apt" and "wget" and install the linux version of java.

OpenTripPlanner のトライアル

WordやPowerPointから離れることができず、しかし、Linuxでの開発も必要という研究者にとって、これは最高の環境です。

For researchers who can't get away from Word or PowerPoint, but still need to develop on Linux, this is the perfect environment.

-----

で、まあ、何が言いたいかといいますと、

So, well, what I'm trying to say is,

ITエンジニアが『ゲスト』『ホスト』『幸せ』『天国』『最高』という言葉を使っている時は、IT開発環境の話をしているのであって

When IT engineers use the words 'guest', 'host', 'happy', 'heaven', and 'best', they are talking about the IT development environment.

―― 下世話ことをしゃべっている訳ではない

"They are not talking about juicy story"

ということを知っておいて頂きたいのです。

I want you to know that.

2023,江端さんの忘備録

私は、「良い部下」だった、という記憶がありません。

I don't remember that I was a "good subordinate".

そのような部下であっても、『この上司、リーダーについていこう』と決めた人もいました。

Even so, I thought to decide, 'I will follow this boss and leader.

それらの人々には共通した性格がありました。

They had a common character.

―― リーダーシップがない

"No leadership"

この一言に尽きます。

This is the one word.

-----

『リーダーシップがないリーダー』は、頼りがなく、いつも心配をしなければなりませんでした。

'Leaders without leadership' were unreliable and I always had to worry.

私よりも知見がなく、そのことに対して大した拘泥(こだわり)もプライドもないようでした。

They were less knowledgeable than I was and did not seem to have any great obsession or pride in the matter.

ですから、私は、自分のことだけでなく、チーム全体の動きも気にかけばけばなりませんでした。

So I had to be concerned not only about myself but also about the team as a whole.

しかし、そのようなリーダーは、威圧的ではなく、私の話もちゃんと聞いてくれ、必要に応じて方針を変更してくれる人でした。

However, such a leader was not overbearing, but would listen to me and change policy as needed.

私の失敗を責め立てるでもなく、黙って一緒にお客さんの所に謝りに行ってくれて、その後、その事をすっかり忘れてしまうように振る舞ってくれました。

They did not blame me for my mistake, but quietly went with me to apologize to the customer and then acted as if they would forget all about it.

そのような、ボンヤリとしたマネージメントの元、私を含めチームメンバは、自律的に動き、そしてメンバ間のコミュニケーションも円滑でした。

Under such a vague management, the team members, including myself, moved autonomously, and communication among them was smooth.

一番の要因は、私が、その人のことを「個人的に好きである」ということでした。

The most important factor was that I had a "personal liking" for the person.

-----

ただ、このようなリーダーは、社会的というか、会社的には評価されにくいようです。

However, such leaders seem to be less valued socially, or company-wise.

そして、省みるに、私がそのようなリーダーに憧れても、いざ自分がリーダーになると、時間や成果に対して厳密な人間になってしまいました。

And in reflection, even though I aspired to be such a leader, when I became one, I became a person strict about time and results.

立ち位置や保身で、人間というのは、簡単に姿を変えてしまいます。

People are easily disfigured by their standing and self-preservation.

そして現実として、パワハラを発動させるリーダーが、チームの成果を上げるのは事実です。

And the reality is that leaders who initiate power harassment improve the results of their teams.

ただ、"パワハラ"に対して、"退職"という形の報復で、リーダーの権限を失墜させることができます ―― 特に若い世代は。

However, retaliation for "power harassment" in the form of "resignation" can be used to disqualify a leader's authority, especially by the younger generation.

こうして考えると、(どの世代であっても)若者の離職率の高さというのは、ある種、会社のモラルを維持する機能として働いていると言えるかもしれません。

In this way, it may be said that the high turnover rate of young people (in any era) is, in a sense, a function of maintaining company morale.

-----

総じて、『リーダーシップがないリーダー』になることは、これはこれで、相当に難しいのです。

In general, to be a 'leader without leadership' is a lot more difficult.

なぜなら『リーダーシップがないリーダー』を目指した瞬間に、そのようなリーダーにはなれなくなるからです。

Because the moment you aim to be a 'leader without leadership,' you will not be such a leader.

「のび太」という国家理念

 

2011,江端さんの忘備録

『「リーダーシップを張れる政治家」が望まれている』と言われ続けていますが、私は、このフレーズ、かなり嫌いです。

65年程前に、

○カリスマとリーダシップを発揮し、
○戦後の復興を見事に成しとげ、
○欧州で突出した経済力を発揮し、
○公共事業を次々と打ち出して、失業率をかつてないレベルにまで低下させ、
○軍事力の増強を図り続け、米国や周辺の大国を威嚇し、国際発言力を爆発的に向上させた、優れた政治家がいました。

アドルフ・ヒトラー

という人物です。

-----

尖閣諸島問題や、北方領土問題、竹島問題、米軍基地問題で、

『我が国政府が、弱腰外交をしている』

と言われていますが、そんなこと「あったり前」じゃないですか。
馬鹿じゃなかろうか。

我が国は、

「国権の発動たる戦争と、武力による威嚇又は武力の行使は、国際紛争を解決する手段としては、永久にこれを放棄する」

と、国家の最高規範である憲法で規定しているのです。

ピストル持っている相手に、「俺は正しい」と素手で立ちむかえば、撃ち殺されるに決っています。

『弱腰外交』が嫌なら、憲法第9条を撤廃(×改正)し、軍隊(×自衛隊)を設立し、核武装をするような政策をぶち上げて、世論を、その方向に誘導しなければなりません。

-----

リーダシップを持つ政治家が、そのまま、再軍備をする政治家になる、というのは短絡すぎており、論理破綻していることは認めます。

しかし、「リーダシップを持つ政治家」というのは、恐しいリスクを持っているということくらいは、当然に認識しておくべきです。

-----

私は、

○平和憲法を維持し、
○弱腰外交を支持し、
○のらりくらりとその場対応を続ける政治家を支援します。

別に、かっこよくて、マッチョな国家にならなくても、良いと思うし、そういうスマートな政府も期待していません。

我が国は、ドラえもんの「のび太」の生き方に学べば良いのです。

2023,江端さんの忘備録

コーディングの怖いところは、「成果」と「努力や時間」の相関が非常に小さいということです。

The scary thing about coding is that the correlation between "results" and "effort or time" is very small.

例えば、200行くらいのプログラムを30分で作ることができることもあれば、2行のプログラムに10時間~1週間も『ドはまり』する、ということがあるからです。

For example, it is possible to create a program of about 200 lines in 30 minutes, or to be "stuck" for 10 hours to a week on a program of two lines.

―― JSONのパーサーなんぞ、3時間で片付けてやるわ

"I'll finish the JSON parser in three hours"

と着手したのが、昨日の今頃。

It was only this time yesterday that I started to do it.

tagのない配列型の形式をパースするプログラムのサンプルコードを求めて、ネットで探し回り、何十回もエラーに対応し、現在、24時間(仮眠を含む)を経過しました。

I kept searching the net for sample code for a program to parse an array type format without tags. And now 24 hours (including naps) have passed while dealing with dozens of errors.

完全に「ハマりました」。

I am completely "stuck".

―― もう、ダメだ

"Oh, God, no"

やむなく、質問サイトへの投稿を覚悟しました。

Reluctantly, I was prepared to post my question on a question site.

こんなに、ハマるくらいなら、早く投稿すればいいのですが、当然、投稿するためには、その状況を正確に詳細に記載しなければならず ―― 面倒くさいのです。それに、回答して貰えるかも分かりませんし。

I wish I could post sooner rather than get into this, but of course, in order to post, I have to describe the situation in exact detail -- it's a hassle. Besides, I don't know if I'll get an answer.

その為の短いプログラムを書いていたら、どういう訳か、そのプログラムが「正しく動く」のです。

When I write a short program for that purpose, somehow the program "works" correctly.

『いやいや、このコード、昨夜、何回か試したよね?』と思うのですが、動いているのだから仕方ありません。

'No, no, no, I tried this code several times last night, didn't I?' I think, but it's working, so I can't help it.

横浜市交通局 バス路線情報の取得方法 golangによるXMLパーサー

-----

プログラムは、動作したモノだけが正義です。

The program is only justified by the things that work.

動かないプログラムは、そのコードがどんなに、美しかろうが、読みやすかろうが、文法的に正しかろうが ―― すべて「ゴミ」です。

A program that does not work, no matter how beautiful, readable, or grammatically correct the code may be -- it is all "garbage".

コーディグは「努力や時間」などというものが、一切、斟酌(しんしゃく)されない世界です。

Codig is a world where "effort and time" are not taken into consideration.

-----

最近、私のGW、夏期休暇、年末休暇は、ほぼ全日コーディングに費されています。

Lately, my GW, summer vacation, and year-end vacations have been spent almost entirely in coding.

エンジニアとして、生き残りたいからです。

Because, I want to survive as an engineer.

『自作のプログラミングコード一本で、研究原資という"タマ"を取りに行く』

2023,江端さんの忘備録

過去の日記を探していたら、

When I was searching through my past diaries,

―― 10連休で人生を変える。AIエンジニアになろう。

を見つけました。

I found the article.

これ、2019年の日記の記事です。

This is a 2019 diary entry.

先程、探してみたところ、そのサービスは今年もやっているようです。

I just looked for that service and it appears that they are doing it again this year.

-----

本ページをご覧頂いているの皆様にお願いです。

I would like to make a request to all visitors to this website.

「10連休で人生を変えて、AIエンジニアになった方」ご本人、または、その知り合いの方。

You or someone you know who "changed your/their life in 10 straight holidays and became an AI engineer."

こちらのメールアドレスに、御一報を頂ければ幸いです。

I would appreciate it if you could let me know at this e-mail address.

交通費、滞在費、100%自腹で、インタビューに参上いたしたく希望しております。

I hope to come to you for an interview at 100% of our own expense, including transportation and accommodation.

きっと有意義なインタビュー、議論ができると、確信しております。

I am confident that we will have a meaningful interview and discussion.

よろしくお願いいたします。

Thank you for your cooperation.

2019,江端さんの忘備録

―― 10連休で人生を変える。AIエンジニアになろう。

"Change your life for 10 consecutive holidays. It will make you an AI engineer"

という広告を見ました。

I saw the ad.

私、「"AI"と言い換えられている技術」について2年間連載してきました。

I have been serializing "technology that is reworded as" AI "for two years.

しかし、そんな私でも、「AIエンジニア」という職種が何のことか分かりませんし、そもそも、そんな職種が存在するのか疑義があります。

However, even I, do not know what kind of job "AI engineer", and above all, I doubt whether such a job type exists.

少なくとも、AIの技術を具現化する為には、

At least to embody AI technology, you have already got the following all technologies.

■数式をプログラムにスペックダウンして、コーディングして、デバッグして、評価して、

- ability to speculate down formulas into programs, code, debug and evaluate

■データベースのスキーマ設計、構築、SQL文の作成して、

- ability for database schema design, construction, create SQL statement

■メモリ空間の使用イメージ、組合せ爆発の規模感の把握して、

- ability to grasp used memory space, and sense of scale of combination explosion

■学習プロセスを可視化するビューアを、ちょいちょいと作ってしまえるセンス

- sense of creating a viewer that visualizes the learning process

の全ての技能が必要だと思っております。

私の場合には、上記のそれぞれのプロセスの取得に「3年間」は必要だったと思います。

In my case, I think that "three years" was necessary to obtain each of the above processes.

「10日間」では無理だったと、断言できます。

It can be asserted that it was impossible in "10 days".

そもそも、プログラミングでなくても、エクセルで、分散、標準偏差、回帰分析ができないような人間が、"AI"という言葉を使うのは、正直「失笑」で「噴飯」ものだと思っています。

Even if it is not programming, but spreadsheet like Excel, honestly, I think that it is a "laughing" and a "jumping" thing that people say the word "AI" without performing variance, standard deviation, regression analysis.

(続く)

(To be continued)

2023,江端さんの忘備録

以前、インタビュー番組で、俳優の大泉洋さんが、

In an interview program, actor Yo Oizumi once said,

『自分はカラッポで、やりたいものはない』

"I am empty and there is nothing I want to do"

『誰かがやって欲しいと思うことをやって、喜んでもらえるのが、嬉しいだけ』

" I am just happy to do what I think someone wants me to do, and that makes me happy"

という話を聞いて、とても腑に落ちたことを覚えています。

I remember hearing him say this on the program, and it really hit me.

-----

これに関する話を、私もいくつか書いていたような気がしましたので、過去の日記を調べてみました。

I had a feeling that I had written a few stories about this, so I checked my past diaries.

私達の多くは「やりたいこと」など持っていない。与えられた条件の中で「やれることをやるだけ」である

- "Originally, we do not have "I want to do it myself"

あなたの夢を諦めないで

- Don't give up on your dreams.

『♪ 自由に生きていく方法なんて、1通りだってないさ~ 』

"There is no way to live freely ..."

うん、やっぱり、たくさん書いていました。

Yes, I knew I was writing a lot.

------

―― 私たちには、やりたいことなどない

"There is nothing we want to do"

をデフォルトとしておくことは、正直で、ラクな生き方である、と思います。

I think that keeping this phrase as a default is an honest and easy way to live.

2019,江端さんの忘備録

The other day I mentioned a little about Q-Learnings reinforcement learning program.

"1600億個の「状態」を、8400万個の状態まで減縮する方法"を見つけて、さらに、今はテストの為に65535個の状態まで小さくして、24時間ぶっつづけでプログラムを走らせています。

I am running the program for 24 hours, after finding a way to reduce the 160 billion "states" to 84 million states and furthermore, reducing it to 65535 for testing now,

-----

シミュレーションの中で学習中のオブジェクトが至った状態を調べたら、わずか

When I examined the state of the object under learning in the simulation, it was only

―― 482個

482

でした。

つまり、

In other words,

0.735% の状態にしか至っていなかったのです。

it had reached only 0.735%.

-----

これ、私には、かなりの衝撃でした。

This was a great shock to me.

現在、プログラムの中の私のオブジェクトは、1回のトライアルを2秒以内で完了できるようにしていますので、これまで4万回のトライアルが終わっています。

Currently, my object in the program is able to complete one trial in less than 2 seconds, so 40,000 trials have been completed.

1回のトライアルで、約1万2000回程の状態変異をしていますので、これまで、5億回以上の状態変化を繰り返しているはずです。

As the object had about 12,000 state mutations in one trial, it should have repeated over 500 million state changes so far.

私のオブジェクトは、"65535"という少数とは比較にならない数の、状態を試しているハズなのです。

My object should have been trying out a number of states more than the small number "65535".

Q学習をご存知の方は、「学習収束の結果だろう」と思うかもしれませんが、今回のケース、乱数の選択率を90%に設定しているので、「収束」は理由になりません。

If you know Q learning, you might think, "It will be the result of learning convergence," however, In this case, I set the random number selectivity to 90%, so the "convergence" was not a reason.

----

ところで、

By the way,

『♪ 自由に生きていく方法なんて、100通りだってあるさ~ (*)』

"There are 100 ways to live freely ... (*)"

(*)「風を感じて」/浜田省吾

(*) "Feel the wind" / Shogo Hamada

という歌が、カップラーメンのCMで流れていた時、私は中学生でした。

I was a junior high school student when the song was being played in a cup noodle commercial.

その時でさえ、私は、

Even then, I said

『バカ言ってんじゃねーよ』

"Don't say stupid!"

『10通りでもいいから、スペックアウト(書き出し)てみろよ』

"Try to write just ten ways down!"

という、「中二病」とはちょっと違った方向で、ひねくれていました。

as a trickster, in a slightly different direction against others.

-----

今回のQ-Learningによる強化学習プログラムで、改めて分ったことは、

In this reinforcement learning program with Q-Learning, what I found again is

(1)歌手の浜田省吾さんは、人生の状態空間(ここで言う"65535"通り」について唄っています

(1)Hamada Shogo-san talks about the state space of life ("65535" street said here)

しかし、

however,

(2)彼は、状態の遷移における位置的制約または時間的制約の概念を、完全に無視している

He completely ignores the notion of positional constraints or temporal constraints in state transitions

ということです。

今回、私の作った私のオブジェクトは、制約のない自由行動を5億回も許されていました。

This time, my object I created was allowed 500 million free actions without restrictions.

しかし、たった500の状態にも至れなかったのです。

However, it did not reach the state of only 500.

----

ここから考えると、浜田省吾さんは、

From this viewpoint, Hamada Shogo-san should have sung

『♪ 自由に生きていく方法なんて、1通りだってないさ~ 』

"There is no way to live freely ..."

と唄うべきであり、それこそが、ティーンエイジャに対する正しいメッセージであったと言えます。

and, it was the absolute correct message for teenagers.

実際のところ、このシミュレーションの結果は、現実世界の状況とも、恐しいほど合致していると思います。

As a matter of fact, I think the results of this program are in line with the real-world situation.