Generation of database

class pyAgrum.BNDatabaseGenerator(bn: pyAgrum.BayesNet)

BNDatabaseGenerator is used to easily generate databases from a gum.BayesNet.

BNDatabaseGenerator(bn) -> BNDatabaseGenerator
Parameters:
  • bn (gum.BayesNet) – the Bayesian network used to generate data.
database(BNDatabaseGenerator self)
drawSamples(BNDatabaseGenerator self, int nbSamples)
log2likelihood(BNDatabaseGenerator self)
setAntiTopologicalVarOrder(BNDatabaseGenerator self)
setRandomVarOrder(BNDatabaseGenerator self)
setTopologicalVarOrder(BNDatabaseGenerator self)
setVarOrder(BNDatabaseGenerator self, vector< int, allocator< int > > varOrder)

setVarOrder(BNDatabaseGenerator self, Vector_string varOrder)

setVarOrderFromCSV(BNDatabaseGenerator self, str csvFileURL, str csvSeparator=", ")
toCSV(BNDatabaseGenerator self, str csvFileURL, bool useLabels=True, bool append=False, str csvSeparator=", ", bool checkOnAppend=False)
toDatabaseTable(BNDatabaseGenerator self, bool useLabels=True)
varOrder(BNDatabaseGenerator self)
varOrderNames(BNDatabaseGenerator self)