|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opentox.error.ErrorSource
org.opentox.ontology.rdf.RDFHandler
org.opentox.ontology.rdf.Model
public class Model
This class is used to parse and generate RDF representations of Models.
Field Summary | |
---|---|
private static long |
serialVersionUID
|
Fields inherited from class org.opentox.ontology.rdf.RDFHandler |
---|
jenaModel |
Fields inherited from class org.opentox.error.ErrorSource |
---|
errorRep |
Constructor Summary | |
---|---|
Model()
|
|
Model(java.io.InputStream in)
Initialized a new instance of Model reading its content
from an input stream which can be a FileInputStream or an
InputStream pointing to a web Resource. |
Method Summary | |
---|---|
boolean |
compatibleWith(weka.core.Instances testData)
Check the assertion that a certain weka.core.Instances object is compatible with this model in terms of having proper features. |
void |
createModel(ModelMeta meta,
java.io.OutputStream out)
Creates the RDF representation for an OpenTox model given its name, the uri of the dataset used to train it, its target feature, the Data and a List of tuning parameters for the training algorithm. |
java.lang.String |
getDependentFeatureUri()
Returns the dependent features of the model. |
java.lang.String |
getPredictedFeatureUri()
Get the URI of the predicted feature of the model. |
java.util.Set<java.lang.String> |
getSetOfIndependentFeatures()
The set of independent variables of the model. |
java.util.Set<java.lang.String> |
setOfFeatures()
Returns the set of all features in the Model (RDF representation) including dependent, independent and predicted ones. |
Methods inherited from class org.opentox.ontology.rdf.RDFHandler |
---|
getClassMemberIteratorFor, getJenaModel |
Methods inherited from class org.opentox.error.ErrorSource |
---|
getErrorRep |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opentox.interfaces.IProne2Error |
---|
getErrorRep |
Field Detail |
---|
private static final long serialVersionUID
Constructor Detail |
---|
public Model()
public Model(java.io.InputStream in)
Model
reading its content
from an input stream which can be a FileInputStream
or an
InputStream pointing to a web Resource.
in
- InputStream for reading the content of the Model.URLConnection.getInputStream()
Method Detail |
---|
public java.util.Set<java.lang.String> setOfFeatures()
public java.util.Set<java.lang.String> getSetOfIndependentFeatures()
getSetOfIndependentFeatures
in interface IModel
public java.lang.String getDependentFeatureUri()
getDependentFeatureUri
in interface IModel
public java.lang.String getPredictedFeatureUri()
getPredictedFeatureUri
in interface IModel
public void createModel(ModelMeta meta, java.io.OutputStream out)
createModel
in interface IModel
meta
- Meta-information about the model.out
- OutputStream used to write the RDF representation of the model.public boolean compatibleWith(weka.core.Instances testData)
compatibleWith
in interface IModel
testData
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |