bayesian-networks

Is there a java alternative to the Bayesian Belief Network Framework “Infer.NET”?

不想你离开。 提交于 2019-12-05 10:08:55
Is the are java alternative to Bayesian Belief Network framework - Infer.NET? Preferable if it be scalable(online learning for large datasets), well-supported(last updated since 2010) and open source and easy to write network structure. So all features from Infer.NET. Listing here two Bayesian Network Classifiers projects that I am aware of: CI Bayes - active, last release is 2.0, released on 6th of Oct 2010 and available from their Maven2 repository jBNC - inactive for several years, listing it here just for completeness sake. I'm not sure how they compare to Infer.NET, so you better make

Simple example/use-case for a BNT gaussian_CPD?

做~自己de王妃 提交于 2019-12-05 07:20:51
问题 I am attempting to implement a Naive Bayes classifier using BNT and MATLAB. So far I have been sticking with simple tabular_CPD variables and "guesstimating" probabilities for the variables. My prototype net so far consists of the following: DAG = false(5); DAG(1, 2:5) = true; bnet = mk_bnet(DAG, [2 3 4 3 3]); bnet.CPD{1} = tabular_CPD(bnet, 1, [.5 .5]); bnet.CPD{2} = tabular_CPD(bnet, 2, [.1 .345 .45 .355 .45 .3]); bnet.CPD{3} = tabular_CPD(bnet, 3, [.2 .02 .59 .2 .2 .39 .01 .39]); bnet.CPD

pymc warning: value is neither numerical nor array with floating-point dtype

戏子无情 提交于 2019-12-05 04:07:41
I have a Bayes net (DAG) model which I created using pymc 2.3. All the variables in it are Bernoulli random variables. When I call the MAP.fit() method on it before sampling I get the following warning for all of my random variables: value is neither numerical nor array with floating-point dtype. Recommend fitting method fmin (default) From the github repo of pymc, it seems that this warning is printed if the underlying type of the stochastic variable is not a float. For Bernoulli RV the type is (and should be) bool. Does this mean that the MAP step will have unstable results? 来源: https:/

bnlearn + Rgraphviz: double arrows instead of undirected edges when customizing plots

爷,独闯天下 提交于 2019-12-04 16:48:44
I am trying to customize a plot of a graph learned with bnlearn using RGraphviz . When I have undirected edges, RGraphviz turns them into directed edges to both directions when I try to customize the appearance of the graph. A reproducible example could be: set.seed(1) x1 = rnorm(50, 0, 1) x2 = rnorm(50, 0, 1) x3 = x2 + rnorm(50, 0, 1) x4 = -2*x1 + x3 + rnorm(50, 0, 1) graph = data.frame(x1, x2, x3, x4) library(bnlearn) library(Rgraphviz) res = gs(graph) options(repr.plot.width=3, repr.plot.height=3) g1 <- graphviz.plot(res) Graph not customized: So far so good. But if I try to customize it:

Implement Bayes Net

橙三吉。 提交于 2019-12-04 06:52:43
Is there any c or java example implementing Bayesian Net ? I want to solve some things but Do not where to start?. I have been using JavaBayes with great success for my master thesis final project. Check it out under http://www.cs.cmu.edu/~javabayes/ It has a great set of examples, very decent documentation, a graphical designer and very useful API. I remember I did a little research regarding available Bayesian Networks implementations in Java and I was pleasantly surprised when I found this library. I can strongly recommend it. Use Weka . It not only implements Bayes Nets, but also a lot of

Bayesian spam filtering library for Python

夙愿已清 提交于 2019-12-03 02:02:13
问题 I am looking for a Python library which does Bayesian Spam Filtering. I looked at SpamBayes and OpenBayes, but both seem to be unmaintained (I might be wrong). Can anyone suggest a good Python (or Clojure, Common Lisp, even Ruby) library which implements Bayesian Spam Filtering? Thanks in advance. Clarification : I am actually looking for a Bayesian Spam Classifier and not necessarily a spam filter. I just want to train it using some data and later tell me whether some given data is spam.

Decision tree vs. Naive Bayes classifier [closed]

淺唱寂寞╮ 提交于 2019-12-03 01:34:24
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am doing some research about different data mining techniques and came across something that I could not figure out. If any one have any idea that would be great. In which cases is it better to use a Decision tree and other cases a Naive Bayes classifier? Why use one of them in certain cases? And the other in

Create Bayesian Network and learn parameters with Python3.x

一个人想着一个人 提交于 2019-12-03 01:23:32
问题 I'm searching for the most appropriate tool for python3.x on Windows to create a Bayesian Network, learn its parameters from data and perform the inference. The network structure I want to define myself as follows: It is taken from this paper. All the variables are discrete (and can take only 2 possible states) except "Size" and "GraspPose", which are continuous and should be modeled as Mixture of Gaussians. Authors use Expectation-Maximization algorithm to learn the parameters for

Bayesian spam filtering library for Python

青春壹個敷衍的年華 提交于 2019-12-02 15:38:59
I am looking for a Python library which does Bayesian Spam Filtering. I looked at SpamBayes and OpenBayes, but both seem to be unmaintained (I might be wrong). Can anyone suggest a good Python (or Clojure, Common Lisp, even Ruby) library which implements Bayesian Spam Filtering? Thanks in advance. Clarification : I am actually looking for a Bayesian Spam Classifier and not necessarily a spam filter. I just want to train it using some data and later tell me whether some given data is spam. Sorry for any confusion. Do you want spam filtering or Bayesian classification? For Bayesian

Create Bayesian Network and learn parameters with Python3.x

北战南征 提交于 2019-12-02 14:42:58
I'm searching for the most appropriate tool for python3.x on Windows to create a Bayesian Network, learn its parameters from data and perform the inference. The network structure I want to define myself as follows: It is taken from this paper. All the variables are discrete (and can take only 2 possible states) except "Size" and "GraspPose", which are continuous and should be modeled as Mixture of Gaussians. Authors use Expectation-Maximization algorithm to learn the parameters for conditional probability tables and Junction-Tree algorithm to compute the exact inference. As I understand all is