Comments (1)
而且里面有些地方我不太清楚是什么意思,比如
float(fre_ + 1) / (index_word_pre + word_num_allClass)
这里,难道这是计算tf-idf?但是tf-idf的公式好像不是这样的吧。- 这里最要是利用贝叶斯分类,但我看了2小时终于看到最后,发现在
getPofClass
函数里面用了一个math.log(float(p), 2)
计算p值,难道p值不是用P(B|A) = (P(A|B)P(B))/(P(A))
这个公式吗?math.log是计算什么的呢? - 我发现在
bayesclassifier.py
的nativeTest
里面似乎是有计算贝叶斯的,但被注释掉,而且在99行dir_path = os.path.join(os.path.dirname())
似乎漏了一个参数
from bayes_classifier.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bayes_classifier.