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

異常検知パッケージを作ってみたお話 / Create Python package for anomaly detection

Kon
June 29, 2018

異常検知パッケージを作ってみたお話 / Create Python package for anomaly detection

Kon

June 29, 2018
Tweet

More Decks by Kon

Other Decks in Programming

Transcript

  1. Yu Ohori (a.k.a. Kon) ML Researcher at NSSOL (2017-) •

    semi-supervised learning • anomaly detection PyCon JP Staff (2018-) @Y_oHr_N @Y-oHr-N 2
  2. 4 異常は大きく 3 種類に分けられる Chandola, V., et al., "Anomaly detection:

    A survey," ACM computing surveys, 41(3), 2009. point anomaly contextual anomaly collective anomaly
  3. 7 https://github.com/scikit-learn-contrib/project-template 利用サービス一覧 Travis CI Coveralls Read the Docs AppVeyor

    Code Climate Anaconda Cloud binder GitHub PyPI build push, pull request upload hook
  4. Travis CI Linux, macOS に対応した CI サービス push, pull request

    時に hook で起動 • テストに失敗すると通知 • Coveralls を起動 9
  5. AppVeyor Windows に対応した CI サービス push, pull request 時に hook

    で起動 • テスト,ビルドに失敗すると通知 10
  6. PyPI Python パッケージを管理するサービス $ python setup.py sdist bdist_wheel $ twine

    upload dist/* $ pip install <package> 14 https://packaging.python.org/tutorials/packaging-projects/
  7. Anaconda Cloud Python パッケージや環境の諸々を管理するサービス $ conda skelton pypi <package> $

    conda build <package> $ anaconda login $ anaconda upload \ > ~/miniconda/conda-bld/<platform>/kenchi-<version>-<pyversion>.tar.bz2 $ conda install -c <channel> <package> 15 https://conda.io/docs/user-guide/tutorials/build-pkgs-skeleton.html
  8. binder Git リポジトリから Jupyter サーバを構築するサービス https://mybinder.org/v2/gh/<org-name>/<repo-name>/<branch|tag|hash-name>?filepath=<path-to-file> • Project Jupyter が

    2016 年にリリース • 誰でも,いつでも,どこでも,環境を再現可能 • 内部で repo2docker を利用 16 Freeman J., and Osheroff, A., "Toward publishing reproducible computation with binder," eLife, 2016.