黒木玄 Gen Kuroki
- いいね数 389,756/311,170
- フォロー 995 フォロワー 14,556 ツイート 293,980
- 現在地 (^-^)/
- Web https://genkuroki.github.io/documents/
- 自己紹介 私については https://twilog.org/genkuroki と https://genkuroki.github.io と https://github.com/genkuroki と https://github.com/genkuroki/public を見て下さい。
2020年05月23日(土)

恐ろしい話。曝露後接種は時間勝負なので、生きた心地がしなさそう…。それにしても、その後のツイ主さんの冷静な判断と行動! 尊敬します。 twitter.com/yoshitriton/st...
タグ:
posted at 00:15:32

@sdwfrost @lh3lh3 @JuliaLanguage @nim_lang @CrystalLanguage @rustlang This is another interesting read about bioinformatics benchmarks in #JuliaLang from @biojl_ biojulia.github.io/post/seq-lang/
タグ: JuliaLang
posted at 01:48:47
ごまふあざらし(GomahuAzaras @MathSorcerer
#Julia言語
SymbolicUtils.jl で q-commutative なものを実装できるか調査中(まだ不完全) pic.twitter.com/H3hinpYpTG
タグ: Julia言語
posted at 02:02:19
ごまふあざらし(GomahuAzaras @MathSorcerer
こういうことを自動的に計算したい(Juliaで) pic.twitter.com/TqXJ5yvKU1
タグ:
posted at 02:02:20

#JuliaLang will now use braille patterns in the terminal to show you the sparsity pattern of sparse matrices.
See the discussion in github.com/JuliaLang/juli... pic.twitter.com/cQ5HZgmo7D
タグ: JuliaLang
posted at 02:04:21


The #julialang ecosystem for modeling is coming along nicely. In a recent version of ModelingToolkit.jl, one can take a reaction network and convert to an ODE, an SDE, or a Gillespie model. Here's a modified example by ChrisRackauckas in SR repo github.com/epirecipes/sir...
タグ: julialang
posted at 02:41:20

For inference using DiffEqParamEstim.jl, one can take a single likelihood function and pass it without modification to multiple different optimisation libraries github.com/epirecipes/sir...
タグ:
posted at 02:42:25

@Weight_to_wash @yoshitriton @dsd_xo @warabiforattac 大仏さん、ワクチンは普通、感染前に接種するので、それが予防接種となります。ただ狂犬病の場合は感染したあと(曝露後)でもワクチンを接種すれば効果があります。
ただ日にちをあけて複数回接種しなければならず、その間に発症してしまうと終わりです…。
タグ:
posted at 03:07:02

Tomoei Takahashi 高橋智 @tomoeit0524
データサイエンティストになるのってこんなに大変なんだ、俺無理やん、ってなった。
情報学専攻でない学生がデータサイエンティストを夢見た話 - Ebitia's Log yamat-hat.hatenablog.com/entry/2020/05/...
タグ:
posted at 03:07:19

[CPU律速なRuby/Pythonコードはデフォルト設定のdocker上で遅くなる - まめめも](mametter.hatenablog.com/entry/2020/05/...)
タグ:
posted at 03:27:50

Tomoei Takahashi 高橋智 @tomoeit0524
つか、今のバイトでやってる仕事はまさにデータサイエンティストであるが。笑
ありがたいことにJuliaでやらせてもらっている。
(最近は学振執筆と論文reviseでほとんどできていない。。。すいません。。。)
タグ:
posted at 03:31:58

Garrett Mooney @GarrettRMooney
Coming from a non-CS background, this has been an immensely useful intro to thinking about #JuliaLang code optimization wrt hardware.
Hoping to eventually move from "let's throw a bunch of compute at this garbage code" to "let's throw a bunch of compute at this decent code". twitter.com/Viral_B_Shah/s...
タグ: JuliaLang
posted at 03:49:54

OokuboTact 大久保中二病中年 @OokuboTact
@temmusu_n @takusansu @sekibunnteisuu @miyuki_MathT #超算数
「長方形と正方形」について調べていたら、片桐重男が重要な役割をしている気がしました。
タグ: 超算数
posted at 06:14:15

講談社サイエンティフィックから出版予定の量子力学の教科書の原稿を書きだしているが、量子力学の導入のロジックの展開自体は、完全にJJサクライを凌駕したという自負はある。量子力学発展期の科学史に沿った、従来のめちゃくちゃな量子力学の導入ロジックは完全に排することができたとおもっている。
タグ:
posted at 06:16:37

これを読めば、ストレートに量子ネイティブを育成できるとおもう。後は、学生モニターの方々と編集者の方から意見を出してもらって、どれだけ読み易くできるかどうか。
タグ:
posted at 06:18:23

もう9価が承認されたので、しばらくすれば少しは値段下がると思っています👶
#マシュマロを投げ合おう
marshmallow-qa.com/messages/0f257... pic.twitter.com/yDpY2nyBh6
タグ: マシュマロを投げ合おう
posted at 06:26:22

アメリカでは45歳までは男女とも接種が推奨されている、そういう状況です👶状況によりメリットの大きさはことなりますが、打ってもよいと思います。
#マシュマロを投げ合おう
marshmallow-qa.com/messages/a2f9f... pic.twitter.com/Ub0mtf4HVU
タグ: マシュマロを投げ合おう
posted at 06:45:40

#数楽 Lagrangeの未定乗数法は神!
Lagrangeの未定乗数法は図を描いて直観的に理解できる。以前ググったらそういう解説もネットで見付けられた。しかし、自分で考えた方が楽しいと思う。
この図を描いて直観的に理解できるツールが計算でものすごく役に立つ。 twitter.com/yaneuraou/stat...
タグ: 数楽
posted at 07:03:09

@genkuroki >最小二乗法で得られる回帰直線±1.96σの予測区間
予測区間はこのページの2番目の式で求めます。念のため。
www.statalist.org/forums/forum/g...
タグ:
posted at 07:07:58

#数楽 Lagrangeの未定乗数法の図1
f(x,y,z)=一定, g(x,y,z)=a, h(x,y,z)=b のそれぞれで滑らかな曲面が得られ、前者をfの等高面と呼び、後者の2つは横断的に交わって滑らかな曲線が得られるとする。その曲線上に制限されたfの停留点を求める問題を考えている。 pic.twitter.com/FuXfrVHkU8
タグ: 数楽
posted at 07:43:02

低用量ピルの認可が何十年と見送りになった、という、アレですか
今、我々が出来る事は
「9価の正式承認が目の前まできた、嬉しいバンザイ🙌」
という人全員で
厚労省に応援メッセージを送ることくらい。
www.mhlw.go.jp/form/pub/mhlw0...
きっと、今、静かな反対派達は、
私たちの知らぬところで動いている
タグ:
posted at 07:48:08

#数楽 Lagrangeの未定乗数法の図2
函数f(x,y)を曲線g(x,y)=aに制限したものの停留点Pの求め方
「等高線に道路が接しているとき、その点で道路の勾配がゼロになる」という当たり前の話でしかない。
等高線入りに地図を読めればLagrangeの未定乗数法は直観的に自明。 pic.twitter.com/1D4lUvh58q
タグ: 数楽
posted at 07:56:11





@OokuboTact @takusansu @sekibunnteisuu @miyuki_MathT #超算数 現代化終了のころの資料
山本喜治『育てる算数の学ばせ方』東京、学校図書、1979年。
が、長方形とは、向かい合う二辺が等しく、かつ辺の組み同士は等しくなく、四つの角が直角な図形と定義していました。次に正方形を四辺が等しく、四つの角が直角である図形と定義するんです。
タグ: 超算数
posted at 08:12:54



@OokuboTact 「この手の授業は批判を受ける」とは認識したのでしょうが、
だから、こういう授業をアップするのはやめよう
だから、こういう授業はやめよう
どっちになるかな?
後者なら良いのだけど。
タグ:
posted at 08:32:47

シュテルン=ゲルラッハ(SG)実験から量子力学の導入を始める教科書や授業も増えているけど、どうしても途中で日和ってしまい、「線形重ね合わせ」を天下り的に導入してしまう論理展開が目に付く。JJサクライでも、SG実験を導入でつかっているのだが、途中から干渉や線形重ね合わせを手で入れてる。
タグ:
posted at 08:33:10

岩田健太郎 K Iwata, MD, M @georgebest1969
事後的に感度特異度が動くのはよくある話でたいてい悪くなる。実験レベルとリアルワールドの乖離も。PCRも例外にあらず twitter.com/yasuharutokuda...
タグ:
posted at 08:34:06

#超算数 記録
デマかもしれない。
しかし、誰かが「横浜国立大の根上先生」の講演の記録(メモなどでも可)を持っている可能性がある。
事実ならば大変興味深い話なので情報を募集します。
皆さん、よろしく! pic.twitter.com/R2YlZnDLwD
タグ: 超算数
posted at 08:34:15

OokuboTact 大久保中二病中年 @OokuboTact
@sekibunnteisuu 後者はまずありえないでしょう。
算数教育の偉い人達の影響で授業しているんだから、ネットでよく知らない人に批判されたぐらいでは変わらないと思う。
「ネット怖い」で終わりだと思う。
タグ:
posted at 08:34:30

OokuboTact 大久保中二病中年 @OokuboTact
@sekibunnteisuu 今回の画像は教師が自分でアップした画像ですが、
よく「勝手に晒すな」という小学校教師がいますね。
義務教育の実際を公開しているだけだし、
晒されたら困ることをしているのか?
タグ:
posted at 08:37:39

#超算数 横浜国立大学の根上生也さんは啓林館の算数教科書の編集委員でした。そして、その啓林館の算数教科書の教師用指導書には添付画像にように書かれていた!
教科書そのものとは違って、教師用指導書は誰が書いているのか不明。
こういう事実があるので「大変興味深い話」なわけです。 pic.twitter.com/je69NacJL0
タグ: 超算数
posted at 08:43:05


うちの息子の場合、小学校から「俺はこう思う」を答えてたな。
抜きだせってあるから、そのまんま写せばいいんだよ!
「でもこの考えはおかしいと思う」
みたいな。RT
タグ:
posted at 08:47:58

@musicyear2000 添付画像の薄緑の部分はその式で求めたものだということですか。
グラフを示す場合にはどうやって計算したのかわかるだけ十分な情報を出して欲しいといつも思います。
しかし、薄緑の部分の境界が直線になっていないので、私がこの点を誤解していたのは間違いないです。ありがとうございます。 #統計 pic.twitter.com/ukfxYbLYx9
タグ: 統計
posted at 08:58:12

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

Juno 0.12.5 is out. Notable features:
- fuzzy completions
- environment monitor
... and we've decided on gradually moving Juno onto VSCode.
#julialang #Juno
discourse.julialang.org/t/ann-juno-0-1...
posted at 10:23:27

これは何算でとけるかな?
に関して,学校の教科書を無視して解く息子に
先生「間違い。0点。理解していない。」
塾の先生「すごいね。その方法でも解けるね。でも,すんごくめんどくさくて途中で計算ミスが出るから,こっちの方法でやってみようか」
学校嫌い塾大好きになるわなーということが昔。
タグ:
posted at 10:52:39

#統計 謝罪と反省
私の側の一方的な勘違いによって、けんもう新型コロナ対策本部さんにひどいことを言ってしまっていました。ごめんなさい。
グラフの薄緑の部分の境界が直線に見えてしまっていました(ひどい!)
続く
twitter.com/kenmomd/status...
タグ: 統計
posted at 12:48:16

#統計 私が誤解していたことの証拠のスレッド
Machadaynuさんには私の誤りを指摘してくれたことを感謝しています。どうもありがとうございました。
(実はこういう感じで誤りを早めに指摘してくれるのが番助かる!!!滅茶苦茶うれしい!!!)
続く
twitter.com/musicyear2000/...
タグ: 統計
posted at 12:51:04

#統計 というわけで、反省して、けんもう新型コロナ対策本部さんのプロットを再現して来ました。
添付画像
1. CIとPIの計算の仕方
2. CIとPIのプロットの再現
3. 左側は2のプロットと同じ。右側はベイズ版。
#Julia言語
nbviewer.jupyter.org/gist/genkuroki... pic.twitter.com/mSGXtxoXRh
posted at 13:00:06

#統計 というわけで
最初の8個分のデータから赤丸を単純な線形回帰で予測できるかという話。
左図は www.statalist.org/forums/forum/g... の方法でプロットした95%予測区間(ピンクの実線)。
右図はベイズ法での予測分布で作った95%予測区間です。MCMCの結果で揺らぐので大同小異と思ってよい。 pic.twitter.com/ZFKAZlQZVR
タグ: 統計
posted at 13:03:07


#統計 自分で書いたコードの計算結果とどういう式で計算したか書かれていない他人の計算結果の差が全部 0.0 になり、プロット結果も一致しているのを見たときには、正直「やった!」と思ってしまいました。パズルを解けた気分。
nbviewer.jupyter.org/gist/genkuroki... pic.twitter.com/MG9GCb99fw
タグ: 統計
posted at 13:08:35


#Julia言語 逆函数はNewton法などを使えればそうした方が速いのですが、もっと一般の函数の逆函数が欲しい場合が結構あります(例えば一般的なP値函数から信頼区間を求めるなど)。
そういう場合には Roots.jl の find_zero と find_zeros が便利。信頼区間の両端の点の計算には find_zeros が便利。 pic.twitter.com/66Pk5Fb7f6
タグ: Julia言語
posted at 13:36:57

#Julia言語 Roots.find_zeros(f, a, b) は区間 a~b 内での函数 f(x) の零点達を配列の形式で求めてくれます。Roots.find_zero(f, x₀) で x₀の近くのfの零点を求めてくれる。
#R言語 にも似たような函数があって、信頼区間の計算などで使われていました。
www.rdocumentation.org/packages/stats...
posted at 13:42:56

#Julia言語 区間[a,b]でほぼ単峰型のf(x)がα以上になる区間を求めたければ、
g(x) = f(x) - α
find_zeros(g, a, b)[[1,end]]
完全な単峰型なら解がちょうど2点になるが、そうならない場合には最も広い区間を選ぶ。
実際には Roots.jl は多機能でアルゴリズムを選べます:
github.com/JuliaMath/Root...
タグ: Julia言語
posted at 13:49:36

@temmusu_n @OokuboTact @takusansu @sekibunnteisuu @miyuki_MathT #超算数 お二人のお話いつも参考にしています。
算数の教科書における長方形の定義の説明にも歴史的な変遷があるんですね。
現在の教科書の定義の説明は相当に分かり易くなっていると思いました。子供に教科書を見せたら、すぐに正方形が長方形の特別な場合だと気付いた。
twitter.com/genkuroki/stat...
タグ: 超算数
posted at 14:10:29

@temmusu_n @OokuboTact @takusansu @sekibunnteisuu @miyuki_MathT #超算数 チョー算数関連の算数教育界内部での争いに関係した資料を見せてもらうたびに、「内ゲバ」という言葉を思い出してしまいます。
タグ: 超算数
posted at 14:12:03

『ワクチン賛成派のコミュニティは、規模の大きいワクチン反対派のコミュニティにのみ対抗しており、その裏で、中規模のコミュニティが発展していることもわかった。』
わかる。戦い方もあるけど戦力も足りてない。
www.newsweekjapan.jp/stories/world/...
タグ:
posted at 14:28:45

OokuboTact 大久保中二病中年 @OokuboTact
@genkuroki @temmusu_n @takusansu @sekibunnteisuu @miyuki_MathT #超算数
算数教育の重鎮・片桐重男の「長方形と正方形」教育論 pic.twitter.com/PLBHx8fxTN
タグ: 超算数
posted at 14:46:04

個人的な意見では月に1回程度の「千点百円」のお遊びレートの賭け麻雀で「違法扱い」または「処分されなければいけないほどの悪事扱い」はして欲しくないと思いました。
問題に成り得るとすれば、賭け麻雀そのものであってはいけないと思いました。
www.asahi.com/articles/ASN5Q...
タグ:
posted at 14:55:45

「千点百円」のお遊びレートの賭け麻雀が理由で正式な処分が下されるのは問題有り過ぎじゃあないか?
これが前例になって「今後もタイミングを謀って適用可能」ということになってしまうと、非常にまずい形での「政治利用」も可能になってしまいそう。
タグ:
posted at 15:00:12

SNSでの議論は不毛だという意見もあるけど、それは相手との理解などを目標に掲げるからであって、最初から「第三者に見せる」ことを目標にすれば、人格攻撃されても捨て台詞吐かれても有意義。まあ疲れるのは疲れるけど。
でもそうやって戦力を増やすのだ。
タグ:
posted at 15:06:51

気柱の共鳴に関して、空気粒子の動きと音圧の模擬的なGIFアニメーションを #Julia言語 で作ってみた。開口端のところの粒がうまく処理できなかったので無視しちゃった。 pic.twitter.com/8xy6zqdFc3
タグ: Julia言語
posted at 15:44:21

#統計 言いたいことは添付画像1に赤字で書いておいた。
#統計 津川友介さん曰く【ベイズ推計だったら点推定と信用区間は解釈可能な数字です】
ベイズ統計の信用区間は独特の数学的モデル内での確率を扱うので、解釈は通常の信頼区間より難しいです。
あと、ベイズでの点推定が解釈可能??? pic.twitter.com/oLWbDufFzt
タグ: 統計
posted at 16:13:35

買おう買おうと思っていてずっとAmazonカートに入っていた #Julia言語 の本がとうとう届きました。うれしい。(お、おまえコロナ社だったのか、という驚きがある) pic.twitter.com/nyu7HASae3
タグ: Julia言語
posted at 16:16:00







@OokuboTact @temmusu_n @takusansu @sekibunnteisuu @miyuki_MathT #超算数 「ましかく」のような言葉が子供にとって普通であるかのように語られると、ほんとかいなと思います。
私も私の親戚も普段「ましかく」とは言わない。「ましかく」は家族内で習得される言葉じゃないような気がします。
「ましかく」という言葉を教えたいのは特殊な人達だけなんじゃないか?
タグ: 超算数
posted at 16:46:50

@genkuroki @OokuboTact @temmusu_n @takusansu @miyuki_MathT それに関しては、子ども同士で「ましかく」「ながしかく」と言っていた記憶があります。
タグ:
posted at 16:49:58

@OokuboTact @temmusu_n @takusansu @sekibunnteisuu @miyuki_MathT #超算数 子供はよく話を聞く人が使う言葉であればすぐに覚えますよね。
「せーほーけー」と「ましかく」で子供にとっての難易度に違いがあるとは思えない。
「もくひょー」よりも「めあて」の方が易しいなんてこともない。
子供の方がYouTubeなんかでネットスラングにもすぐに対応する(笑)。
タグ: 超算数
posted at 16:50:56

@genkuroki @OokuboTact @temmusu_n @takusansu @sekibunnteisuu @miyuki_MathT まんまる、真円は使いますか?
タグ:
posted at 16:53:16

OokuboTact 大久保中二病中年 @OokuboTact
#超算数
1970年代の「長方形と正方形の教え方」について調べていたら・・・。
既視感が・・・ pic.twitter.com/MPFjStGj1q
タグ: 超算数
posted at 17:18:50

@hirohito_ @OokuboTact @temmusu_n @takusansu @sekibunnteisuu @miyuki_MathT 「まんまる」は使う(笑)
「真円」は特殊な場合にしか使わないと思う。
自分ちの子が「ましかく」「ながしかく」と発音したのを聞いたことがない。
私は「ましかき」「ながしかく」と子供のときに発音したことがあったと思う。
twitter.com/hirohito_/stat...
タグ:
posted at 18:10:34

@hirohito_ @OokuboTact @temmusu_n @takusansu @sekibunnteisuu @miyuki_MathT 「ま」付きの言葉を全部「魔」と書くと「魔入りました!入間くん」の世界になるな。
タグ:
posted at 18:12:07

【バブルリングの衝突】
詳細はリンク参照
st-phys.blogspot.com/2019/08/bubble... pic.twitter.com/7MSBm9WkRR
タグ:
posted at 18:53:55

ゆとり学習指導要領の頃と比して,子どもの勉強時間は増えている。
だが階層格差は拡大していて,低所得層だけ減少している。 pic.twitter.com/qWYbhph4q1
タグ:
posted at 19:30:45

@sekibunnteisuu @genkuroki @OokuboTact @temmusu_n @miyuki_MathT 私のおぼろげな記憶では、「ましかく」「ながしかく」は幼稚園でやったような気がします。
穴に通す活動で、向きを変えても通せる形だけど、「ましかく」と「ながしかく」は違うとかの記憶があるような・・・
タグ:
posted at 19:38:48


ここに書いてある通り、私は法テラスを通してるので毎月5000円で済みます。
4人訴えて計130万くらいだから1人訴えるのにどのくらい費用がかかるのかは参考にはならないけど、書き込んでる人が複数いれば和解でも最低30-50万なのでプラスにも出来ます。ちなみに全員100万円以上で賠償金請求出来たよ twitter.com/risa_smash/sta...
タグ:
posted at 20:37:54

突然賠償金150万とか記載されてる紙が家に届くんだよ。無視してると口座残高確認されたり最悪土地売り払うことになるよ。まだ自立できない未成年や実家で親にお世話になってる人は誹謗中傷する前にまず家族に迷惑かけるリスクを考えてね
タグ:
posted at 20:41:01

@kyrie1717 @LimgTW @OokuboTact @miyuki_MathT 呼ばれた気がしたので、一言。
twitter.com/kyrie1717/stat...
「正方形は長方形ではない」と明記された教科書は確認されていません。それどころか、4つの角が直角の四角形は長方形である、という具合に、明確に正方形は長方形に入る定義がなされています。
タグ:
posted at 20:48:55

@kyrie1717 @LimgTW @OokuboTact @miyuki_MathT twitter.com/genkuroki/stat...
それでいながら、「長方形をすべて選べ」で正方形を含めるとバツにするのです。
最悪ですよね。
タグ:
posted at 20:49:37

くら寿司の席の注文用端末、いつの間にかiPadからラズパイ4(Raspberry Pi 4)になってるみたい。(USB3.0の色的に)
#くら寿司 pic.twitter.com/2eDjCPP7YN
タグ: くら寿司
posted at 21:16:25

#統計 渡辺澄夫『ベイズ統計の理論と方法』第4章については
nbviewer.jupyter.org/github/genkuro...
を見ておくと、参考になると思います。 twitter.com/cookiebox26/st... pic.twitter.com/HFGbWzwitA
タグ: 統計
posted at 23:28:30

@OokuboTact #超算数 小2の子なら、教科書にある添付画像の説明を読ませた後で、正方形の図形を見せて、「4つの角は直角か?」「教科書に長方形は何だと書かれているか?」などなどを順番に確認できるようにして行けば、すぐに理解できる話を理解できないかのように強弁している。愚かなり。 pic.twitter.com/iTVMT12Mj6
タグ: 超算数
posted at 23:49:43

貧弱軍曹(ゲーム実況×司法書士×DX) @HinjakuGunsou
@risa_smash 本業で法テラスと契約をしています。
法テラスを利用していただければ金銭的な問題はほぼ無くなりますので、悩む前に是非相談して頂ければというのが、専門家側の共通認識です。
証拠をきっちり固めて専門家に相談すれば、いくらでも本人特定は可能です。
もっと広まって欲しいので応援しています。
タグ:
posted at 23:52:45

@OokuboTact #超算数 算数教育に関する話題では「小学校○年生では理解できない」の類の主張は根拠抜きで語られ、しかもパターン化されていて、教員個人の経験で発見した事ではないように見える。
そして実際、ほとんど全く信用できない。
タグ: 超算数
posted at 23:53:18