Implementing NavieBayes in C# [closed]

和自甴很熟 提交于 2019-12-13 10:25:59

问题


Just wondering can I implement NavieBayes algorithm in C#? I just want to calculate the precision, TP-rate, FP-rate etc using Navie Bayes algorithm in C#.

I just calculate mean and standard deviation for my dataset using SQL logic

SELECT state, AVG([v2o] * 1.0) FROM portability WHERE state = 'Queensland' GROUP BY state

and

SELECT state, STDEV([v2o] * 1.0) FROM portability WHERE state = 'Queensland' GROUP BY state

Can anyone tell me how can I implement Navie Bayes algorithm.

For instance lets consider the below dataset as example

Can anyone tell me the logic to implement Navie Bayes for the above dataset?


回答1:


Check the Accord.net library. It has an implementation of the Naive Bayes algorithm that you can use.



来源:https://stackoverflow.com/questions/15132205/implementing-naviebayes-in-c-sharp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!