ca.pfv.spmf.tools.other_dataset_tools
Class FixTransactionDatabaseTool
- java.lang.Object
-
- ca.pfv.spmf.tools.other_dataset_tools.FixTransactionDatabaseTool
-
public class FixTransactionDatabaseTool extends java.lang.ObjectThis tool allows to fix some common problems in a transaction database file in SPMF format. In particular: (1) the tool removes items that appears more than once in a transaction. (2) it sort transactions according to the lexicographical ordering. The reason for performing this is that many itemset and association rule mining algorithms assumes that items cannot appear more than once in a transaction and that transactions are sorted.
-
-
Constructor Summary
Constructors Constructor and Description FixTransactionDatabaseTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidconvert(java.lang.String input, java.lang.String output)Fix the transaction database
-
-
-
Method Detail
-
convert
public void convert(java.lang.String input, java.lang.String output) throws java.lang.NumberFormatException, java.io.IOExceptionFix the transaction database- Parameters:
input- the input file path (a transaction database in SPMF format)output- the output file path (the fixed trnasactoin database in SPMF format)- Throws:
java.io.IOException- if an error while reading/writting files.java.lang.NumberFormatException
-
-
DMelt 3.0 © DataMelt by jWork.ORG