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










                         

Synthetic temporal database generator

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

Example

#import the algorithm
from PAMI.extras.syntheticDataGenerator import temporalDatabase as tempdb #specify the parameters databaseSize = 100000 numberOfItems = 2000 averageLengthOfTransaction = 10 probabilityToMissNextTimestamp = 0 # 0 (or 0%) - regular temporal database with uniform time gap between the transactions # <1 (or <100%) - irregular temporal database with non-uniform time gaps between the transactions probabilityOfRecurrenceOfTimestampInNextTransaction = 20 # 0 (or 0%) - every transaction will have a different timestamp # 1 (or 100%) - every transaction will have the same timestamp #initialize the algorithm alg = tempdb.temporalDatabase(databaseSize, numberOfItems, \ averageLengthOfTransaction, \ probabilityToMissNextTimestamp,\ probabilityToMissNextTimestamp) #execute the algorithm alg.generate() #save the generated data in a file alg.save(fileName)