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

Core MLのアップデートを3倍楽しむ方法 #wwdctokyo

shu223
June 22, 2020

Core MLのアップデートを3倍楽しむ方法 #wwdctokyo

shu223

June 22, 2020
Tweet

More Decks by shu223

Other Decks in Programming

Transcript

  1. ˚

  2. ˚

  3. ྫɿ NeuralNetwork.proto χϡʔϥϧωοτϫʔΫʹ͓͍ͯར༻ՄೳͳϨΠϠʔ͕͜͜Ͱ ఆٛ͞Ε͍ͯΔ ConvolutionLayerParams convolution = 100; PoolingLayerParams pooling

    = 120; ActivationParams activation = 130; InnerProductLayerParams innerProduct = 140; EmbeddingLayerParams embedding = 150; ... → ίϛοτཤྺ͔Β༰қʹʮ৽ͨʹ௥Ճ͞ΕͨϨΠϠʔ͸ͲΕ ͳͷ͔ʯΛ֬ೝͰ͖Δ
  4. ྫɿ Model.proto • Core MLϞσϧ࢓༷ͷϧʔτతͳprotoϑΝΠϧ • େ࿮ͱͯ͠Ͳ͏͍͏ػೳ͕௥Ճ͞Ε͔ͨ͸͜͜Ͱ͔ͭΊΔ message Model {

    int32 specificationVersion = 1; ModelDescription description = 2; bool isUpdatable = 10; oneof Type { // pipeline starts at 200 PipelineClassifier pipelineClassifier = 200; PipelineRegressor pipelineRegressor = 201; Pipeline pipeline = 202; // regressors start at 300 GLMRegressor glmRegressor = 300; ...
  5. Create ML΍Turi CreateͷΞοϓσʔτ΋ݟΔ • Create ML͸खܰʹϞσϧΛͭ͘ΕΔ͕ʮΦϞνϟʯͰ͸શ વͳ͍ • TensorFlow΍PyTorchͰ࡞੒ͨ͠ϞσϧΑΓ΋༏Ε͍ͯΔ఺ ͢Β͋Δ

    • खܰʹຊ֨తͳΧελϜϞσϧΛ࡞੒Ͱ͖ΔΑ͏ʹͳΔͷͩ ͔ΒɺʮԿ͕Ͱ͖Δ͔ʯ͙Β͍͸೺Ѳ͓͍ͯͨ͠ํ͕Α͍
  6. ·ͱΊ • Core MLͷ৽ػೳΛΩϟονΞοϓ͢Δʹ͸WWDCηογϣ ϯ΍Core MLϑϨʔϜϫʔΫͷAPIϦϑΝϨϯεͰ͸ෆे෼ • coremltoolsϦϙδτϦΛݟΑ͏ • Core

    MLϞσϧʢ.mlmodelʣ͸ϓϩτίϧόοϑΝϕʔε ͷΦʔϓϯͳϑΥʔϚοτɻͦͷఆٛ͸͢΂ͯ͜ͷϦϙδ τϦʹ͋Δɻ • αϯϓϧϑΥϧμ΋༗ӹ