黒木玄 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年08月20日(木)



Bruce Tate: grox.io @redrapids
@chevinbrown Absolutely. The goal is to wrap up the Julia language module with a service. I don't know if I want to attack a native Julia wrapper yet. That seems like too much to bite off this first round; maybe in the future.
タグ:
posted at 22:28:07

佐藤純一・鷲沢嘉一(2017)「動的プログラミングJuliaの紹介」『映像情報メディア学会誌』 71巻, 1号, pp.74-77
www.jstage.jst.go.jp/article/itej/7...
比較的新しめのプログラミング言語であるJuliaの紹介。Pythonのパッケージ使えるのは便利かな。基本的なことの紹介のみなので応用とかは自分で色々調べていきたい
タグ:
posted at 22:08:13

#Julia言語 以上のソースコード
nbviewer.jupyter.org/gist/genkuroki...
スクショだけだとコピペできないのでつらい。みんな、スクショだけではなく、Gistに貼り付けたソースコードも紹介するとよいと思う。GitHubアカウントを取ると無料で使える。公開しないメモも貼り付けられます。
タグ: Julia言語
posted at 21:23:32

#Julia言語 Plots.jl と SymPy の組合せでこんなこともできる→添付画像1,2,3 (using Plots: Plots; pyplot(fmt=:svg)してある)
PyPlot.jlとの組み合わせで添付画像4のようなこともできる。(using PyPlot: PyPlot を using Plots: Plots の前にしてある。2つを共存させるための手続き) pic.twitter.com/NzTJ4Rq7Ql
タグ: Julia言語
posted at 21:22:17

#Julia言語 続き。mp4ファイルもこれでJupyter notebook上に取り込める。
Plots.AnimatedGif("harmonic.mp4") pic.twitter.com/A0Vu9ehFqC
タグ: Julia言語
posted at 21:19:23

#Julia言語 ② GIF動画のJupyter notebook上での表示続き
GIF動画を作っているなら、たぶんすでに
using Plots
済みだろう。その場合には
Plots.AnimatedGif("wave_eq_on_pentagon.gif")
で表示できる。これをずっと知らなかった。Plots.jlのソースコードを見て知った(確認した)。 pic.twitter.com/Jtnai5NPUM
タグ: Julia言語
posted at 21:18:30

Bruce Tate: grox.io @redrapids
Has anyone worked on integrating #JuliaLang Julia with #elixirlang? The analysis capabilities of Julia, combined with LiveView's ability to do rich UIs with SVG, could be pretty unbeatable.
タグ: elixirlang JuliaLang
posted at 21:04:57
ごまふあざらし(GomahuAzaras @MathSorcerer
VSCodeも Juno っぽいことができてきて嬉しい
DataFrame も PyCharm の 配列を閲覧するビューアー的なこともできますね.ブレークポイントを仕掛けて下図のREPLで
```
julia> @ run yourfunctionwhatever(n)
```
とするとデバッグできます.
#Julia言語 pic.twitter.com/x2AlbJVHVS
タグ: Julia言語
posted at 20:59:16

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

#Julia言語 は公式バイナリを
julialang.org/downloads/
julialang.org/downloads/nigh...
を入れて(わたしはnightly build派)、起動して、]と押して、
pkg> add ほげほげ
とするだけで、相当に使える環境が出来上がります。
タグ: Julia言語
posted at 20:49:51


#Julia言語 公式バイナリを入れるだけで、Juliaは結構使える。
すでに別にjupyterやpythonを使っているなら
julia> ENV["JUPYTER"] = "jupyterのフルパス"
julia> ]
pkg> add IJulia
でJupyterでjuliaを使えるようになるし(PyCallも同様)、
julia> ]
pkg> add Plots
でグラフもすぐに描ける。 twitter.com/dmdaugust/stat...
タグ: Julia言語
posted at 20:46:16

#Julia言語
ecdf(A, x) = count(a ≤ x for a in A)/length(A)
と定め,
A = randn(1000)
xs = range(-4, 4, length=400)
ys = ecdf.(A, xs)
とするとDimensionMismatchが出ますが、
ys = ecdf.(Ref(A), xs)
なら大丈夫です。
ブロードキャストから守りたいものをRef()で囲む。 twitter.com/__katok__/stat... pic.twitter.com/FXANWLcLKu
タグ: Julia言語
posted at 20:37:06

"Filled Julia Set" by "Kamoshika" neort.io/art/bsv5pms3p9... #NEORT #glsl
NEORTに投稿しました!
posted at 20:27:57

理由は、行列ベクトル積A*xだと新しい配列を作ってしまってるから。何百回何千回ループするときは、ループ前にyという配列を用意してそれを上書きする形でmul!(y,A,x)を呼べば新しいメモリ確保が生じない
タグ:
posted at 18:37:53

満足のいくDockerfileできた
juliaとpythonとjupyterの環境混ぜて,ついでにijuliaもいれた
pycall動かすのにlibpython3.xm. soとかlibpython3.xm. so.1.0とかが必要だったのに最初入ってなくて,pythonをビルドする時にmakeする前の./configureで--enable-sharedを設定しとくとちゃんと入って動作した
タグ:
posted at 18:09:58



木村王位
お疲れ様でした。
和服に漆黒のマスクで魂込めて深く読み込む様は精悍で、まるで孤高の侍の様に美しく、流石は受けのレジェンドのお姿だと拝見しておりました。
タグ:
posted at 17:21:02


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

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

非公開
タグ:
posted at xx:xx:xx
ごまふあざらし(GomahuAzaras @MathSorcerer
いくつか制限(特定のパッケージが入らない)はアレどラズパイゼロでもJuliaちゃんと動くの素晴らしい。(Tier3サポートだからいつ廃れてもおかしくはない)
タグ:
posted at 16:05:01



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

Mayo Tsukuda(附田磨世) @tsukudamayo
juliaでは、using Profile; @profile でスタックトレースのスナップショットが取れる docs.julialang.org/en/v1/manual/p...
タグ:
posted at 15:15:26


今回の物理学会では、M1の学生が、フラストレートカゴメ系における面白い転移に関して口頭発表します。モンテカルロ計算はJulia+MPI.jl。M1の秋に口頭発表は、うちの学科だと例外的に早い。このまま論文投稿までスムーズに進みたい。 pic.twitter.com/IjSp7fd6sa
タグ:
posted at 12:13:32



MIT発の高度な数値処理をプログラミングできるJuliaの最新情報を紹介 thinkit.co.jp/article/17749 @thinkitcojpより
タグ:
posted at 11:37:18

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


まぁ、でもコンピュータサイエンスならStanfordかMITだよねw Juliaはどっかヨーロッパの大学でスゴイ進んでたような気もするけど、どこだったかな。
タグ:
posted at 09:48:27

#Julia言語 自由境界の正五角形上の波動方程式。数値解を求めるのに1秒かかっていない。 pic.twitter.com/vZstlA7ReQ
タグ: Julia言語
posted at 08:05:15

個人的にはreciprocal gamma にお世話になってるからそっちも見たいな(他力本願寺 twitter.com/genkuroki/stat...
タグ:
posted at 07:57:35

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

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


PythonとMATLABはなんかしばしば排他的に比較されるけど、PythonとJuliaなら足し算になるからMATLABが出る幕ないのでは。知らんけど。
タグ:
posted at 06:05:05

JuliaCon 2020 | Using VS Code for Julia development | David Anthoff youtu.be/IdhnP00Y1Ks via @YouTube
#vscode #JuliaLang #DataScience #MachineLearning
タグ: DataScience JuliaLang MachineLearning vscode
posted at 05:38:19
ごまふあざらし(GomahuAzaras @MathSorcerer
Calling C++ function std::string greet() from #Julialang using CxxWrap.jl works on my Raspberry Pi zero. pic.twitter.com/xYks8uh2vS
タグ: Julialang
posted at 05:27:03

Dr. Chris Rackauckas @ChrisRackauckas
@oxinabox_frames @evalparse @datametrician @randyzwitch @numba_jit For a case where Numba has issues optimizing, i.e. at barriers between functions, see www.stochasticlifestyle.com/why-numba-and-... which goes directly into such an example.
タグ:
posted at 03:24:20

Dr. Chris Rackauckas @ChrisRackauckas
@oxinabox_frames @evalparse @datametrician @randyzwitch @numba_jit On AD ceur-ws.org/Vol-2587/artic... . Not on the whole system though. For a high level overview of the differences, I did write this on Reddit the other day though:
www.reddit.com/r/Julia/commen...
タグ:
posted at 03:23:21

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

ばぶは実は ScanSnap は4台持っています…初号機からもっています…👶
#マシュマロを投げ合おう
marshmallow-qa.com/messages/d1e14... pic.twitter.com/e9n6Ei3i81
タグ: マシュマロを投げ合おう
posted at 01:53:57


#Julia言語
② gif動画続き ウェブ上でも動画が見えるようにするためには添付画像のように、IJulia.display函数を上書きすればよい。そうしておけば
display("image/gif", read("wave_eq_on_pentagon.gif"))
だけですむ。
ソースコード↓
nbviewer.jupyter.org/gist/genkuroki...
試行錯誤の様子も残してある。 pic.twitter.com/TmwUpEvWhg
タグ: Julia言語
posted at 01:48:07

#Julia言語
② gif動画 表示するだけなら、
display("image/gif", read("wave_eq_on_pentagon.gif"))
だけでよい。しかし、それだけだと、ウェブ上で閲覧したときに、動画が表示されない。
自前の函数を使った部分は表示される。この問題の解決法に続く。
nbviewer.jupyter.org/gist/genkuroki... pic.twitter.com/baLKAcpHUd
タグ: Julia言語
posted at 01:48:07

#Julia言語 Jupyter notebook 上で画像やGIF動画を表示する方法
① pngファイル
display("image/png", read("Ising2D_s0.png"))
たったこれだけ!
nbviewer.jupyter.org/gist/genkuroki... pic.twitter.com/4yz8mXKYwv
タグ: Julia言語
posted at 01:48:06

Happy to announce the first release of Javis.jl! 🥳
It is a #JuliaLang package @Wikunia_de and I wrote to make informative #animations and #visualization easy to create.
Check it out here: github.com/Wikunia/Javis.jl
#programming #Victory #opensource #dataviz pic.twitter.com/wqCqWXKcB6
タグ: animations dataviz JuliaLang opensource programming Victory visualization
posted at 01:38:55


『Juliaで学ぶ計算論的神経科学』は神経科学の「総合的な」シミュレーションの本は何故無いのか?、という思いから作成しています (お気持ちは以下から読めます)。かなり長期的な計画ですが、生暖かい目で見ていただければと思います。
compneuro-julia.github.io/preface.html
タグ:
posted at 00:27:41

#Julia言語 私は以下の3つを使っています。
using Plots
pyplot(fmt=:svg)
(heatmapなどにはfmt=:pngをつける)
using Plots
gr()
(gr()は省略可。高速なのでGIFアニメの作成に便利)
using PyPlot
(matplotlibの豊富な情報を利用できる)
Plots.jl対応のパッケージが多い。
twitter.com/kottn_jp/statu...
タグ: Julia言語
posted at 00:25:21

技術書典7で頒布した『ゼロから作るSpiking Neural Networks』の2.1版のpdfを無料公開しました (以下のサイトトップページ下部)。この本はPython実装ですが、内容を増やし、Juliaで実装したものを『Juliaで学ぶ計算論的神経科学』というサイトで公開しています (未完成)。
compneuro-julia.github.io
タグ:
posted at 00:22:24

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