简体   繁体   中英

bayesian networks and data science

I'm trying to build a bayesian.network using Pyagrum in python, now when it comes to importing data, I have a csv file, i tried to use it as a database for my BN, however this message keeps showing:

MissingVariableInDatabase: [pyAgrum] Missing variable name in database: Variable 'Mois' is missing

'Mois' is the title of thefirst varaible in my database.

it looks like in your BN, there is a variable "Mois" but not in your csv. Does it make sense? 在此处输入图像描述

(I tried to add this as a comments to the last answer but formatting is not easy in comment so I add it as a new answer)

You could try to create your learner without the bn


learner = gum.BNLearner('Donnees.csv')

and look at the foudn variables in the csv:

print(learner.names())

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM