Converting a Transaction Database to SPMF Format (SPMF documentation)

This example explains how to convert a transaction database to SPMF format using the SPMF open-source data mining library.

How to run this example?

The tool for converting a transaction databases to SPMF format. It takes three prameters as input:

The algorithm outputs a transaction database in SPMF format.

The CSV_INTEGER format is defined as follows:

For example, the follwing sequence database is in CSV_INTEGER format and contains four sequences:

1,2,3,4
5,6,7,8
5,6,7
1,2,3


After conversion the result is a transaction database file in SPMF format:

@FILETYPE="Simple transaction database"
@SOURCE="SPMF SOFTWARE https://philippe-fournier-viger.com/spmf/"
1 2 3 4
5 6 7 8
5 6 7
1 2 3