mulan.data
Class ConverterLibSVM
java.lang.Object
mulan.data.ConverterLibSVM
public class ConverterLibSVM
- extends Object
Class that converts LibSVM multi-label data sets to Mulan compatible format
- Version:
- $Revision: 0.01 $
- Author:
- Grigorios Tsoumakas
Method Summary |
static void |
convertFromLibSVM(String path,
String sourceFilename,
String targetFilestem,
String relationName)
Converts a multi-label dataset from LibSVM format to the format
that is compatible with Mulan. |
static void |
main(String[] args)
Command line interface for the converter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConverterLibSVM
public ConverterLibSVM()
convertFromLibSVM
public static void convertFromLibSVM(String path,
String sourceFilename,
String targetFilestem,
String relationName)
- Converts a multi-label dataset from LibSVM format to the format
that is compatible with Mulan. It constructs one ARFF and one XML file.
- Parameters:
path
- the directory that contains the source file and will contain
the target filessourceFilename
- the name of the source filerelationName
- the relation name of the arff file that will be
constructedtargetFilestem
- the filestem for the target files (.arff and .xml)
main
public static void main(String[] args)
- Command line interface for the converter
- Parameters:
args
- command line arguments