The Data Mining Forum                             open-source data mining software data mining conferences Data Science for Social and Behavioral Analytics DSSBA 2022 data science journal
IMPORTANT: This is the old Data Mining forum.
I keep it online so that you can read the old messages.

Please post your new messages in the new forum: https://forum2.philippe-fournier-viger.com/index.php
 
Use SPMF in your own code
Posted by: znerk
Date: October 30, 2014 12:32AM

Hello

When I first saw SPMF I thought it were a library, but now realise it is instead a finished product / software. Even though, is there any way to implement SPMF as a library in your own code?

Options: ReplyQuote
Re: Use SPMF in your own code
Date: October 30, 2014 02:26PM

Hi,

Yes, you can easily integrate it into your code.

You can go to the download page.

http://www.philippe-fournier-viger.com/spmf/index.php?link=download.php

On that page, you will see that there are two versions of SPMF: (1) the release version which is a runnable jar file and (2) the source code version which is a zip file containing the source code.

The source code version is the version that you can use and modify easily in your source code. On the download page, you should download the source code version. Then, you should click on the installation instruction to see how to run each algorithm from the source code.

http://www.philippe-fournier-viger.com/spmf/how_to_install.txt

An example is provided of how to run each algorithm from SPMF by using the java source code. As you will read in the installation instructions, those are located in the package : ca/pfv/spmf/tests/

Hope this helps,



Edited 1 time(s). Last edit at 10/30/2014 02:26PM by webmasterphilfv.

Options: ReplyQuote
Re: Use SPMF in your own code
Posted by: znerk
Date: November 03, 2014 12:25AM

Thanks ! So you can't use it as a library by attaching the JAR in the class path?


By the way, any specific papers or other types of literature you recommend starting with?

Options: ReplyQuote
Re: Use SPMF in your own code
Date: November 03, 2014 07:07AM

Yes, you could also just attach the JAR file. But remember that the examples of how to use the library are located in package ca.pfv.spmf.tests. If you want to modify these file, you would need to copy the package ca.pfv.spmf.tests/ of the source code in your project.

Options: ReplyQuote


This forum is powered by Phorum and provided by P. Fournier-Viger (© 2012).
Terms of use.