Export the list of algorithms from SPMF as JSON file (SPMF documentation)

This example explains how to export the list of algorithm from SPMF as a JSON file using the SPMF open-source data mining library.

How to run this example?

What is this tool?

This tool is a tool to export the list of algorithms from SPMF to JSON format. This can be useful to build software that interact with spmf.jar and wish to obtain the list of algorithms, for example.

What is the output?

The output is a file that looks like this and contains a description of all algorithms from SPMF:

{
    "exported_on": "2025-12-06T17:47:53.253908200+08:00[Asia/Shanghai]",
    "algorithms": [
        {
            "name": "Apriori_association_rules",
            "implementationAuthorNames": "Philippe Fournier-Viger",
            "algorithmCategory": "ASSOCIATION RULE MINING",
            "documentationURL": "http://www.philippe-fournier-viger.com/spmf/AssociationRules.php",
            "algorithmType": "DATA_MINING",
            "inputFileTypes": [
                "Database of instances",
                "Transaction database",
                "Simple transaction database"
            ],
            "outputFileTypes": [
                "Patterns",
                "Association rules"
            ],
            "parameters": [
                {
                    "name": "Minsup (%)",
                    "example": "(e.g. 0.5 or 50%)",
                    "parameterType": "class java.lang.Double",
                    "isOptional": "false"
                },
                {
                    "name": "Minconf (%)",
                    "example": "(e.g. 0.6 or 60%)",
                    "parameterType": "class java.lang.Double",
                    "isOptional": "false"
                }
            ],
            "numberOfMandatoryParameters": "2"

        },
        {
            "name": "CFPGrowth++_association_rules",
            "implementationAuthorNames": "Azadeh Soltani, Philippe Fournier-Viger",
            "algorithmCategory": "ASSOCIATION RULE MINING",
            "documentationURL": "http://www.philippe-fournier-viger.com/spmf/AssociationRules.php",
            "algorithmType": "DATA_MINING",
            "inputFileTypes": [
                "Database of instances",
                "Transaction database",
                "Simple transaction database"


=================================================