ca.pfv.spmf.tools.dataset_generator
Class TransactionDatasetUtilityGenerator
- java.lang.Object
-
- ca.pfv.spmf.tools.dataset_generator.TransactionDatasetUtilityGenerator
-
public class TransactionDatasetUtilityGenerator extends java.lang.ObjectConvert a transaction database to a transaction database with utility values from the source code.
-
-
Constructor Summary
Constructors Constructor and Description TransactionDatasetUtilityGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidconvert(java.lang.String input, java.lang.String output, int maxQuantity, double externalUtilityFactor)Convert a transaction database to a transaction database with utility values from the source code.
-
-
-
Method Detail
-
convert
public void convert(java.lang.String input, java.lang.String output, int maxQuantity, double externalUtilityFactor) throws java.lang.NumberFormatException, java.io.IOExceptionConvert a transaction database to a transaction database with utility values from the source code.- Parameters:
input- the input file path (a transaction database in SPMF format)output- the output file pathmaxQuantity- the maximum quantity of each item in a transactionexternalUtilityFactor- the external utility of items generated by Random.nextGaussian() will be multiplied by this value- Throws:
java.io.IOException- if an error while reading/writting files.java.lang.NumberFormatException
-
-
DMelt 3.0 © DataMelt by jWork.ORG