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
Cpaw AI Competition 2nd Programming/hand-RPS編
Search
Cpaw
April 02, 2018
230
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Cpaw AI Competition 2nd Programming/hand-RPS編
Add credits slide
Cpaw
April 02, 2018
More Decks by Cpaw
See All by Cpaw
Cpaw AI Competition 2nd CIFAR100/omniglot編
cpaw
0
240
Featured
See All Featured
ラッコキーワード サービス紹介資料
rakko
1
5.2M
Paper Plane (Part 1)
katiecoart
PRO
2
11k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
450
A Tale of Four Properties
chriscoyier
163
24k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Odyssey Design
rkendrick25
PRO
2
860
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
540
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
510
Faster Mobile Websites
deanohume
310
32k
Transcript
第2回 Cpaw AI competition 筑波大学 田尻
目次 ◎ Programming ◦ 問題概要 ◦ 試した方法 ◦ 結果 ◎
hand-RPS ◦ 問題概要 ◦ 試した方法 ◦ 結果 2
1. Programming解説 3
問題概要 ◎ ソースコードから該当するプログラミング 言語を予測する問題 ◎ プログラミング言語(6種類): ◦ C# ◦ C++
◦ Go ◦ JavaScript ◦ Rust ◦ Scala 4
データ例1 ◎ C# 5 ◎ C++
データ例2 ◎ Go 6 ◎ JavaScript
データ例3 ◎ Rust 7 ◎ Scala
データoutline ◎ Github上のソースコードを取得 8 sklearn.feature_extraction.text.CountVectorizerを使用
言語別ヒストグラム(回数/単語ID) 単語ベースの手法でいけそう・・・? 9
試した方法 ◎ Tf-idf ◦ Scikit-learn のTfIdfVectorizer ◦ ソースコードから特徴ベクトルまで変換 ◦ 他のデータではあまり出ない単語(記号)を重視す
る 特徴量 ◎ リッジ回帰を用いたクラス分類 ◦ scikit-learnのRidgeClassifiar ◦ データを実現するような関数を求める ◦ 二値分類を元に多数決で分類 10
結果 ◎ tf-idf + RidgeClassifier ◎ 正解率:95.87% 11
2. hand-RPS解説 12
問題概要 ◎ 手の画像からグー・チョキ・パーを予測する 問題 ◎ マーカーでキャリブレーション済み 13
データ例 14 ◎ パー ◎ グー ◎ チョキ
試した方法 ◎ Hog特徴量 ◦ Scikit-imageのhog ◦ グレースケールにしてそのまま ◎ Logistic Regression
◦ scikit-learnのLogisticRegression ◎ SVM ◦ scikit-learnのSVC ◦ データ点からの距離が最も大きくなるような 分離超平面を求める ◦ カーネル法によって線形以外のデータも分類可能 15
結果 ◎ 16
Credits Special thanks to all the people who made and
released these awesome resources for free: ◎ Presentation template by SlidesCarnival ◎ Photographs by Unsplash & Death to the Stock Photo (license) 17