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
dotdotdot_in_predict_function
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
bk
June 04, 2022
Programming
1.2k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
dotdotdot_in_predict_function
https://watagusa.hatenablog.com/entry/2022/06/06/092437
bk
June 04, 2022
Transcript
21 slides
ʙ predictؔͰ͍᪴ͨdot-dot-dot ʙ ɾɾɾ
࣍ 2 తɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾp.3 predictؔΛ͍ͬͯͨ࣌ͷ͜ͱɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾp.4ʙ10 ʮ…ʯͱɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾp.11ʙ18 ·ͱΊɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾp.19 ࢀߟจݙɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾɾp.20
త 3 త ͋·Γ͞ͳ͍͜ͱ • …ͱԿ͔ΛΔ͜ͱ • …ΛҾʹ࣋ͭؔͰԿʹؾΛ ͚ͭΔ͖ͳͷ͔Δ͜ͱ •
Ҿʹ…Λ࣋ͨͤͨ߹ͷ͍ํ
predictؔΛ͍ͬͯͨ࣌ͷ͜ͱ
predictؔ 5 penguinsσʔλΛֶशσʔλͱݕূσʔλʹׂ
predictؔ 6 rpartͰֶश͠ɺݕূσʔλʹద༻
predictؔ 7 predictؔͷRDocumentationΛௐΔ predict.rpart function - RDocumentation, https://www.rdocumentation.org/packages/rpart/versions/4.1.16/topics/predict.rpart
predictؔ 8 predictͷҾΛݟฦ͢
predictؔ 9 newdataʹԿࢦఆ͍ͯ͠ͳ͍ͱͲ͏ͳΔͷ͔ predict.rpart function - RDocumentation, https://www.rdocumentation.org/packages/rpart/versions/4.1.16/topics/predict.rpart
predictؔ 10 “data”ʹͨ͠ͷͲ͜ʹ͍ͬͨͷ͔ʁ predict.rpart function - RDocumentation, https://www.rdocumentation.org/packages/rpart/versions/4.1.16/topics/predict.rpart
ʮ…ʯͱ
…ͱ 12 Advanced R 6 Functions | Advanced R, https://adv-r.hadley.nz/functions.html#fun-dot-dot-dot
RDocumentation dotsMethods function - RDocumentation, https://www.rdocumentation.org/packages/methods/versions/3.6.2/topics/dotsMethods
…ͱ 13 Advanced R 6 Functions | Advanced R, https://adv-r.hadley.nz/functions.html#fun-dot-dot-dot
RDocumentation dotsMethods function - RDocumentation, https://www.rdocumentation.org/packages/methods/versions/3.6.2/topics/dotsMethods 13
…ͱ 14 ར ࣄલʹࢦఆͰ͖ͳ͍ҾΛॊೈʹड͚औΔ͜ͱ͕Ͱ͖Δ ҙ Ҿ໊͕ޡ͍ͬͯͯΤϥʔͳ͘ड͚औͬͯ͠·͏
…ͷҙ 15 sumͷҾ sum function - RDocumentation, https://www.rdocumentation.org/packages/base/versions/3.6.2/topics/sum
…ͷҙ 16 sumͷҾna.rmͷεϖϧΛؒҧ͑ͨ߹
…ͷ͍ํ 17 listͱؙͯ͠͝ͱड͚औΔ
…ͷ͍ํ 18 ..NͰҾͷॱ൪Λࢦఆͯ͠ड͚औΔ
·ͱΊ 19 • ҾͷεϖϧΛ֬ೝ͢Δ • dot-dot-dotͰड͚औͬͨΒwarning͍͍͋ͬͯؾ͕
ࢀߟจݙ 20 • RDocumentation, predict.rpart function - RDocumentation, https://www.rdocumentation.org/packages/rpart/versions/4.1.16/ topics/predict.rpart
• RDocumentation, dotsMethods function - RDocumentation, https://www.rdocumentation.org/packages/methods/versions/ 3.6.2/topics/dotsMethods • RDocumentation, sum function - RDocumentation, https://www.rdocumentation.org/packages/base/versions/3.6.2/topics/sum • Advanced R, 6 Functions | Advanced R, https://adv-r.hadley.nz/functions.html • My Life as a Mock Quant, ࡾ࿈υοτ(..., dot-dot-dot, ellipsis)ͷऔΓѻ͍, https://teramonagi.hatenablog.com/entry/ 20160817/1471418554 • ࣺͯΒΕͨϒϩά, R ͷ dot-dot-dot ΦϒδΣΫτ, https://blog.recyclebin.jp/archives/3823 • ੴా ج, ࢢ ଠ༞, ߴ༄ ৻Ұ, ౡ ਅଠ࿕, Rݴޠపఈղઆ, https://www.amazon.co.jp/gp/product/432012393X/
None
More Decks by bk
See All by bk
Befriending Kurtosis with R
bk_18
1
1k
tidy_rpart
bk_18
1
1.8k
Introduction_of_GoogleAnalytics_with_R
bk_18
2
1k
web scraping with polite package
bk_18
2
860
start-salesforce-with-r
bk_18
0
940
Missspell Detection
bk_18
1
180
About Missing Values
bk_18
1
430
Other Decks in Programming
See All in Programming
Snowflake Openflow Connector利用の勘所 / 20261024developersio2026tokyo-snowflake-openflow
kasacchiful
PRO
0
340
Enforcing Your Architecture with Unit Tests in the AI Era (Swift Connection X)
steliosf
PRO
1
180
조합이폭발하는디자인시스템이걸눈으로도테스트하라고요
giljongyu
0
760
우리의 Nitro Modules는 당신의 Turbo Modules보다 아름답다
l2hyunwoo
0
260
コード生成時代のAPI定義を支えるRequest Spec移行
pvcresin
0
180
Apple Intelligenceとオンデバイス時代の到来
yahir0
0
240
クラウドエージェントは、 何がそんなに便利なのか / what makes cloud agents so useful
rkaga
5
890
高橋メソッドでCVE解説シリーズ 〜CVE-2026-112816〜
hakkadaikon
0
260
仕様駆動開発入門 (何を作るかを先に決めて渡す) | 目指せ Kiro マスター 05
inariku
PRO
2
160
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
190
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
570
疎結合とは何か?ソフトウェア設計における結合バランスについて考える #phpcon_niigata
kajitack
1
190
Featured
See All Featured
Utilizing Notion as your number one productivity tool
mfonobong
4
640
Visualization
eitanlees
153
17k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
950
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
6
930
Balancing Empowerment & Direction
lara
6
1.4k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
330
Why Our Code Smells
bkeepers
PRO
340
58k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
Fireside Chat
paigeccino
43
4.1k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k