Code Monkey home page Code Monkey logo

dl_tricks's Introduction

dl_tricks

主要参考《深入理解 Tensorflow 架构设计与实现原理》这本书,实现 deep learning 中一些 tools 和 tricks.

batch normalization

原论文笔记参考:深度学习-Batch Normalization

这部分通过简单的三层神经网络,验证 bn 能保证激活值(也就是每一曾的线性输出)稳定在一个可靠的分布内,可以避免激活函数为 sigmoid 时,梯度陷入饱和区域的情况。这也允许我们在设置权重初始值时更随意一点,以及可以设置较大的学习率,从而加快训练速度。

py文件中 是 batch normalization 的实现,需要注意的是在训练阶段和测试阶段,其计算方式是不一样的。

  • 在训练阶段,使用batch mean 和 batch variance 进行归一化,并通过可学习参数 beta 和 gamma 进行 shift 和 scale.
  • 在测试阶段,使用训练阶段统计的滑动平均值和方差来代替总体均值和方差,并对测试阶段的数据集进行归一化。

model parameters

主要内容:

  • 模型参数的理解,存储节点,计算节点
  • 模型保存和恢复
  • 如何使用与训练模型,并进行 fine-tune

input_pipeline

主要内容:

  • tensorflow 流水线输入数据

dl_tricks's People

Contributors

panxiebit avatar

Stargazers

 avatar  avatar

Watchers

 avatar

dl_tricks's Issues

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.