Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
CreateMLを使ってサクラを判定しよう | iOSDC 2018 LT
Search
sun54907
September 02, 2018
Technology
1
930
CreateMLを使ってサクラを判定しよう | iOSDC 2018 LT
sun54907
September 02, 2018
Tweet
Share
More Decks by sun54907
See All by sun54907
既存のプロジェクトに、Firestoreを導入してみた
sun54907
1
1.1k
stackViewを使ってボタンをつくった話
sun54907
0
950
Introducing Password AutoFill
sun54907
1
530
3年間作り続けて来たアプリをSwift化した話
sun54907
0
6.6k
Other Decks in Technology
See All in Technology
Terraform Stacks入門 #HashiTalks
msato
0
360
Exadata Database Service on Dedicated Infrastructure(ExaDB-D) UI スクリーン・キャプチャ集
oracle4engineer
PRO
2
3.2k
【令和最新版】AWS Direct Connectと愉快なGWたちのおさらい
minorun365
PRO
5
760
オープンソースAIとは何か? --「オープンソースAIの定義 v1.0」詳細解説
shujisado
10
1.3k
適材適所の技術選定 〜GraphQL・REST API・tRPC〜 / Optimal Technology Selection
kakehashi
1
700
OS 標準のデザインシステムを超えて - より柔軟な Flutter テーマ管理 | FlutterKaigi 2024
ronnnnn
1
290
iOSチームとAndroidチームでブランチ運用が違ったので整理してます
sansantech
PRO
0
150
AI前提のサービス運用ってなんだろう?
ryuichi1208
8
1.4k
生成AIが変えるデータ分析の全体像
ishikawa_satoru
0
170
OCI Network Firewall 概要
oracle4engineer
PRO
0
4.2k
IBC 2024 動画技術関連レポート / IBC 2024 Report
cyberagentdevelopers
PRO
1
120
【Pycon mini 東海 2024】Google Colaboratoryで試すVLM
kazuhitotakahashi
2
550
Featured
See All Featured
Optimizing for Happiness
mojombo
376
70k
Code Review Best Practice
trishagee
64
17k
Adopting Sorbet at Scale
ufuk
73
9.1k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
The World Runs on Bad Software
bkeepers
PRO
65
11k
Writing Fast Ruby
sferik
627
61k
Embracing the Ebb and Flow
colly
84
4.5k
Thoughts on Productivity
jonyablonski
67
4.3k
Building Applications with DynamoDB
mza
90
6.1k
Teambox: Starting and Learning
jrom
133
8.8k
We Have a Design System, Now What?
morganepeng
50
7.2k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
27
840
Transcript
CREATE ML ΛͬͯαΫϥ Λఆ͠Α͏ IOSDC 2018 LT
CREATE ML ΛͬͯαΫϥΛఆ͠Α͏ ABOUT ME ▸ ւ ▸ גࣜձࣾϚονϯάΤʔδΣϯτ
▸ @sun54907
None
CREATE ML ΛͬͯαΫϥΛఆ͠Α͏ CONTENTS ▸ αΫϥʹ͍ͭͯ ▸ Create ML ʹ͍ͭͯ
▸ ࣮ݧͱ݁Ռ
SAKURA
CREATE ML ΛͬͯαΫϥΛఆ͠Α͏ ࠓճͷαΫϥͷఆٛ ▸ ग़ձ͍ܥͷӡӦଆ͕༻ҙͨ͠Βͤ༻ͷΞΧϯτ ▸ ӡӦҎ֎͕༻ҙͨ͠ɺʰଞαΠτͷ༠ಋʱʰٗߦҝʱΛ తͱͨ͠ΞΧϯτ ▸
զʑʮۀऀʯͱݺΜͰ͍Δ ▸ ͜ͷΑ͏ͳѱ࣭Ϣʔβʔͷ໓ ʹ24࣌ؒମ੍ͰۈΊ͍ͯΔ
CREATE ML ΛͬͯαΫϥΛఆ͠Α͏
CREATE ML ΛͬͯαΫϥ Λఆ͠Α͏ IOSDC 2018 LT
CREATE ML ΛͬͯۀऀΛ ఆ͠Α͏ IOSDC 2018 LT
CREATE ML ΛͬͯۀऀΛఆ͠Α͏ ۀऀͷఆ ▸ ΑΓϚον͍͢͠Α͏ʹɺՄѪ͍ɺ͔͍͍ͬࣸ͜ਅΛ ͏ͣ ▸ ϗετΩϟόܥ͕ଟ͍ʹҧ͍ͳ͍ ▸
ࣸਅ͔Βఆ͠Α͏ʂ
CREATE ML
CREATE ML ΛͬͯۀऀΛఆ͠Α͏ CREATE ML ʹ͍ͭͯ ▸ ؆୯ʹػցֶशϞσϧ͕࡞ΕΔ ▸ ը૾ͷೝࣝɺςΩετ͔Βͷҙຯͷநग़ɺؒͷؔͷݕ
ࡧͳͲ͕Ͱ͖Δ
CREATE ML ΛͬͯۀऀΛఆ͠Α͏ ͑Δڥ ▸ macOS 10.14+ (Mojave Ҏ্) ▸
Xcode 10.0+ ▸ ݱࡏ྆ํBeta൛
CREATE ML ΛͬͯۀऀΛఆ͠Α͏ ը૾ೝࣝ ▸ Image Classifier ͱ͍͏ͷΛ͏ ▸ ը૾Λೝࣝ͢ΔΑ͏ʹ܇࿅͞ΕͨػցֶशϞσϧΛ࡞Δ
▸ ը૾Λ༻ҙ͢Δ͚ͩͰ࡞Ͱ͖Δ
CREATE ML ΛͬͯۀऀΛఆ͠Α͏ PLAYGROUND্Ͱͷ࣮ߦίʔυ ▸ macOS༻ͷPlaygroundΛ࡞ ▸ ҎԼͷίʔυΛ࣮ߦ
͜͜ʹσʔλΛυϥοά&υϩοϓ
CREATE ML ΛͬͯۀऀΛఆ͠Α͏ ༻ҙ͢Δσʔλ ▸ ܇࿅༻ͷσʔλͱςετ༻ͷσʔλΛ༻ҙ ▸ Training Data ͱ
Testing Data ͱ͍͏ϑΥϧμʹ͚Δ ▸ ͏ը૾ΛϑΥϧμ͝ͱʹ͚ͯɺͦͷதʹೖΕΔ
CREATE ML ΛͬͯۀऀΛఆ͠Α͏ σʔλͷ੍ݶ ▸ ը૾֤ϥϕϧ͝ͱʹ࠷10ຕ ▸ ֤ϥϕϧ͝ͱʹը૾ͷຕΛἧ͑Δ ▸ 299*299pxҎ্ͷը૾ਪ
࣮ݧ։࢝
CREATE ML ΛͬͯۀऀΛఆ͠Α͏ ࣮ݧ༰ ▸ ࣮ݧ1 ࡩͷఆ ▸ ࣮ݧ2 உঁͷఆ
▸ ࣮ݧ3 ۀऀͷఆ
CREATE ML ΛͬͯۀऀΛఆ͠Α͏ ࣮ݧ1 ࡩͷఆ ▸ ࡩ10ຕͱക10ຕͰϞσϧ࡞ ▸ 95%ఆՄೳ
CREATE ML ΛͬͯۀऀΛఆ͠Α͏ ࣮ݧ2 உঁͷఆ ▸ உੑ200ຕͱঁੑ200ຕͰϞσϧ࡞ ▸ 20 ~
30ࡀͷإ͕ݟ͑ΔࣸਅΛ༻ ▸ ࣮ࡍͷϢʔβʔͷσʔλͳͷͰɺࣸਅ͓ݟͤͰ͖·ͤΜ ▸ 83%ఆՄೳ
CREATE ML ΛͬͯۀऀΛఆ͠Α͏ ࣮ݧ3 ۀऀͷఆ ▸ ۀऀͷஉੑ100ຕͱɺ௨ৗϢʔβʔஉੑ100ຕ ▸ ঁੑ൛ಉ༷ʹ࡞
݁Ռ
50%
ఆ Ͱ͖ͳ͍
ਐܸͷڊਓ ୈ1ʮೋઍޙͷ܅ʯΑΓҾ༻
None
CREATE ML ΛͬͯۀऀΛఆ͠Α͏ ߟ ▸ ࠷ۙݟͨͰո͠·Εͳ͍Α͏ʹɺී௨ͷϢʔβʔͱಉ͡ Α͏ͳࣸਅΛ͏Β͍͠ ▸ ࣗͰݟͨײ͡ɺ࣮ࡍͷࣸਅΛݟͯఆͰ͖ͳ͔ͬ ͨ
▸ ͬͱ͍͍Γํ͕͋ͬͨΒڭ͍͑ͯͩ͘͞…m(__)m ▸ ূ໌ࣸਅʹ͑Δ͔͠Εͳ͍
͝੩ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠
CREATE ML ΛͬͯۀऀΛఆ͠Α͏ ࠔͬͨϙΠϯτ ▸ macOS༻ʹPlayground࡞͚ͬͨͲಈ͔ͳ͍ʂ ▸ No such module
‘CreateMLUI’ ͱग़Δ! ▸ Ұճ import ͱ͔ԿՃ͠ͳ͍ͰϏϧυͯ͠ΈΔͱͬ ͨ
CREATE ML ΛͬͯۀऀΛఆ͠Α͏ ࢀߟ ▸ Create ML https://developer.apple.com/documentation/createml ▸ Image
Classification with CreateML https://enlight.nyc/create-ml/ ▸ Create MLͰ؆୯ʹػցֶशΛମݧ͢Δ https://qiita.com/hanawat/items/63176648a52b5e0b985b