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
Sparse Modeling in Python
Search
Hacarus Inc.
February 25, 2018
Technology
990
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Sparse Modeling in Python
Presentation slides at PyCon PH 2018 Lightning Talks
Hacarus Inc.
February 25, 2018
More Decks by Hacarus Inc.
See All by Hacarus Inc.
GitLab CI/CD で C#/WPFアプリケーションのテストとインストーラーのビルド・デプロイを自動化する
hacarus
0
1.4k
QA4AIに則ったMLOpsツールの活用
hacarus
0
760
0から協働ロボット外観検査システムを3ヵ月で具現化した軌跡
hacarus
0
320
ワンちゃんの健康を願う皆様に送る 犬心電図AI解析プロダクト紹介_AWS DevDay2022
hacarus
0
230
犬の心電AI解析プロダクト開発奮闘記 _クラウドからハード開発までてんこ盛り
hacarus
0
2.3k
ExplainableAIの概要とAmazon SageMaker Clarifyでの実装例
hacarus
0
1.2k
AWS Step Functions を用いた非同期学習処理の例
hacarus
0
1.5k
Dashでmyダッシュボードを作ろう ーpytrendsで見るコロナの感染拡大時期ー
hacarus
0
1.6k
Interpretable Machine Learning: モデル非依存な解釈手法の紹介
hacarus
0
1.3k
Other Decks in Technology
See All in Technology
PagerDuty Tech Hub-鳴らすけれど、人は動かない
ezaki
0
170
Running Kotlin + Quarkus with Lambda
nealle
1
3.7k
事業成長とデータ活用を止めないためのマネジメントへ挑戦
hiracky16
0
390
AI コーディングと人間の認知スループット / CTO Night & Day 2026 Morning Session / AI Coding and Human Cognitive Throughput
prog893
4
1.1k
日本語に強いオープンな大規模言語モデル「LLM-jp」
odashi
4
1.1k
子育てエンジニアの可処分時間が減っても成長を諦めない戦い方
sudoakiy
6
4.6k
「Docker Desktop不要の時代」は 来たのか?
ueponx
0
770
Post AI時代のリファクタリング実践記 / Refactoring in the post AI era
kaminashi
1
230
PHPカンファレンス関西の招待状 / Invitation to PHP Conference Kansai
ykanoh
0
110
SAENM ~Jupyterで残すPoCの試行錯誤、未来の自分と仲間を助ける記録!~
terapyon
0
110
Persisting Massive Data with Rails ~Designing for 60 billion rows, and fighting the bottlenecks~ Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
0
730
『SAR衛星データ解析入門』のご紹介とその応用
syuchimu
0
120
Featured
See All Featured
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
The Pragmatic Product Professional
lauravandoore
37
7.5k
Code Reviewing Like a Champion
maltzj
529
40k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
The Language of Interfaces
destraynor
162
27k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
570
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
410
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
270
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
780
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
220
Darren the Foodie - Storyboard
khoart
PRO
4
4k
Optimising Largest Contentful Paint
csswizardry
37
4k
Transcript
Sparse Modeling in Python Feb 25th, 2018 PyCon PH 2018
@tksmd
,ZPUP IUUQTXXXGMJDLSDPNQIPUPTQFESPT[
8IBUJTz4QBSTF.PEFMJOHz • .FUIPE UP BOBMZ[F EBUBXJUIl4QBSTJUZz • 7BSJPVT EJTDVTTJPOT TUBSUFEBSPVOE
JOBDBEFNJB • *NBHFQSPDFTTJOHJTPOFPGUIFIPU BQQMJDBUJPOT
"EWBOUBHFT • 4FMFDUJNQPSUBOUGFBUVSFTPGJOQVU • 8PSLXJUI FWFO TNBMMBNPVOUPGEBUB
5 %BNBHFEFUFDUJPOPGXBMMPGCVJMEJOH &YBNQMFPGJNBHFBOBMZTJT
#SJFGFYBNQMFPGGFBUVSFTFMFDUJPO
1PMZOPNJBM3FHSFTTJPO ! = −$%& + $ + Observational Noise
1PMZOPNJBM3FHSFTTJPO -JOFBS3FHSFTTJPO 0WFSGJUUJOH
1PMZOPNJBM3FHSFTTJPO $PFGGJDJFOUPGTJNQMFMJOFBSSFHSFTTJPO
1PMZOPNJBM3FHSFTTJPO -FBTUBCTPMVUFTISJOLBHFBOETFMFDUJPOPQFSBUPS -BTTP
1PMZOPNJBM3FHSFTTJPO $PFGGJDJFOUPG-"440
1PMZOPNJBM3FHSFTTJPO 0SUIPHPOBM.BUDIJOH1VSTVJU 0.1
1PMZOPNJBM3FHSFTTJPO $PFGGJDJFOUPG0.1
1PMZOPNJBM3FHSFTTJPO from sklearn.linear_model import LinearRegression, Lasso, OrthogonalMatchingPursuit from sklearn.preprocessing import
PolynomialFeatures from sklearn.pipeline import make_pipeline poly_preprocess = PolynomialFeatures(poly_dim, include_bias=False) # models linear = LinearRegression() lasso = Lasso(alpha=0.002, max_iter=500000, tol=0.000001) omp = OrthogonalMatchingPursuit(n_nonzero_coefs=5) def fit_and_predict(predictor): model = make_pipeline(poly_preprocess, predictor) model.fit(x.reshape(-1, 1), y) y_predicted = model.predict(x.reshape(-1, 1)) t_predicted = model.predict(t.reshape(-1, 1)) return y_predicted, t_predicted
1PMZOPNJBM3FHSFTTJPO • 4UBSUXJUIMFBTUTRVBSFNFUIPE min 1 2 & − () *
Z PVUQVU X XFJHIU Y JOQVU $PNQVUF X UPTBUJTGZBCPWF
1PMZOPNJBM3FHSFTTJPO • "EESFHVMBUJPOUFSNUPBWPJEPWFSGJUUJOH min 1 2 & − () *
+ , ( - 4VSQSFTT PWFSGJUUJOH CZ BEEJOH DPOTUSBJOU UP XFJHIUX -/PSN -BTTPɾ-/PSN3JEHF
1PMZOPNJBM3FHSFTTJPO • "QQSPBDIUP-/PSN0QUJNJ[BUJPO min 1 2 & − () *
+ , ( - 5IJT JTFTTFOUJBMMZDPNCJOBUJPOBMPQUJNJ[BUJPOQSPCMFN /1IBSE (SFFEZBMHPSJUINUPTPMWFJUMPDBMMZMJLF.BUDIJOH1VSTVJU *)5
4VNNBSZ • *OUSPEVDUJPOPG4QBSTF.PEFMJOHJO1ZUIPO • 4PNFJNQMFNFOUBUJPOJTBMSFBEZBWBJMBCMF JO/VN1Z PSTDJLJUMFBSO • +VQZUFS OPUFCPPLJTBWBJMBCMFCFMPX
• IUUQTHJUJPW/&O
-PDBM6TFS(SPVQJO,ZPUP IUUQTIBOOBSJQZUIPODPOOQBTTDPN SE 'SJEBZ FWFSZNPOUI