mulan.data
Class ConverterLibSVM

java.lang.Object
  extended by 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

Constructor Summary
ConverterLibSVM()
           
 
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
 

Constructor Detail

ConverterLibSVM

public ConverterLibSVM()
Method Detail

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 files
sourceFilename - the name of the source file
relationName - the relation name of the arff file that will be constructed
targetFilestem - 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