Pydata2017 11-29

44
2017-09-29@ PyData Tokyo

Transcript of Pydata2017 11-29

Page 1: Pydata2017 11-29

2017-09-29@ PyData Tokyo

Page 2: Pydata2017 11-29

Yuta Kashino ( )

BakFoo, Inc. CEO Astro Physics /Observational Cosmology Zope / Python Realtime Data Platform for Enterprise Prototyping

Page 3: Pydata2017 11-29

arXiv

PyCon2015

Python

PyCon2016

PyCon2017 DNN PPL Edward @yutakashino

Yuta Kashino ( )

Page 4: Pydata2017 11-29
Page 5: Pydata2017 11-29

TensorFlow eager

Dynamic: Define By Run

Static: Define AND Run

Page 6: Pydata2017 11-29

TensorFlow eager

Dynamic: Define By Run

Page 7: Pydata2017 11-29

Page 8: Pydata2017 11-29

TensorFlow- API : tf.contrib

- : ecosystem(spark, hadoop, kubenates)

- : tfdbg, tensorboard

- : Feature Columns

- : OpenMPI+ , Horovod(uber)

- : Lite, Mobile

- : XLA

- : TPU

- : GCP

Page 9: Pydata2017 11-29

: DL-

-

-

-

- AI - Google, NVIDIA, Intel, AMD, Apple, Huwei, Baidu, MS, FB… - Graphcore, Groq, DeePhi, BitMain…

Page 10: Pydata2017 11-29

DL-

-

-

- …

-

-

- AI …

Page 11: Pydata2017 11-29

DL- TensorFlow

-

-

-

-

Page 12: Pydata2017 11-29
Page 13: Pydata2017 11-29

PyTorch - Torch 7 Chainer

-

- Adam Paszke - Sam Gross - Soumith Chintala 

- NYU FBAIR

- 2017 2 v0.1.6

Page 14: Pydata2017 11-29

PyTorch - 2017 2 v0.1.6

Google Trend

Page 15: Pydata2017 11-29

PyTorch - TF/Keras …

Google Trend

Page 16: Pydata2017 11-29
Page 17: Pydata2017 11-29
Page 18: Pydata2017 11-29

- GPU(CUDA)

- Define by Run:

- Pythonic + python

http://pytorch.org/tutorials/advanced/numpy_extensions_tutorial.html

Page 19: Pydata2017 11-29

autograd.Variable-

- data, grad (, grad_fn) - chainer Variable

- autograd.Variable Chainer fork

- backward()

data gradgrad_fn

Page 20: Pydata2017 11-29

autograd.Variable

data gradgrad_fn

x

data gradgrad_fn

y

data gradgrad_fn

z

Page 21: Pydata2017 11-29

autograd …- NLP DyNet 10

- Python addmm

- ATen

- v.0.3.0 autograd ATen

https://twitter.com/kchonyc/status/899832376955744257

https://github.com/zdevito/aten

https://goo.gl/Tujudr

Page 22: Pydata2017 11-29

https://github.com/ilkarman/DeepLearningFrameworks

Page 23: Pydata2017 11-29
Page 24: Pydata2017 11-29

NN- torcn.nn

chainer.Chain

chainer.links

chainer.functions

chainer

Page 25: Pydata2017 11-29

chainer.ChainList

Page 26: Pydata2017 11-29

GPU- CPU → GPU: Variable cuda()

- GPU → CPU: cpu()

chainer

Page 27: Pydata2017 11-29

Chainer- Chainer

- GPU Chainer

- Chainer

- torch.optim = chainer.optimizers - …

- pytorch/tnt = chainer.training

- Pythonic …

https://github.com/pytorch/tnt

Page 28: Pydata2017 11-29

Chainer

Page 29: Pydata2017 11-29
Page 30: Pydata2017 11-29

- PyTorch

- PyTorch

- Awesome-Pytorch-list, The Incredible PyTorchhttps://github.com/bharathgs/Awesome-pytorch-list https://github.com/ritchieng/the-incredible-pytorch

Page 31: Pydata2017 11-29

-

- …

→ PyTorch

-

Page 32: Pydata2017 11-29

Capsule Nets- Hinton CapculeNets 2017 10 26

- 10 29 TensorFlow/Keras/PyTorchhttps://github.com/timomernick/pytorch-capsule https://github.com/gram-ai/capsule-networks

https://arxiv.org/abs/1710.09829

https://github.com/naturomics/CapsNet-Tensorflow https://github.com/XifengGuo/CapsNet-Keras

Page 33: Pydata2017 11-29

/-

- CNN/RNN: torch.nn, torchvision.models - GAN

-

https://github.com/Cadene/pretrained-models.pytorch

https://github.com/szagoruyko/functional-zoo

https://github.com/wiseodd/generative-modelshttps://github.com/znxlwm/pytorch-generative-model-collections

https://github.com/aaron-xichen/pytorch-playground

https://github.com/sdhnshu/pytorch-model-zoo

Page 34: Pydata2017 11-29

DAG- PyTorch DAG

- pyro

- gpytorch

- CUDA FFT pytorch_fft

- sequence-to-sequence fairseq-py

https://github.com/uber/pyro

https://github.com/jrg365/gpytorch

https://github.com/locuslab/pytorch_fft

https://github.com/facebookresearch/fairseq-py

Page 35: Pydata2017 11-29

-

- StackOverFlowhttp://pytorch.org/tutorials/

https://discuss.pytorch.org/latest

Page 36: Pydata2017 11-29

- PyTorchZeroToAll - Practical Deep Learning with PyTorch on Udemy - fast.ai

https://www.udemy.com/practical-deep-learning-with-pytorch

http://www.fast.ai/2017/09/08/introducing-pytorch-for-fastai/

https://goo.gl/kt3uV2

Page 37: Pydata2017 11-29

- conda

Page 38: Pydata2017 11-29
Page 39: Pydata2017 11-29

DL

Page 41: Pydata2017 11-29

BakFoo, Inc.NHK NMAPS: +

Page 42: Pydata2017 11-29

BakFoo, Inc.PyConJP 2015

Python

Page 44: Pydata2017 11-29

BakFoo, Inc.: SNS +