Code Monkey home page Code Monkey logo

machinelearning_zhouzhihua_problemsets's People

Contributors

hanmq avatar nocater avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

machinelearning_zhouzhihua_problemsets's Issues

机器学习5.5代码问题

您好,想问问BpNeuralNetwork.py里卖弄104行的计算公式da_last = -(y_ / a_last - (1 - y_) / (1 - a_last))是在算什么呢,因为我看了后面代码里面sigmoid反向传播有用到,应该是对应书本公式5.10中y真实值和预测值的差

5.5问题

line 63, in sigmoid
a = 1 / (1 + np.exp(-z))
^^^^^^^^^^
TypeError: loop of ufunc does not support argument 0 of type float which has no callable exp method

7.3代码错误

不知道是否为版本问题,7.3中的39、40行代码需要改成下面这样才能运行:

# 计算正样本中,该属性每个取值的数量,并且加1,即拉普拉斯平滑
xi1_value_count = pd.value_counts(xi1).reindex(unique_value, fill_value=0) + 1
# 计算反样本中,该属性每个取值的数量,并且加1,即拉普拉斯平滑
xi0_value_count = pd.value_counts(xi0).reindex(unique_value, fill_value=0) + 1

附上我的pandas版本:2.0.3

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.