Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
第五章-交差検証と再標本化【数学嫌いと学ぶデータサイエンス・統計的学習入門】
Search
Ringa_hyj
June 15, 2020
Technology
310
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
第五章-交差検証と再標本化【数学嫌いと学ぶデータサイエンス・統計的学習入門】
第五章【数学嫌いと学ぶデータサイエンス・統計的学習入門】
Ringa_hyj
June 15, 2020
Transcript
31 slides
1 第五章 1 第五章 @Ringa_hyj 日本一の数学嫌いと学ぶ データサイエンス ~第五章:交差検証・再標本化~
2 第五章 2 第五章 対象視聴者: 数式や記号を見ただけで 教科書を閉じたくなるレベル
3 第五章 3 第五章 リサンプリング ・訓練・検証・テスト ・交差検証(ホールドアウト・一つ抜き・k分割) ・ブートストラップ
4 第五章 4 第五章 訓練・検証・テスト データ 交差検証
5 第五章 5 第五章 ・訓練・検証・テスト データ 予測モデルを作るのは 未知(将来得られる予定)のデータを予測したい 手元のデータからモデルを作っても 未知のデータに対応できているか確認はできない
データ Full dataset (sample) 学習 ロジスティック回帰 最小二乗法 モデル 未知のデータ データに対して 95%正解できる 何%?? 未知のデータに 対応している??
6 第五章 6 第五章 ・訓練・検証・テスト データ データを分割して学習用と、 未知データに対する精度の確認用として扱う データ 学習用データ
(訓練データ) train テストデータ test 学習 モデル
7 第五章 7 第五章 ・訓練・検証・テスト データ 機械学習の”学習”は何回も行い精度向上させる テストデータでの性能 & 訓練データの性能
どちらも下げるように学習 交差検証(cross-validation) 学習用データ (訓練データ) train テストデータ test 学習 モデル 精度 確認 train 学習 まだ? 終わり
8 第五章 8 第五章 ・訓練・検証・テスト データ テストデータの性能も見せてしまっているから、 未知のデータをカンニングした状態 学習用データ (訓練データ)
train テストデータ test 学習 モデル 精度 確認 train 学習 まだ? 終わり
9 第五章 9 第五章 ・訓練・検証・テスト データ さらにもう一つ分割する 検証データをカンニングさせ、 最後にテストで性能を確認する データ
学習用データ (訓練データ) train 検証データ valid 学習 モデル テストデータ test
10 第五章 10 第五章 データ Full dataset (sample) ・訓練・検証・テスト データ
未知のデータ (母集団) モデル 推定 未知のデータ (母集団) 抽出 sampling train valid test 再標本化 resampling
11 第五章 11 第五章 交差検証の手法(分割・確認) (ホールドアウト・一つ抜き・k分割・ブートストラップ)
12 第五章 12 第五章 ・ホールドアウト法(hold-out) データ だいたい半分 順番に関係がないならランダムに再標本化
13 第五章 13 第五章 ・1つ抜き法(LOOCV) leave one out cross validation
データ 一つだけのデータで性能を確認する ※たまたま外れ値のデータで検証してしまう可能性あり
14 第五章 14 第五章 ・K分割法(k-fold CV) データ データをK個(5~10くらい)に分割し、1つを検証用、残りを学習用 これでK-1回学習を行う ※一つ抜きよりも計算コストが少なく、
たまたまの外れ値を選ぶリスクも減る
15 第五章 15 第五章 ・ブートストラップ データ 重複を許す無作為抽出 ※標本データの性質を反映させやすい (多頻度登場するデータ) ブートストラップ標本
16 第五章 16 第五章
17 第五章 17 第五章
18 第五章 18 第五章
19 第五章 19 第五章
20 第五章 20 第五章
21 第五章 21 第五章
22 第五章 22 第五章
23 第五章 23 第五章
24 第五章 24 第五章
25 第五章 25 第五章
26 第五章 26 第五章
27 第五章 27 第五章
28 第五章 28 第五章
29 第五章 29 第五章
30 第五章 30 第五章
31 第五章 31 第五章
More Decks by Ringa_hyj
See All by Ringa_hyj
DVCによるデータバージョン管理
ringa_hyj
0
510
deeplakeによる大規模データのバージョン管理と深層学習フレームワークとの接続
ringa_hyj
0
130
Hydraを使った設定ファイル管理とoptunaプラグインでのパラメータ探索
ringa_hyj
0
270
ClearMLで行うAIプロジェクトの管理(レポート,最適化,再現,デプロイ,オーケストレーション)
ringa_hyj
0
320
Catching up with the tidymodels.[Japan.R 2021 LT]
ringa_hyj
3
900
多次元尺度法MDS
ringa_hyj
0
530
因子分析(仮)
ringa_hyj
0
270
階層、非階層クラスタリング
ringa_hyj
0
180
tidymodels紹介「モデリング過程料理で表現できる説」
ringa_hyj
0
700
Other Decks in Technology
See All in Technology
kubellの最新データ分析環境
kubell_hr
2
370
AWS DevOps Agentの構造から読み解く運用 AI エージェントの設計原則/aws-devops-agent-design-principles
tomoki10
0
340
一口馬主の募集馬をAIで診断してみた
yoshimura_datam
0
130
想定外の利用がプロダクトの価値を広げる
lycorptech_jp
PRO
0
150
全てを疑え!非自明な挙動と異常系から考える堅牢なカスタムコントローラ開発入門(CNDW2026)
lycorptech_jp
PRO
0
130
ワークフローからハーネスへ — Web フレームワークの作者たちが AI エージェントに向かう理由
azukiazusa1
4
4.1k
20261119_AgentCore
takuyay0ne
2
360
SBOM 生成ツールで 2026 Minimum Elements はどこまで満たせるのか
gokken
0
180
IVRy における AI 時代のデータプロダクトと事業開発
ivry_presentationmaterials
0
150
Zero Data Loss Autonomous Recovery Service サービス概要
oracle4engineer
PRO
5
18k
Go でトランザクション、どう書いてますか?
knwoop
2
680
ローカルLLMによるデジタルフォレンジック支援ハーネスの設計と実装
sumeshi
0
800
Featured
See All Featured
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Scaling GitHub
holman
464
140k
HDC tutorial
michielstock
2
1k
How to Ace a Technical Interview
jacobian
280
24k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
680
So, you think you're a good person
axbom
PRO
2
2.3k
Raft: Consensus for Rubyists
vanstee
143
7.9k
How STYLIGHT went responsive
nonsquared
100
6.4k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.9k
Docker and Python
trallard
47
4.3k
Evolving SEO for Evolving Search Engines
ryanjones
0
380