Code Monkey home page Code Monkey logo

tensorflow-design-pattern's Introduction

tensorflow-design-pattern

TensorFlow(tf.keras API)の実装デザインパターン.
機械学習の実験における主要な要素を独立性高く、拡張しやすいように整理しています.

ディレクトリ構成

$ tree -L 3
.
├── example         # 論文実装の例
│   ├── bct
│   └── simclr
├── src             # 機械学習における,コンポーネントごとに分割して実装
│   ├── data.py       # 前処理、DAなど
│   ├── losses.py     # 損失関数
│   └── models.py     # モデル, トレーニング手法
├── utils           # 汎用的に使う便利関数の置き場
└── main.py

個人的に、論文の手法を取り込んだり、カスタマイズしたくなるのは以下の部分が多い印象。

  • データ前処理
  • データオーグメンテーション
  • 損失関数
    • 何らか目的に応じて正則化したりなど、最も論文実装で多い場所
  • トレーニングステップ
    • GANや、Constrastive Learningみたいな、特殊な学習手法を実装する場所

TensorFlow(v2)は元来、意識して実装することでこれらを依存関係なく実装可能。
本リポジトリではさらに汎用・共通化できる部分はして、同じ枠組みにのりつつ、取り入れたい手法の部分だけに注目して変更を加えやすいようにしている。

tensorflow-design-pattern's People

Contributors

tonouchi510 avatar

Stargazers

shibuiwilliam avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.