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
ゆるいPython会
Search
Aruneko
November 09, 2017
Technology
300
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ゆるいPython会
2017/11/09に学内で開催したゆる(くな)いPython会の資料です
Aruneko
November 09, 2017
More Decks by Aruneko
See All by Aruneko
RedmineをDockerに載せてみた
aruneko
1
2.5k
NFCとしゃべってみよう
aruneko
0
250
Haskell入門ハンズオン
aruneko
2
1.8k
北海道における学生ITコミュニティの紹介
aruneko
0
270
ゼロからわかるポインター
aruneko
0
1k
Dockerでドカドカ on FuraIT #36
aruneko
1
980
Other Decks in Technology
See All in Technology
30座EKS, 180次升級淬煉的EKS Upgrade Skill 的歷程
eric8230
0
160
事業課題から技術的負債に向き合う
sansantech
PRO
2
1.8k
Claude in Chrome 入門 / Introduction to Claude in Chrome
cielo1985
0
790
OpenTelemetry eBPF Instrumentationの舞台裏 / Behind the Scenes of OpenTelemetry eBPF Instrumentation
ymotongpoo
4
1.3k
白金鉱業Meetup Vol.25 アウトカムが二値のデータに対するCausal Impact
brainpadpr
0
160
AI に書かせたその API、 “信頼” できますか?
nagix
0
110
Claude Codeを「使うほど育つ」AI秘書にするノウハウ
minorun365
PRO
23
18k
ユーザー価値を届け続けるためにウォンテッドリーが大切にしている文化
kotaminato
0
150
DEFCON_CHV_CTF_Write-up.pdf
bata_24
0
150
Minecraft JavaのMODをSwiftで作る
1mash0
0
160
登壇の自信を奪う3匹のオバケ / 3 Ghosts That Rob You of Your Confidence in Public Speaking
pauli
8
900
「守り」で活用するオンデバイスLLM 〜写ってはいけないを総力戦で防ぐ〜 / iOSDC Japan 2026
nakamuuu
0
160
Featured
See All Featured
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.4k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
520
Un-Boring Meetings
codingconduct
0
420
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
460
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.8k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
330
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Transcript
ΏΔ͘ͳ͍1ZUIPOձ *UFSBCMF(FOFSBUPS-BNCEB !BSVOFLP
ࠓͷ༰ w *UFSBCMF(FOFSBUPS w -BNCEBࣜ
αϯϓϧίʔυ w IUUQTHJUBSVOFLPOFUBSVOFLPSPVHI@QZUIPO
*UFSBCMF w *UFSBCMFͬͯʁ w ܁Γฦ͠ॲཧ͕Ͱ͖Δͷ w MJTUUVQMFEJDUFUD w 1ZUIPOʹ͓͍ͯɺ*UFSBUPSͱҧ͏Α w
*UFSBUPSJUFS Λͬͯ*UFSBCMFͳͷ͔Βੜͯ͠ ΛOFYU ͰݸͣͭऔΓग़ͭ͢ w શ෦ు͖ग़ͨ͠ޙʹOFYU ΛݺͿͱྫ֎Ͱམͪ·͢
(FOFSBUPS w (FOFSBUPSͬͯʁ w *UFSBUPSͷҰछ w Λੜ͢ΔϧʔϧΛ͍࣋ͬͯͯɺݺΕΔʹॱ൪ʹు͖ग़ͭ͢ w ࠷ޙ·Ͱు͖ग़ͨ͠ޙʹ͏ҰճݺΜͰམͪ͠ͳ͍͚ͲԿు͔ͳ͍Α w
ཁ͢ΔʹԆධՁ w MJTUͳͲσʔλ͕શ෦ϝϞϦʹͬͯ͠·͏ͷͰɺ ͕ଟ͍ͱ͖(FOFSBUPSͷํ͕লϝϞϦ w ͍͔ͨͩ͠Ͳ͏͔ผ
(FOFSBUPSΛ࡞ͬͯΈΔ def gen_odd_numbers(min: int, max: int) -> [int]: for n
in range(min, max): yield 2 * n + 1 nums = gen_odd_numbers(0, 100) for n in nums: print(n)
࿅श w 'J[[#V[[Λు͖ग़͢δΣωϨʔλΛ࡞ͬͯΈΑ͏ʂ w 'J[[#V[[ͱɺҎ্ͷྻʹରͯ͠ w ͷഒ'J[[ w ͷഒ#V[[ w
ͷഒ'J[[#V[[ w ͦΕҎ֎ࣗͷ w Λग़ྗ͢ΔͰ͢
-BNCEBࣜ w ͍͍ͪͪؔΛ࡞Δ·Ͱͳ͍ͱ͖ʹ͏ؔϦςϥϧ w ϦςϥϧͬͯͷมʹೖͰ͖ΔͷࣄͶ w ؔΛҾʹऔΔؔʹ͏ͱΑ͛͞ w ͜͏͍͏ؔΛߴ֊ؔ )JHIFS0SEFS'VODUJPO
ͬͯݺͿΑ
1ZUIPOͷߴ֊ؔ w *UFSBCMFͳΦϒδΣΫτΛҰׅͰૢ࡞͢Δؔ w NBQ GVOD JUFS w pMUFS
GVOD JUFS w GVODUPPMTSFEVDF GVOD JUFS w ҙॱͰͷιʔτ w TPSUFE JUFS LFZLFZ@GVODUJPO w άϧʔϓ͚ w JUFSUPPMTHSPVQCZ JUFS LFZLFZ@GVODUJPO w ͍ͭ͜ΒͷฦΓશ෦(FOFSBUPSͳͷͰऔѻҙ w Ҿͷॱ൪ʹҰ؏ੑ͕ͳ͍ͷಥͬࠐΜͰ͍͚ͳ͍
ͬͯΈΑ͏ import urllib.request iris_url = 'https://raw.githubusercontent.com/uiuc-cse/data-fa14/gh-pages/data/iris.csv' with urllib.request.urlopen(iris_url) as res:
splitted_response = res.read().split() decoded = map(lambda l: l.decode('UTF-8'), splitted_response) iris_csv = list(map(lambda l: l.split(','), decoded)) header = iris_csv[0] iris_data = iris_csv[1:] iris = map(lambda i: { header[4]: i[4], header[0]: float(i[0]), header[1]: float(i[1]), header[2]: float(i[2]), header[3]: float(i[3]) }, iris_data ) for l in sorted(iris, key=lambda i: i['sepal_width']): print(l)
࿅श w JSJTQZΛվ͠Α͏ w ଞͷͰιʔτͯ͠ΈΑ͏ w SFEVDFΛͬͯͭͷ TFQBMͱQFUBMͷXJEUIͱMFOHUI ͷ ฏۉΛͦΕͧΕٻΊͯΈΑ͏
TVNറΓ w ࠓՖͷछྨ͝ͱʹಉ͡ࣄΛͬͯΈΑ͏ HSPVQCZ