在C#中实现NavieBayes [英] Implementing NavieBayes in C#

查看:69
本文介绍了在C#中实现NavieBayes的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想知道我能否在C#中实现NavieBayes算法?我只想使用C#中的Navie Bayes算法来计算精度,TP速率,FP速率等。

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#.

我只是使用SQL计算数据集的均值和标准差逻辑

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

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

有人可以告诉我如何实现Navie Bayes算法。

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

例如,让我们以下面的数据集为例

For instance lets consider the below dataset as example

任何人都可以告诉我为上述数据集实施Navie Bayes的逻辑吗?

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

推荐答案

检查 Accord.net 库。它具有您可以使用的朴素贝叶斯算法的实现。

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

这篇关于在C#中实现NavieBayes的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆