org.opentox.util.converters
Class Converter
java.lang.Object
org.opentox.util.converters.Converter
- All Implemented Interfaces:
- IConverter
public class Converter
- extends java.lang.Object
- implements IConverter
- Author:
- OpenTox - http://www.opentox.org, Sopasakis Pantelis, Sarimveis Harry, Kolotouros Dimitris
Method Summary |
void |
convert(java.io.File dsdFile,
weka.core.Instances instances)
Will be supported in some next version. |
void |
convert(java.io.InputStream input_RDF_file,
weka.core.Instances instances)
Using the InputStream provided by a remote or local resource (file, URL etc)
produces an Instances object accepted by weka. |
void |
convert(weka.core.Instances instances,
java.io.File dsdFile)
Saves a given Instances object in a DSD file. |
void |
Converter()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
Converter
public Converter()
Converter
public void Converter()
convert
public void convert(weka.core.Instances instances,
java.io.File dsdFile)
- Saves a given Instances object in a DSD file. The given Instances should have no
string attributes.
Consider applying
DataCleanUp.removeStringAtts(Instances)
before using this method. The columns of the produced DSD file have exactly
the same ordering with the attributes of the Instances. For example, if the
attributes are x1, x2, x3, ..., xn, then the DSD file will have n columns
, and precisely x1,x2,...,xn (with the same ordering). Make sure that the
Instances has only numeric attributes!
- Specified by:
convert
in interface IConverter
- Parameters:
instances
- Instances
object which has only numeric
attributes!dsdFile
- Destination File
where the result is stored.
convert
public void convert(java.io.File dsdFile,
weka.core.Instances instances)
- Will be supported in some next version.
- Specified by:
convert
in interface IConverter
- Parameters:
dsdFile
- instances
-
convert
public void convert(java.io.InputStream input_RDF_file,
weka.core.Instances instances)
- Description copied from interface:
IConverter
- Using the InputStream provided by a remote or local resource (file, URL etc)
produces an Instances object accepted by weka.
- Specified by:
convert
in interface IConverter
- Parameters:
input_RDF_file
- InputStream From some RDF resourceinstances
- The produces instances object.