Git Product home page Git Product logo

Comments (1)

thouger avatar thouger commented on September 27, 2024

而且里面有些地方我不太清楚是什么意思,比如

  1. float(fre_ + 1) / (index_word_pre + word_num_allClass)这里,难道这是计算tf-idf?但是tf-idf的公式好像不是这样的吧。
  2. 这里最要是利用贝叶斯分类,但我看了2小时终于看到最后,发现在getPofClass函数里面用了一个math.log(float(p), 2)计算p值,难道p值不是用P(B|A) = (P(A|B)P(B))/(P(A))这个公式吗?math.log是计算什么的呢?
  3. 我发现在bayesclassifier.pynativeTest里面似乎是有计算贝叶斯的,但被注释掉,而且在99行dir_path = os.path.join(os.path.dirname())似乎漏了一个参数

from bayes_classifier.

Related Issues (1)

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.