Giter Club home page Giter Club logo

big_data's Introduction

通用技巧

1. 过拟合

2. 不平衡数据

3. 优化器


过拟合

解决方法:

  1. 增加数据量
  2. 对W进行L1,L2正则
  3. 对于tree来说可以限制树的深度、leaf number、可以生成完完整的树以后进行trim;
    对于神经网络可以加dropout(input 0.8,hidden 0.5)

不平衡数据

解决方法:

  1. 尝试获取更多的数据(有时候只是因为前段时期的数据多半呈现的是一种趋势, 等到后半时期趋势又不一样了)
  2. 更换评判方式(不用accuracy和cost,用P&R即通过confusion matrix来计算precision和recall,然后通过precision和recall再计算f1分数)
  3. 重组数据(欠采样或过采样)
  4. 使用其他机器学习方法(比如不用神经网络,用决策树)
  5. 修改算法

优化器

  • SGD
  • Momentum
  • RMSprop
  • Adam

首先了解一下这四种优化器的原理,优缺点
SGD虽然能达到极小值,但是比其他算法用的时间长,而且可能会被困在鞍点;
如果数据是稀疏的,就用自适应(学习率)方法,即Adagrad, Adadelta, RMSprop, Adam; Adam就是在RMSprop的基础上加了bias-correction和momentum;随着梯度变的稀疏,Adam比RMSprop效果会好; 整理来讲,Adam是最好的选择!

big_data's People

Contributors

binzhouchn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

awesome-archive

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.