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