SlideShare a Scribd company logo
1 of 14
neuRo-
enthUsiaST
for
Rust でシミュレーションをしたら、とても良かった話
自己紹介
Name: Shuntaro OHNO
Twitter: @doraneko_b1f
Github: @doraneko94
URL: http://ushitora.net/
富山大学医学薬学研究部 生理学講座 博士課程1年
脳科学の研究室
みんながマウスで実験をしているなか、ラボ内でひとりだけ
コンピュータシミュレーションを行っている人
この LT で用いたコードの詳細は、
「神経科学アドベントカレンダー」の12月11日分として、
明日の今頃には投稿されているはず。。。
このライトニングトークは、「なんか格好よさそうだか
ら」という理由でオライリー本をAmaz〇nしてRustを始
めてみた初心者が、本職の神経回路シミュレーションで
Rustを活用してみたところ「これめっちゃいいやん」と
いうことに気付き、これはぜひ広めなければならないと
思ったものの、神経回路シミュレーションなんてやって
る人間はあまりにも少ないという世界の真理にくじけ、
いやしかし、この利点は一般的なマルチなエージェント
を扱うシミュレーション全般に言えることだという事実
に奮起し、「やはり布教しなければならぬ!」という使
命のもと、マルチエージェントのシミュレーションに
Rustを使うといいことあるよ的なことを伝えるために実
施するものである!!!!!!!!!!!!!!!!!
よくわからない連中が、
よくわからない感じにつながっている…
Soma
(細胞体)
Dendrite
(軸索)
Synapse
(シナプス)
とりあえず、
動かしてみようってわけ。
𝐶 𝑚
𝑑𝑉
𝑑𝑡
= −𝑔 𝐿 𝑉 + 𝐼 𝑟𝑒𝑐
+ 𝐼 𝑒𝑥𝑡
閾値を超えたら発火(ファイア)
1 0 1 1 0 1 0 0 1 1
0 0 1 0 1 1 ? ? ? ?
さっきの神経活動
これからの神経活動
まだ見てないのに、
勝手に変更しないでくださる!?コンパイラ激おこ案件…?
これが、神経界隈のヒエラルキーだ!!
挑戦者
あなたが
安全性を保障しなさい!!
struct Neuron {
synapses: Vec<usize>,
weights: Vec<f64>,
v: f64,
i_ext: f64,
threshold: f64,
t_rest: f64,
}
impl Neuron {
fn new(n: usize) -> Neuron {
// パラメータを設定
}
fn run(&mut self, spike: &Vec<u8>, dt: f64) -> u8 {
// 微分方程式を処理
}
}
個々のニューロンをstructとして作る
ひとりで活動できるように
struct Network {
n: usize,
neurons: Vec<Neuron>,
count: usize,
}
impl Network {
fn new(n: usize) -> Network {
// いつもの
}
fn run(&mut self, spike_train: &Vec<Vec<u8>>, dt: f64) -> Vec<u8> {
// いろんな関数
}
fn input(&mut self, current: f64) {
// いろんな関数その2
}
}
親玉がいた方が便利な気がする
親が走れば子も走る
Result
Time (ms)
#neuron
V(mV)
Time (ms)
あたしは友達が多いから、
特別扱いしなさいよ!!
線虫の神経回路網
均等に並列化…?
まとめ
1. マルチなエージェントの操作には、Rustの安全性がありがたい
 しみる
2. エージェントを一括支配する存在がいた方が便利?
 読みやすさのうえでも
3. エージェントのタスク量を見て、並列する
 世界はべき乗則
Lt 20191211

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

Lt 20191211