426 questions
Tooling
2
votes
0
replies
52
views
What are a good books to read in Bayesian Learning
Seems like Bayesian learning is the go to method now for reducing over fitting in ML models, I've read Manning's NLP in action, Deep Learning with python, O'Reilly Deep Learning foundations, Hands on ...
Advice
0
votes
0
replies
28
views
What's the default parameter learning algorithm used by PyAgrum's BNLearner?
I'm trying to figure out the default parameter learning algorithm used by PyAgrum's pyagrum.BNLearner class. After going through the documentation, the International Conference on Probabilistic ...
3
votes
1
answer
59
views
Getting pyAgrum error: 'Object not found: label 'x' is unknown
I am trying to train a Bayesian Network or a Naive Bayes Classifier using pyAgrum, but I keep on getting the following type of error:
[pyAgrum] Object not found: label '17' is unknown in ...
1
vote
0
answers
61
views
How to get rid of NaN result when using setEvidence function in gRain package when doing Bayesian modeling?
For context, I am conducting hazard modelling, examining the flow of impacts from node to node within a network using Bayesian network analysis. I have a simplified network diagram dag below which I ...
0
votes
1
answer
238
views
tuple has no attribute "rank" error when trying to build bayesian neural net
I'm trying to build a BNN but am encountering the error in the title. I tried to ensure I'm not passing a tuple to .shape.rank by :
using the functional API with explicit Input (should make first ...
0
votes
0
answers
46
views
Dimension Error found in bnlearn package application [duplicate]
This question has been asked before see here but not adequately answered.
Here's my code
library(bnlearn)
cpt_A <- matrix(c(0.8, 0.2), ncol = 2,
dimnames = list(NULL, c("...
0
votes
0
answers
130
views
Error when using pyAgrum for Bayesian networks analysis
I am using pyAgrum for Bayesian networks analysis, the error message I am receiving is due to the fact that when I am splitting my data with a test size of 0.2, there are some combinations of my ...
2
votes
1
answer
126
views
Blacklist in bnlearn not respected by constraint-based structure learning algorithms
I am using the bnlearn package in R to learn a Bayesian network using constraint-based structure learning algorithms (I tried gs and pc.stable).
I am trying to apply a blacklist to restrict certain ...
1
vote
4
answers
241
views
Model definition in Keras tutorial "Probabilistic Bayesian Neural Networks" leads to error "AttributeError: 'tuple' object has no attribute 'rank'"
I am trying to run the keras-tutorial Probabilistic Bayesian Neural Networks to get an understanding of Bayesian neural networks (BNN). The tutorial contains a google-colab notebook, so you can run it ...
0
votes
1
answer
81
views
BayesianModelSampling (pgmpy) - IndexError: too many indices for array: array is 1-dimensional, but 3 were indexed
I need to learn a Bayesian network and sampling a bunch of synthetic data from it.
I simulated a dataframe from it and learned a network.
However, why is this snippet of code retriving an error?
Here ...
0
votes
1
answer
93
views
Python implementation for Price Model - scale-free network growth model for directed graphs
I'm trying to create a scale-free network growing model in networkx in Python. Plenty of resources exist on Github for the Barabassi-Albert Model, but my graph needs to be directed and BA is designed ...
0
votes
0
answers
84
views
ValueError: Layer 'functional_45' expected 3 input(s). Received 1 instead. Trouble with passing validation dataset
I am new to Tensorflow and kKeras and I am trying to create a neural network as mentioned in the keras website.
I am trying to create a baseline model with a dataset of my own.
The codes are exactly ...
1
vote
1
answer
754
views
pomegranate all module is not defined
I'm using pomegranate in python, but the module is not working
All methods of pomegranate are not defined
from pomegranate import *
# Define the distributions for each node
guest = ...
1
vote
1
answer
155
views
Relu and sigmoid activation function with tfp.layers.DenseVariational Bayesian Neural Net
I am trying to set up a Bayesian Neural Network which is implemented with a statistical layer, tfp.layers.DenseVariational.
I was about to test various activation functions. From my data, tanh or relu ...
1
vote
0
answers
79
views
model.evaluate() loss metric calculation in Bayesian Neural Net
I am currently trying to set up a Bayesian Neural Net. Hereby, I came across a strange thing.
When compiling my model with the metric keras.metrics.RootMeanSquaredError() and then letting model....