Loading...
The University of Aizu, Aizu-Wakamatsu, Japan
+81-8048340999










                         

Synthetic transactional database generator

This page describes the process to generate a synthetic transactional database.

Example


#import the algorithm
from PAMI.extras.syntheticDataGenerator import transactionalDatabase as tdb

#specify the parameters
databaseSize = 100000
numberOfItems = 2000
averageLengthOfTransaction = 10

outputFileName = 'T10.txt'
seperator = '\t'

#initialize the algorithm
alg = tdb.transactionalDatabase(databaseSize, \
                        numberOfItems, \
                        averageLengthOfTransaction)

#execute the algorithm
alg.generate()

#save the generated data in a file
alg.save(outputFileName, seperator)