Twitter APIの仕様変更のため、「いいね」の新規取得を終了いたしました

黒木玄 Gen Kuroki

@genkuroki

  • いいね数 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 を見て下さい。
Favolog ホーム » @genkuroki » 2021年06月17日
並び順 : 新→古 | 古→新

2021年06月17日(木)

SpinNeuron @physics_math_me

21年6月17日

Some of the #julialang components have cute names, I find. I love the name “atomic variable” from the Base.Threads module.

タグ: julialang

posted at 23:49:35

JacobZelko @Jacob_Zelko

21年6月17日

@hadleywickham PS I certainly may be missing information about this information but couldn't find it easily. Thanks Hadley!

タグ:

posted at 23:29:07

JacobZelko @Jacob_Zelko

21年6月17日

@hadleywickham, I'm reading thru Advanced R - great resource, ty! - & was wondering: what was the rationale for using C++ to speed up R in Chapter 25?

I use #julialang & am a huge fan of your work. Using tools like JuliaCall, I would think Julia may be a better fit than C++.

タグ: julialang

posted at 23:25:36

Dr. Chris Rackauckas @ChrisRackauckas

21年6月17日

@nerskine95 Interesting, this might be the right solution. Thanks!

タグ:

posted at 22:33:19

(「・ω・)「ガオー @bicycle1885

21年6月17日

Juliaの利用者・開発者向けアンケート調査(日本語)をやってますよ!
form.jotform.com/21143297782145...

タグ:

posted at 22:23:37

非公開

タグ:

posted at xx:xx:xx

非公開

タグ:

posted at xx:xx:xx

非公開

タグ:

posted at xx:xx:xx

非公開

タグ:

posted at xx:xx:xx

Shuhei Kadowaki @kdwkshh

21年6月17日

機械語全く分からんのでネイティブコードからJIT→コード実行をどう呼び出すのかイメージがわかない。

タグ:

posted at 22:07:10

鰹節猫吉 @sunchanuiguru

21年6月17日

学校で習った公式にあてはめる、というやり方にこだわるのだとしても、2250メートルに換算して300で割る人が多いでしょうね。
立式してから分数のわり算のやり方を適用させる、というのは、学校の外の世界の常識から考えると、かなり異常なのだ。

タグ:

posted at 22:05:31

天むす名古屋 Temmus @temmusu_n

21年6月17日

#超算数 参考情報。最近なぜか行き当たった語にアファンタジアというのがあるja.wikipedia.org/wiki/%E3%82%A2...。ウィキは【心的イメージを思い浮かべることができず、頭の中でイメージを視覚化することのできない状態を指す言葉である】と述べている。疾患であるかどうかも現在はっきりしないようだ。

タグ: 超算数

posted at 22:03:23

Shuhei Kadowaki @kdwkshh

21年6月17日

Juliaのコード生成まじよく分からん。実行時呼び出しの部分はコンパイルのエントリポイントへバイパスさせとくの?

タグ:

posted at 22:01:28

鰹節猫吉 @sunchanuiguru

21年6月17日

誤→問題の解決策をかんがえさせるためでなく、

正→問題の解決策を考えさせるために出題するのでなく、

タグ:

posted at 21:58:46

鰹節猫吉 @sunchanuiguru

21年6月17日

このような問題だと、並んでいる数字を見れば、9キロ移動するのにかかる時間の4分の1だから、30分の4分の1というのが素直なやり方だと感じるけれども、、、

タグ:

posted at 21:56:18

鰹節猫吉 @sunchanuiguru

21年6月17日

これは重要な指摘。
問題の解決策をかんがえさせるためでなく、
このような問題は何算でとくことになっているから、このように立式しろ、
と指導して、
立式してから、計算という手順をふませるんですよ。
#超算数 twitter.com/musorami/statu...

タグ: 超算数

posted at 21:51:28

天むす名古屋 Temmus @temmusu_n

21年6月17日

#超算数 「あわせて」と「ふえると」なんて区別しなくていいんですよ。どちらもたし算で答えが求められることが大事。「あわせて」と*書いて*ある問題をみて、何かが増えたと考えてもいいし、「ふえると」と*書いて*ある問題をみて、何かがあわさったと考えてもいいんです。

タグ: 超算数

posted at 21:35:31

天むす名古屋 Temmus @temmusu_n

21年6月17日

#超算数 小学生ユーチューバーの授業動画でも、たし算に二種類あることが前提されている「あちょい先生の算数 ~あわせていくつ、ふえるといくつ~」www.youtube.com/watch?v=FzXsKa...。この出演者は「あわせて」と「ふえると」というキーワードに反応しているだけにもみえる(よいキーワード解法!)が…

タグ: 超算数

posted at 21:33:57

天むす名古屋 Temmus @temmusu_n

21年6月17日

#超算数 【せっかく合併と増加の区別がつくことになったので、その点をしっかりと確認しながら行っていきました。
場面をみて、合併(ドーン)なのか増加(ドスン)なのかを話合いながら…】
親しみやすそうな語を作り出して余計な区別を強制する巧妙な仕掛けですね。 twitter.com/forestanet/sta...

タグ: 超算数

posted at 21:19:40

非公開

タグ:

posted at xx:xx:xx

非公開

タグ:

posted at xx:xx:xx

data person @patrickanker

21年6月17日

@StefanKarpinski It’s becoming a big problem. A few other random package removals with no warning prompted this letter github.com/cranchange/cra...

タグ:

posted at 20:45:52

Moritz Schauer @MoritzSchauer

21年6月17日

Blog: Frank Schäfer - Neural Hybrid Differential Equations frankschae.github.io/post/hybridde/ Google Summer of Code project #gsoc #JuliaLang

タグ: gsoc JuliaLang

posted at 20:33:47

やっ @yasui1987

21年6月17日

@sayuri_takebe しかも、音量オンにすると喋りますよね😂

タグ:

posted at 20:33:24

天むす名古屋 Temmus @temmusu_n

21年6月17日

@sekibunnteisuu まあべつに正しい認識じゃなくて、変な考えを吹き込まれるでもいいけれど。物は言いよう。

タグ:

posted at 20:30:14

天むす名古屋 Temmus @temmusu_n

21年6月17日

@sekibunnteisuu 正しい認識を得てしまうと学校の中で孤立しかねないという懸念はあると思う。

タグ:

posted at 20:29:13

Logan.GPT @OfficialLoganK

21年6月17日

@rachel_kurchin @JuliaConOrg Lol I love this! Can’t wait to see your talk. #JuliaLang

タグ: JuliaLang

posted at 20:29:02

天むす名古屋 Temmus @temmusu_n

21年6月17日

@sekibunnteisuu 間違いも12000÷40=3000とかだったら、へへへ間違っちゃったとか対応できるでしょうけれど、上司や権威とされる本まで間違っているといわれると怒ってしまうんでしょうね。

タグ:

posted at 20:28:16

ここもふ @cocomoff

21年6月17日

ほぼ同じプログラムを使ってランダムに設定される目的地に到達したら描画から消えてもらうAgentに直したら,もうちょっといい感じになった pic.twitter.com/VkTM8yweZk

タグ:

posted at 20:28:02

積分定数 @sekibunnteisuu

21年6月17日

@temmusu_n >【先生方に習って指導】

「まねして」じゃなくて「まなんで」という意味かと好意的に解釈してスルーしました。

 自分の考えに対して、疑問を述べれば「疑問を押し付ける」と言うし、単刀直入に「あなたの考えは間違っている」というと逆切れするし、

 物を教える人として、どうなんでしょうね?

タグ:

posted at 20:23:10

天むす名古屋 Temmus @temmusu_n

21年6月17日

@sekibunnteisuu 【全く持って】も一般的ではない。おそらく「全く以て」が標準。

タグ:

posted at 20:20:17

天むす名古屋 Temmus @temmusu_n

21年6月17日

@sekibunnteisuu あと、著名な先生方と書きたい気持ちも混線しているかもです。それだけでなく【先生方に習って指導】も。全部漢字で書けばいいってもんじゃないけど、強いて漢字を使うなら倣ってですね。

タグ:

posted at 20:19:05

たけべさゆり @SayuriTakebe

21年6月17日

将棋ウォーズの棋譜検索ソフトにあるマークを何気なく押してみたらめちゃくちゃ煽ってくるので、頭がクラクラしたきました😭 pic.twitter.com/6g13sWw2Ap

タグ:

posted at 20:18:43

積分定数 @sekibunnteisuu

21年6月17日

@temmusu_n 私もそこ気になったけど「署名」と勘違いしているのかな?

タグ:

posted at 20:16:59

天むす名古屋 Temmus @temmusu_n

21年6月17日

@sekibunnteisuu #超算数 ならではです。指導書に【責任もって著名された先生方】はいません。指導書には著者の表示がないのはこの界隈では有名。ところで、初任のれいさん。さんは、漢字の使い方が特殊ですね。

タグ: 超算数

posted at 20:14:26

積分定数 @sekibunnteisuu

21年6月17日

#超算数
指導書に従って指導すると宣言する教員。 twitter.com/r3teacher/stat... pic.twitter.com/AVjnIKEmQ2

タグ: 超算数

posted at 20:09:32

Stefan Karpinski @StefanKarpinski

21年6月17日

I get that CRAN maintainers have been doing this for a long time and are probably burnt out, but if you’re too burnt out to offer even minimal explanation to someone as capable and willing as Chris, then it’s time tomorrow step aside and let someone else take over maintenance

タグ:

posted at 19:39:07

Stefan Karpinski @StefanKarpinski

21年6月17日

Aside: telling a package maintainer that they’re doing something against the rules but refusing to explain what rule is being violated is super toxic

タグ:

posted at 19:38:02

Stefan Karpinski @StefanKarpinski

21年6月17日

Anyone from the R world have any clarity on this? twitter.com/chrisrackaucka...

タグ:

posted at 19:37:46

Ligun (りぐん) ☠️ Nenio @choonggeun

21年6月17日

@genkuroki ありがとうございます!
もっと簡潔に書けるだろうなと思いつつもまだJulia力が足りずに出来なかった要素が色々詰まってました!

タグ:

posted at 19:25:43

非公開

タグ:

posted at xx:xx:xx

非公開

タグ:

posted at xx:xx:xx

非公開

タグ:

posted at xx:xx:xx

Massimo @Rainmaker1973

21年6月17日

Anthony James is a sculptor, painter, and performance artist fixated with speed, mechanization. His "Portal Icosahedron"is an amazing work of art that uses mirrors and lights buff.ly/2mLx8xl [source of gif, Art Aspen 2018: buff.ly/2mLCEQt] pic.twitter.com/EGHOaLiEqc

タグ:

posted at 19:00:00

Dr. Chris Rackauckas @ChrisRackauckas

21年6月17日

What's the right plan of attack here? tl;dr, the pkg needs Julia et al. so I don't want it to run tests on CRAN, I used the commands to make it not, but apparently every 6 months it does anyways, but for pkg tests I want to test the auto-installer. #rstats thanks in advance.

タグ: rstats

posted at 18:41:26

Dr. Chris Rackauckas @ChrisRackauckas

21年6月17日

So does this mean that we cannot trust that \donttest doesn't test on CRAN, all of the time? Mind you, this has come about 6 months after the package registered so I assume that it must be a periodic super check that ignores \donttest or something?

タグ:

posted at 18:41:26

Dr. Chris Rackauckas @ChrisRackauckas

21年6月17日

On Linux,
this leaves behind ~/.julia (217MB) and ~/.local/share/R/JuliaCall
(367MB), non-negligible even compared to the 27GB that installing all of
CRAN takes." My reply was "What do you mean? I thought that was set to not run on CRAN"

タグ:

posted at 18:41:26

Dr. Chris Rackauckas @ChrisRackauckas

21年6月17日

The response I got was "OTOH, a \donttest example (and hence example(diffeq_setup) and R CMD
check --as-cran) install julia without permission in areas not permitted
by the CRAN policy *and do not clean up after themselves*...

タグ:

posted at 18:41:25

Dr. Chris Rackauckas @ChrisRackauckas

21年6月17日

Because this installs, we marked the tests with \donttest, because we know they will fail on CRAN without the install, and we don't want to force installation of Julia on CRAN every time it updates.

タグ:

posted at 18:41:25

Dr. Chris Rackauckas @ChrisRackauckas

21年6月17日

The additional thing is, these all have a function diffeqr::diffeq_setup() which does this setup for you: "Note that the first invocation of diffeqr::diffeq_setup() will install both Julia and the required packages if they are missing." You can use a bool to turn off the install.

タグ:

posted at 18:41:25

Dr. Chris Rackauckas @ChrisRackauckas

21年6月17日

But from that I got the reply, so I'm confused why in the conventions of R package why those would not be considered system requirements given that no examples or tests would be able to work without them. Is there some strict definition I'm missing someone can point me to?

タグ:

posted at 18:41:25

Dr. Chris Rackauckas @ChrisRackauckas

21年6月17日

I replied with "Those are required for the package checks and they will fail without that dependency." This is a package that runs Julia's differential equation solvers from R: if you don't have Julia and don't have the differential equation solvers, it won't work.

タグ:

posted at 18:41:25

Dr. Chris Rackauckas @ChrisRackauckas

21年6月17日

The issue is in github.com/SciML/diffeqr. They state "You have SystemRequirements: Julia (>= 1.5), DifferentialEquations.jl, ModelingToolkit.jl, but it seems that these are not required for most of the package's
checks, which will attempt to install them. This needs clarifying."

タグ:

posted at 18:41:24

Dr. Chris Rackauckas @ChrisRackauckas

21年6月17日

I'm trying to maintain an #Rstats package but I can't get clarification from the CRAN maintainers because their response was simply "We mean what we say (and do not have resources to explain your misconceptions to you)", so could someone guide me to the right solution here?

タグ: Rstats

posted at 18:41:24

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#Julia言語 Python + Numba (LLVM) + SciPy (Fortran)のような組み合わせで頑張っている同業者を出し抜きたい人は、Juliaを真剣に検討してみる価値があります。

Pythonで複数の道具を貼り合わせて使っている場合には貼り合わせで大きな計算効率の劣化が起こっている心配がある。

タグ: Julia言語

posted at 18:36:08

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#Julia言語 StaticArrays.jlを使う最適化はDifferentialEquations.jlの利用でも定番。ある生物学者は、Python + Numba (LLVM) + SciPy (Fortran) で300msかかっていた計算が、Juliaによって5msに短縮できたおかげで、それまで不可能だった分析が可能になったと言っている。

discourse.julialang.org/t/what-do-you-...

タグ: Julia言語

posted at 18:33:59

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#Julia言語 Julia特有の強みは複数のパッケージを組み合わせた場合に出易い。パッケージ単体の単純なベンチマークテストは実践的には無意味な場合が多いと思う。

例えば、StaticArrays.jlによる小さな行列計算とLoopVectorization.jlの組み合わせは、MKLを使った小さな行列計算より圧倒的に速い。

タグ: Julia言語

posted at 18:29:15

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#Julia言語 はCやC++やFortranと同等程度に速いだけ(笑)

それら4つの比較でどれかが極端に遅くなっている場合には、その遅くなった場合のコードの書き方に問題がある可能性が高い。 twitter.com/norikushi77/st...

タグ: Julia言語

posted at 18:29:14

ここもふ @cocomoff

21年6月17日

#julialang Agents.jlを使って東京(駅の東側)のグラフの上に歩行者とゾンビを発生させるチュートリアルをやった (ゾンビの近くに来るとゾンビになる) 手軽で凄い pic.twitter.com/KBqqmOx7jK

タグ: julialang

posted at 18:22:53

Miura Hideki @miura1729

21年6月17日

AM電波の雑音はノスタルジーを掻き立てる。出来れば、モスクワ放送と平壌放送が混信してくる機能があればなおよい

タグ:

posted at 18:11:40

Miura Hideki @miura1729

21年6月17日

AMが無くなった後ならちょっと欲しいかも twitter.com/EzoeRyou/statu...

タグ:

posted at 18:10:19

江添亮@足首靭帯の手術から14週間 @EzoeRyou

21年6月17日

父さんな。ラジオ型の箱のなかにスマフォを入れて回転させることにより角度によってノイズを付与するオーディオフィルターを開発して高齢者に売ろうと思うんだ。 twitter.com/fieldoor1/stat...

タグ:

posted at 18:08:51

黒木玄 Gen Kuroki @genkuroki

21年6月17日

大体二十代後半から徐々に無理が効かなくなって来る。

タグ:

posted at 18:06:41

黒木玄 Gen Kuroki @genkuroki

21年6月17日

@kado_judo0312 物理で出て来た話は数値計算入門とも相性がよいと思います。

楽しめそうなことが沢山あります!

タグ:

posted at 18:05:27

黒木玄 Gen Kuroki @genkuroki

21年6月17日

@kado_judo0312 物理的には n! よりも log n! の方が観測量に直接関係するのですが、数値計算のときに、

超でかい数 / n!

のような計算をさせると Inf/Inf = NaN になって、NaN の嵐になることがよくあり、そういう場合には

exp(log(超でかい数) - log n!)

のように対数経由にするとよいです。

タグ:

posted at 18:03:32

黒木玄 Gen Kuroki @genkuroki

21年6月17日

@kado_judo0312 でかいnに対する n! はスターリングの公式の補正を使えば小さな相対誤差で近似計算できます。

実はガンマ函数の数値計算はその方法を使っています。

統計力学でも本質的な役目を果たすスターリングの公式がこの場合も本質的!

タグ:

posted at 18:01:08

kitano@推しのサメ @kitano_blog

21年6月17日

1枚目: 真の分布
2枚目: 平均プラグイン推測
3枚目: 予測分布
#Julia言語 pic.twitter.com/eKQL7bthgD

タグ: Julia言語

posted at 17:52:34

Buitengebieden @buitengebieden

21年6月17日

This man spend 14 hours waiting for a squirrel to set on this Rube Goldberg Machine..

Credits: YT: Creezy
youtu.be/U3-doqeWHPM pic.twitter.com/5dGotjW4wk

タグ:

posted at 17:49:41

黒木玄 Gen Kuroki @genkuroki

21年6月17日

疲労困憊。さすがに疲れた。

タグ:

posted at 17:48:56

uuuu_s @uuuus17

21年6月17日

農学部のパソコン室
Visual Studio, emacs, atom, ecilpseなど各種エディタが標準でダウンロードされてて,しかもPerlやJuliaまでマイナ言語も備わってるの初めて知った

タグ:

posted at 16:27:03

Ronny Bergmann (@ron @ronnybergmann_

21年6月17日

We have a new preprint concerning #Manifoldsjl, its design and performance, see arxiv.org/abs/2106.08777

タグ: Manifoldsjl

posted at 16:13:58

ライカーωルリヲ @RikerRikerowen

21年6月17日

@bentAK8 記事によると、パキスタン勢は今まで、ビザ取得が困難なために世界大会で見かけることが少なかった、とあります。世界にはまだまだ隠れた逸材がいるのではと思わされました。

game.watch.impress.co.jp/docs/kikaku/12...

タグ:

posted at 15:56:23

歩く人 @walker_dat

21年6月17日

Pythonでやれることはやり尽くしたため、半年ぶりにJuliaを触っている。
まるで色々忘れている。

タグ:

posted at 15:54:46

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#Julia言語

x.fを呼び出すgetpropertyとそのフォールバックになっているgetfieldの混同に関する話題が分離トピック化。

propertynames(x, private=false)のデフォルトは「private property namesを表示しない」。

discourse.julialang.org/t/regarding-ge...

タグ: Julia言語

posted at 14:59:03

Katsushi Kagaya @katzkagaya

21年6月17日

論文→
K. Goto, K. Nakajima, H. Notsu, Twin vortex computer in fluid flow, New Journal of Physics 23: 063051, 2021.
doi.org/10.1088/1367-2...

タグ:

posted at 14:53:09

Katsushi Kagaya @katzkagaya

21年6月17日

流れの計算や情報処理を考える試みですね。流れの中で適応している生物はこれを使ってるのではないかという考えがむくむくと出てきます。

タグ:

posted at 14:51:38

Katsushi Kagaya @katzkagaya

21年6月17日

「流れの渦が情報処理能力の鍵
~バーチャルな物理リザバー計算で実現~」
www.jst.go.jp/pr/announce/20...

タグ:

posted at 14:45:59

ごまふあざらし(GomahuAzaras @MathSorcerer

21年6月17日

RT元の f(x) のテクニックはFlux.jlでよく出てきますね. #Julia言語 twitter.com/genkuroki/stat...

タグ: Julia言語

posted at 14:43:32

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#Jupyter nbextensionsの件はJuliaとは無関係です。

notebookなどのバージョンが新し過ぎるとnbextensionsをまともに使えなくなるようです。notebookやそれ以外の何かをバージョンダウンすればまともに使えるようになるかもしれません。

上手く行ったら方法を教えて下さい。 twitter.com/misstakoipad/s...

タグ: Jupyter

posted at 14:39:02

鎌塚 忠義 @kamayan1128

21年6月17日

畑仕事してたら早数か月(-_-;)
juliaのPlotsの解説記事が全然進んでないっていう罠。
基礎編はできたけど応用編全然かけてないよー。
そして、違うプログラム書きたいから、ちょっとお預けだよ

タグ:

posted at 14:18:21

たきたき, Ph.D. @taki__taki__

21年6月17日

DrWatson juliadynamics.github.io/DrWatson.jl/st... #julialang うーんどういうものなんだ?(雰囲気のみ把握

タグ: julialang

posted at 13:42:51

kitano@推しのサメ @kitano_blog

21年6月17日

真の分布: 混合数4の混合正規分布
モデル: 混合数3の混合正規分布
学習方法: Gibbs Sampler
#Julia言語 pic.twitter.com/NHCvHQ2rvB

タグ: Julia言語

posted at 13:09:11

yudai.jl @physics303

21年6月17日

JuliaとPythonの比較をするツイートをすると、質問箱に沢山「感想」が届くよ! twitter.com/KaoriYamada01/...

タグ:

posted at 10:46:19

光が丘オープンソースクラブ @hkr_osc

21年6月17日

Scratchで行列、ベクトルの基本モデルを組んでイメージ掴んでから、PythonやJuliaで演習問題を表現してみるのが、結構いい流れなんじゃないかと、個人的には思います。

タグ:

posted at 10:28:59

Arturo Erdély @ArturoErdely

21年6月17日

Elaboración propia de gráficas mediante el lenguaje de programación #JuliaLang y con datos de: www.gob.mx/salud/document... [fin de hilo]

タグ: JuliaLang

posted at 10:03:29

ちょろ母@‘22〜海外復活、’23はキュ @Chorouzu1017

21年6月17日

@000_tomoe 奄美大島の方言で「ありがとうございました」という意味だそうです。(^^)

タグ:

posted at 09:55:56

十夜永Åソフィア @otomezachoginga

21年6月17日

来年度から再びゲノム情報など諸々を扱うのだが、脱pythonしてbiojuliaしてみようかしらん。
#JuliaLang

タグ: JuliaLang

posted at 09:38:34

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#数楽 要するに、平面上の点(x, y)の直線x=yへの直交射影が((x+y)/2, (x+y)/2)になっているという図を描けば易しい話を一般化していけば、最小二乗法も自然に理解できるわけです。

複雑な式が出て来るややこしい話に見えてしまいがちな理由は易しい話から順番に理解する経路に乗れていないからです。

タグ: 数楽

posted at 09:02:15

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#数楽 最小二乗法の次に易しい場合はデータ(x_i, y_i) (i=1,…,n)を直線 y = β₀ + β₁x で近似するいつものやつです。

その場合は、点(y_1,…,y_n)のn次元空間の2次元部分空間

{ β₀(1,…,1)+β₁(x_1,…,x_n) | (β₀,β₁)∈ℝ² }

への直交射影で理解できます。

タグ: 数楽

posted at 09:02:14

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#数楽 最小二乗法の最も易しい場合が、平均y̅=(y_1+…+y_n)/nを求めることです。点(y_1,…,y_n)の直線{(t,…,t)|t∈ℝ}への直交射影が(y̅,…,y̅)になっています。

平面上の点(x, y)の直線x=yへの直交射影は((x+y)/2, (x+y)/2)です。これは図を描けばすぐにわかる。これのn次元版が上の場合です。

タグ: 数楽

posted at 09:02:13

Mineo Takamura・髙村峰生 @mineotakamura

21年6月17日

現在の高校では、夏目漱石の代わりに駐車場の契約書を読ませたりするほどだから、英詩など文学を読むことが英語の面白さ、深さを伝えるなどとは文科省は鼻から思っていない。が、それは高校生の知性・感性を軽んじた態度で、英語など「実践」の道具にすぎないという考えが結局は学習意欲を削いでいる。

タグ:

posted at 08:53:58

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#Julia言語 例えば、DifferentialEquations.jlでは複雑な内部構造を持つ解の型に「解の函数」の機能も持たせています。

内部的には離散化によって求めた配列の形式の数値解が梱包されている sol = solve(prob) を外部的には函数 sol(t) としても利用できる。

diffeq.sciml.ai/stable/basics/...

タグ: Julia言語

posted at 08:42:33

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#Julia言語 以下の上書きができることを知っておくと便利

foo.a → Base.getproperty(foo, :a) = ~
A[i] → Base.getindex(A, i) = ~
f(x) → (f::MyType)(x) = ~

2番目と3番目は、自分が定義した型に配列や函数の機能を持たせることが可能なことを意味する。ユーザーは好きなようにやれる。

タグ: Julia言語

posted at 08:37:32

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#Julia言語

Juliaでは名前aのフィールドを持たない型に対しても、Base.getpropertyを定義することによって名前aのプロパティにfoo.aの形式でアクセスできるようにできます。

実装の詳細としては内部に保持していない性質(プロパティ)をオブジェクトは持つことが可能です。

タグ: Julia言語

posted at 08:31:03

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#Julia言語 例えば、データフレームでは df.a でデータフレーム中の名前aの列にアクセスできるようになっています。これはデータフレームdfのプロパティaを名前aの列だと定義していることを意味しています。

dfに名前aのフィールドがなくてもこういうことをできる。

タグ: Julia言語

posted at 08:31:03

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#Julia言語 デフォルトの状態では getproperty(foo, :a) と同値な foo.a は getfield(foo, :a) に一致するので混同しがちなのですが、Base.getpropertyは上書きできるので、必ずしも一致するとは限りません。

タグ: Julia言語

posted at 08:31:02

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#Julia言語 用語の説明

struct Foo{A, B}
a::A
b::B
end

におけるa, bがfieldsの名前達です。

foo = Foo(1, 2.0) のfieldsには getfield(foo, :a), getfield(foo, :b) でアクセスできる。

デフォルトの状態では、getproperty(foo, :a) の略記とみなせる foo.a などでもアクセス可能。

タグ: Julia言語

posted at 08:31:02

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#Julia言語 Juliaでは、

* 実装の詳細扱いされるstructのfield



* オブジェクトのproperty

が意味的に明瞭に区別されています。以下のリンク先の話題は、実装の詳細扱いされるとは限らないpropertyを実装の詳細扱いされるfieldと概念的な混同が関係していると思う。

discourse.julialang.org/t/allowing-the...

タグ: Julia言語

posted at 08:31:01

ミスたこiPad @missTakoiPad

21年6月17日

#julialang からconda導入したのがまずかったか?jupyter_contrib_nbextensionsの挙動がおかしい。snippetsが出てこない。沼はまった。#conda #jupyterlab 前、chocolateyからanaconda導入したときはうまくいったのに・・・流派が2つあるのかな?

タグ: conda julialang jupyterlab

posted at 08:23:10

Jacob Quinn @quinn_jacobd

21年6月17日

Woohoo! 2021 #JuliaCon shirt arrived today! One of my favorite tech events each year! #JuliaLang pic.twitter.com/YfmIlnbgnQ

タグ: JuliaCon JuliaLang

posted at 08:16:00

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#Julia言語 のような線形代数が自然な記号法で使えるプログラミング言語を使って最小二乗法のような線形代数の話題について勉強できれば色々な意味で効率がよい。

タグ: Julia言語

posted at 08:05:32

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#数楽 PRML第1章演習問題1.1の行列AとベクトルTはそれぞれ計画行列Xとデータtを使って、A = X'X, T=X't と書ける。

w = A\T は w = (X'X)\X't と同じ。

#Julia言語 では w = X\t と書ける。これは非常に合理的。

特別な場合を数式処理でチェックできれば安心できる人は多いと思う。 pic.twitter.com/CrWUdUeu6A

タグ: Julia言語 数楽

posted at 08:03:17

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#数楽 数学的なポイント

「最小二乗法=直交射影」、これに尽きる。

詳しい解説が私のツイログにある

twilog.org/genkuroki/sear...

タグ: 数楽

posted at 07:54:37

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#Julia言語 コードの書き方のポイント

* Juliaの配列はリストではない。

* f.(x)やx.^(0:d)'のようにドットをうまく使い、内包表記を無駄に使用しない。

* 多項式はevalpolyで評価できる。

* 最小二乗法は (計画行列)\(データ) つまり X\t の一発で可能(②のw=の式)

* 数式の記号処理も便利 pic.twitter.com/Abeucd7QXw

タグ: Julia言語

posted at 07:50:27

黒木玄 Gen Kuroki @genkuroki

21年6月17日

#Julia言語 私もやってみた。

PRML第1章の演習問題1.1

線形代数部分は添付画像④にある。

添付画像②③の違いはwの定義式の右辺だけ。④に繋がる。

数学的なポイントは直交射影の式を作れるかどうか。最小二乗法は直交射影の別名に過ぎない。

github.com/genkuroki/publ... twitter.com/choonggeun/sta... pic.twitter.com/HPTZrgwJWq

タグ: Julia言語

posted at 07:44:23

Jacob Quinn @quinn_jacobd

21年6月17日

Let's port it to #JuliaLang and keep the same performance instead! 🦾🦾🦾 twitter.com/jangiacomelli/...

タグ: JuliaLang

posted at 07:00:03

偏見で語る兵器bot @heikihenken

21年6月17日

統計学 戦場の負傷者は野戦病院での看護がしっかりしてたら大半は死なずに済んだんだよソースは統計取った、アホにも分かるこのグラフ見ろ一目瞭然だろわかったらとっとと予算よこせと言ったナイチンゲールのおかげで戦傷者の生存率が劇的に上昇した pic.twitter.com/QXRKrc8yXi

タグ:

posted at 03:43:17

Julia REPL stan now @miguelraz_

21年6月17日

@arbitrandomuser @quinn_jacobd No bots - I'm writing like a gajillion posts concurrently, so I just dumps of the cool nuggets/ideas I've had /procrastinated on along the way until I hunker down and write it all.
The first video is here
www.youtube.com/watch?v=EkgCEN...
WIP blog is here
miguelraz.github.io/blog/REPLtricks/

タグ:

posted at 02:23:20

John George Francis @arbitrandomuser

21年6月17日

@miguelraz_ @quinn_jacobd I'm assuming you have a bot which scans your tweets for these push!
Are all the tweets you saved somewhere available publicly?

タグ:

posted at 02:19:16

Pavel Dimens @PVDimens

21年6月17日

It's my little #Bioinformatics #popgen #JuliaLang pet project with big dreams, but I hope some of y'all can check out PopGen.jl. I mean, LOOK at these benchmarks! github.com/BioJulia/PopGe... pic.twitter.com/poPovUcOgv

タグ: Bioinformatics JuliaLang popgen

posted at 02:11:18

Massimo @Rainmaker1973

21年6月17日

Massive spider-webs stretching across trees and paddocks have formed near towns in Australia recently hit by floods [read more: buff.ly/3pXf8Qo] pic.twitter.com/CqLYxsK5kG

タグ:

posted at 02:07:49

Ligun (りぐん) ☠️ Nenio @choonggeun

21年6月17日

以前Pythonで書いたPRML1章の演習をJuliaで書き直した
結果合ってるけど、線形方程式の計算がなんか不安だ……
放置していた機械学習の勉強再開するか pic.twitter.com/ldMELnElSp

タグ:

posted at 01:42:24

Julia REPL stan now @miguelraz_

21年6月17日

@quinn_jacobd whoaaaah!
push!(REPLTipsAndTricks2, ThisTweet())

タグ:

posted at 01:32:12

Jacob Quinn @quinn_jacobd

21年6月17日

#JuliaLang tip: in your type/function/instance docstring, include an `# Extended help` section that won't show by default when users do `?foo`, but a hint will be provided that they can do `??foo` to see the extended help section. Super helpful this is builtin automatically!

タグ: JuliaLang

posted at 01:29:08

k @musicisthebest_

21年6月17日

はじき批判に対して「公式が害悪ならオームの法則なんてどうするのかね」と反応している人をみたのですが、オームの法則とはじきを同列にする時点でもうお話にならず、はじきがいかに思考力を奪うかよくわかりますね。

タグ:

posted at 01:03:47

Katsushi Kagaya @katzkagaya

21年6月17日

まじか。抗うつ薬SSRI流すとザリガニを活発にさせてしまうので流さないでって。 twitter.com/newscientist/s...

タグ:

posted at 00:50:06

@genkurokiホーム
スポンサーリンク
▲ページの先頭に戻る
ツイート  タグ  ユーザー

User

» More...

Tag

» More...

Recent

Archive

» More...

タグの編集

掛算 統計 超算数 Julia言語 数楽 JuliaLang 十分 と教 モルグリコ 掛け算

※タグはスペースで区切ってください

送信中

送信に失敗しました

タグを編集しました