Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ペパボにおける研究所の役割 - 研究と開発の相乗効果 - / Think about rese...

ペパボにおける研究所の役割 - 研究と開発の相乗効果 - / Think about research and development

2018.01.19 香川大学 SLP

monochromegane

January 18, 2018
Tweet

More Decks by monochromegane

Other Decks in Technology

Transcript

  1. ݚڀͱ։ൃͷ૬৐ޮՌ ࡾ୐ ༔հ / Pepabo R&D Institute, GMO Pepabo, Inc.

    2018.01.19 ߳઒େֶ SLP ϖύϘʹ͓͚Δݚڀॴͷ໾ׂ
  2. 4 Activity ♕ 3 GitHub Awards Go ranking in Japan

    :) http://git-awards.com/users?country=japan&language=go
  3. • m࣍ݩͷϕΫτϧxΛn࣍ݩͷϕΫτϧy΁ࣸ૾͢Δؔ਺fΛਪఆ͢Δֶशख๏ 22 χϡʔϥϧωοτϫʔΫ: Ϟσϧ x1 x2 xm b W

    y1 y2 yn 1 2 o1 = σ( m ∑ i=0 w1i xi + b1 ) h 3 o = σ (Wx + b) w11 w12 . . w1m w21 w22 . . w2m . . wh1 wh2 . . whm x1 x2 . . xm + b1 b2 . . bh x f y h wh1 wh2 x1 x2 ೖྗ͝ͱʹॏΈXΛ৐ࢉ όΠΞε ͨ͠΋ͷΛ׆ੑԽؔ਺ʹ௨͢ શϊʔυʹର͢Δॲཧ͸ߦྻͱͯ͠ૢ࡞Ͱ͖Δ
  4. 23 χϡʔϥϧωοτϫʔΫ: ֶश x1 x2 xm y1 y2 yn x

    f y • m࣍ݩͷϕΫτϧxΛn࣍ݩͷϕΫτϧy΁ࣸ૾͢Δؔ਺fΛਪఆ͢Δֶशख๏ t tn t2 t1 W(1) W(2) b(1) b(2) ✓(i+1) = ✓(i) ↵rEk E = 1 2 X n (yn tn)2 E = X n tn ln yn rEk = ( @Ek @✓1 , .. @Ek @✓V ) ग़ྗͱਖ਼ղͷޡࠩΛද͢ଛࣦؔ਺Λఆٛ͢Δɻ ೋ৐࿨ޡࠩʢࠨʣɺަࠩΤϯτϩϐʔޡࠩʢӈʣ ଛࣦؔ਺ʹର͢Δ֤ύϥϝλͷภඍ෼ͷ஋ͷू·Γʢޯ഑ʣΛ༻ ͍ͯଛࣦؔ਺ͷ஋͕খ͘͞ͳΔΑ͏ʹύϥϝλΛߋ৽͢Δ͜ͱΛ ޯ഑߱Լ๏ͱݺͿɻಛʹҰ෦ͷ݁ՌͷΈΛར༻͢Δ֬཰తޯ഑߱ Լ๏͕Α͘༻͍ΒΕΔɻ Αͬͯޯ഑͕ফ͑ͳ͍Α͏ͳͳΊΒ͔ͳ׆ੑԽؔ਺͕޷·ΕΔɻ ·ͨɺ֤ύϥϝλͷภඍ෼ΛݸผʹٻΊΔͷͰ͸ͳ͘ɺχϡʔϥ ϧωοτϫʔΫΛදؔ͢਺GΛ߹੒ؔ਺ͱݟཱͯΔ͜ͱͰɺ্ྲྀ ͷޡࠩͱࣗ਎ͷೖྗ஋ͷΈΛ࢖ͬͯܭࢉྔΛ཈͑ͳ͕Βޮ཰తʹ ޯ഑ΛٻΊΔख๏Λޡࠩٯ఻೻๏ͱݺͿɻ
  5. ৞ΈࠐΈχϡʔϥϧωοτϫʔΫ 25        

                      ੵ࿨ԋࢉ ৞ΈࠐΈ                  ࠷େ஋ ೖྗσʔλʹରͯ͠ੵ࿨ԋࢉΛߦ͏ϑΟϧλΛద༻͠ɺ ಛ௃Ϛοϓͱͯ͠ग़ྗ͢Δɻۭؒ৘ใΛߟྀͰ͖Δɻ ࠷దͳϑΟϧλͷॏΈ͸ֶशʹΑͬͯ֫ಘ͢Δɻ • ۭؒత৘ใΛߟྀͨ͠χϡʔϥϧωοτϫʔΫ ϓʔϦϯά ೖྗσʔλʹରۭͯؒ͠ͷू໿Λߦ͏ϑΟϧλΛద༻ ͢Δɻ࠷େ஋΍ฏۉ஋Λར༻͢ΔͷͰֶश͕ෆཁɻ ࡉ͔ͳҐஔมԽʹର͢Δؤڧੑʹߩݙ͢Δɻ ಛ௃நग़ث ࣝผث
  6. 26

  7. ಛ௃ྔม׵ 28 Service Object Storage GCP image to data data

    to feature vectorizer by Inception-v3 Annoy Workers • ͋Δ࣌఺·Ͱͷ࡞඼ը૾ҰཡΛಛ௃ྔʹม׵͢Δ • ม׵ͨ͠ಛ௃ྔҰཡΛۙࣅۙ๣୳ࡧσʔλϕʔεʹ౤ೖ͢Δ
  8. • ۙࣅۙ๣୳ࡧσʔλϕʔεΛmruby-annoy + ngx_mrubyʹͯAPIԽ • ࡞඼ৄࡉʹྨࣅը૾Λ༻͍ͨؔ࿈࡞඼Λදࣔ͢Δ 29 ྨࣅը૾ݕࡧ Nyah mruby-annoy

    on ngx_mruby products#show product_id nearest products CTR Analytics NNS ˞ۙࣅۙ๣୳ࡧ࣌ʹେ෦෼ͷΠϯσο Ϋε΁ͷΞΫηε͕ൃੜ͢ΔͨΊ࣮༻ తͳ଎౓ΛಘΔͨΊʹ͸σʔλϕʔε ϑΝΠϧ͕શͯϖʔδΩϟογϡʹࡌ ΔαΠζͷϝϞϦ͕ඞཁ
  9. ΫϦοΫ཰ͱίϯόʔδϣϯ཰ 32 طଘ ఏҊ $53   $73  

    ˞ఏҊख๏ʹΑΔબఆ͕ߦ͑ͳ͍৔߹ʹαʔϏεͷ ػձଛࣦΛආ͚ΔͨΊطଘख๏ʹΑΔબఆΛߦͬͯ ͍ΔͨΊݕূظؒதͷ֤ख๏ͷදׂࣔ߹͸طଘ ɺఏҊͰ͋ͬͨ ˞ίϯόʔδϣϯ཰͸ΫϦοΫ਺ʹର͢Δߪೖ਺͔ ΒٻΊͨ طଘ ఏҊ ૉࡐɾࡐྉγΣϧ   ૉࡐɾࡐྉϦϘϯɾςʔϓ   ૉࡐɾࡐྉϘλϯ   ͵͍͙ΔΈɾਓܗ͋Έ͙ΔΈ   χοτɾฤΈ෺ηʔλʔɾΧʔσΟΨϯ   ఏҊख๏͕༗ޮͰ͋ͬͨΧςΰϦ
  10. ݚڀใࠂΠϯλʔωοτͱӡ༻ٕज़ʢIOTʣ 33 ࡾ୐ ༔հ, দຊ ྄հ, ྗ෢ ݈࣍, ܀ྛ ݈ଠ࿠,

    ಛ௃நग़ثͷֶ शͱߪങཤྺΛඞཁͱ͠ͳ͍ྨࣅը૾ʹΑΔؔ࿈঎඼ݕࡧγ εςϜ, ݚڀใࠂΠϯλʔωοτͱӡ༻ٕज़ʢIOTʣ, Vol.2017-IOT-37(4), pp.1-8, May 2017 http://id.nii.ac.jp/1001/00178892/
  11. Gannoy Approximate nearest neighbor search server and dynamic index written

    in Golang. https://github.com/monochromegane/gannoy
  12. GannoyʹΑΔಈతΠϯσοΫεߋ৽+ྨࣅը૾ݕࡧ 36 Features Similar items Gannoy [2048]float64 query by http

    find similar features mapping similar features to items response Deep CNN index Features [2048]float64 Deep CNN register by http
  13. ࠶ؼܕχϡʔϥϧωοτϫʔΫ 43 • ܥྻ৘ใΛѻ͏χϡʔϥϧωοτϫʔΫ f W(1) W(2) W x1 x2

    xt y1 y2 yt z z1 z2 zt x y zt 1 zt xt ҎલͷೖྗʹӨڹΛड͚ΔΑ͏ͳॱংʹҙຯ͕͋Δܥྻσʔλ ΛऔΓѻ͏ͨΊɺதؒ૚ͷग़ྗΛࣗ਎ʹ໭͢ɻಈతʹ૚਺͕ม ΘΔωοτϫʔΫͱଊ͑ΒΕΔɻ ๨٫ήʔτ ग़ྗήʔτ ೖྗήʔτ ૚਺ͷਂ͍ωοτϫʔΫͱͯ͠ల։͞ ΕΔܥྻσʔλΛѻ͏ͨΊɺ3//ͷ ϊʔυΛϝϞϦϢχοτʹஔ͖׵͑ͨ -45.͕ఏҊ͞Εͨɻ ೖग़ྗήʔτʹΑΓબ୒తʹσʔλΛ ௨աɺ๨٫ήʔτʹΑΓෆཁͳ৘ใΛ Ϧηοτ͢Δ͜ͱͰঢ়گมԽΛଊ͑ͳ ͕Β௕ظґଘͷܥྻσʔλΛѻ͑Δɻ
  14. 49 ܭըతΦʔτεέʔϦϯάͷධՁ ΞΫηεස౓ͷਪҠ ೔͋ͨΓΞΫηεස౓ͷඪ४ภࠩ͸"܈ ը ૾্ Ͱ໿͔Β໿ʹɺ#܈ ը ૾Լ Ͱ͸໿͔Β໿ʹมԽɻ

    ख๏ద༻ޙʹεϧʔϓοτ͕҆ఆ͍ͯ͠Δ ͜ͱ͕Θ͔Δɻ ˞"܈ͷ૿Ճ͸Լݶ୆਺ӡ༻ͱͳͬͨ࣌ؒଳ ͷ୆͋ͨΓͷεϧʔϓοτ஋૿ՃʹΑΔ΋ ͷͱߟ͑ΒΕΔ
  15. ݚڀใࠂΠϯλʔωοτͱӡ༻ٕज़ʢIOTʣ 50 ࡾ୐ ༔հ, দຊ ྄հ, ྗ෢ ݈࣍, ܀ྛ ݈ଠ࿠,

    ΞΫηεස౓༧ ଌʹجͮ͘Ծ૝αʔόͷܭըతΦʔτεέʔϦϯά, ݚڀใࠂ Πϯλʔωοτͱӡ༻ٕज़ʢIOTʣ, Vol.2017-IOT-38(13), pp.1-8, June 2017 http://id.nii.ac.jp/1001/00182375/
  16. 1. ೖग़ྗ͕Cloud Storageܦ༝ 2. ܇࿅ϓϩάϥϜͱͯ͠TensorFlowΛ࠾༻ 3. ΦϯϥΠϯ༧ଌαʔϏεʹΑΓϞσϧͷAPIԽ 1. ֶश݁Ռ͸Cloud StorageʹอଘɺϩʔΧϧͰͷར༻΋

    4. ෼ࢄܕͷτϨʔχϯάΠϯϑϥͱෛՙ෼ࢄαʔϏεͱͷ࿈ܞ 55 Google Cloud ML EngineͰߟ͑Δ ※ ݕ౼ʹؔ͢Δৄࡉ: 
 http://rand.pepabo.com/article/2017/01/18/pepabo-ml-platform-and-workflow/
  17. StarChart StarChart is a tool to manage Google Cloud Machine

    Learning training programs and model versions https://github.com/monochromegane/starchart
  18. ϩάج൫ 59 IDFA/GAID UID rack-bigfoot Service Request Activity log Services

    DB Attribute Big Cube Cube https://icons8.com BI Recommendation Bandit algorithm Re-marketing Feedback Name identification Cookie Sync
  19. • ৘ใ୳ࡧϓϩηε͸γεςϜଆͷ ٕज़ৄࡉ͚ͩͰ͸ͳ͘ɺ͜ͷϓϩ ηεΛۦಈ͢ΔओମͰ͋Δར༻ऀ ͕ଘࡏ͢Δ • ར༻ऀαΠυΛத৺ͱͨ͠৘ใ୳ ࡧϓϩηεϞσϧͷઌߦݚڀʹΑ Γɺ৘ใཁٻ͸ɺ༷ʑͳจ຺ʹΑ ΓมԽ͍ͯ͘͜͠ͱ͕Θ͔͍ͬͯ

    Δ 68 ͳΊΒ͔ͳϚονϯάʹ޲͚ͯ ৘ใཁٻΛऔΓרٕ͘ज़ͱϓϩηεϞσϧؔ࿈ਤ จ຺ʹΑΓ࠷దͳԠ౴͕มԽ͢ΔͷͰ͋Ε͹ɺ ٕज़ؒͰͷ༏ҐੑධՁͰ͸ͳ͘ɺ ঢ়گʹԠͨ͡બ୒͕ྑ͍ͷͰ͸ͳ͍͔
  20. • ϖύϘݚڀॴ • http://rand.pepabo.com/ • ಛ௃நग़ثͷֶशͱߪങཤྺΛඞཁͱ͠ͳ͍ྨࣅը૾ʹΑΔؔ࿈঎඼ݕࡧγεςϜ • http://rand.pepabo.com/article/2017/06/19/iot37-miyakey/ • ΞΫηεස౓༧ଌʹجͮ͘Ծ૝αʔόͷܭըతΦʔτεέʔϦϯά

    • http://rand.pepabo.com/article/2017/06/28/iot38-miyakey/ • αʔϏεʹدΓఴ͏ϩάج൫ • https://speakerdeck.com/monochromegane/pepabo-log-infrastructure-bigfoot • Google Cloud ML Λ༻͍ͨػցֶशج൫ͷߏஙͱӡ༻ • https://speakerdeck.com/monochromegane/pepabo-ml-infrastructure-starchart 73 ࢀߟ