oracle.dmt.odm.task
Class ModelExportTask
java.lang.Object
|
+--oracle.dmt.odm.MiningObject
|
+--oracle.dmt.odm.LocatableObject
|
+--oracle.dmt.odm.task.MiningTask
|
+--oracle.dmt.odm.task.ModelExportTask
- All Implemented Interfaces:
- java.io.Serializable
- public class ModelExportTask
- extends MiningTask
An instance of ModelExportTask
is used to export ODM mining models to standard format mining model
representations. ODM 9.2.0 supports exporting model built in the DMS,
to the industry standard PMML2.0 standard.
ODM 9.2.0 supports exporting the following models:
- Association Rule Model
- Classification Model built using the Naive Bayes Algorithm
This class supports the exporting of a mining model to an XMLType table cell.
Oracle9i database supports an SYS.XMLType datatype to store XML documents
inside the database. LocationCellAccessData
provides the
location of the XMLType table cell to which model(s) needs to be exported.
Export fails if the specified model is not present in the DMS or
table cell location is not valid or model is not supported for export.
- Since:
- ODM 9.2.0
- See Also:
- Serialized Form
ModelExportTask(java.lang.String inputModelName,
LocationCellAccessData exportModelLocation,
MiningStandardType miningStandardType)
Creates a ModelExportTask object given the MiningStandardType
and the location of the cell (that is, row-column intersection) identified
by the column name and rowid for a given schema and table name. |
Methods inherited from class oracle.dmt.odm.task.MiningTask |
execute, getCurrentStatus, getExecutionDuration, getName, getStatusHistory, listTasks, remove, store, terminate, waitForCompletion, waitForCompletion |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelExportTask
public ModelExportTask(java.lang.String inputModelName,
LocationCellAccessData exportModelLocation,
MiningStandardType miningStandardType)
throws InvalidArgumentException,
ODMException
- Creates a
ModelExportTask
object given the MiningStandardType
and the location of the cell (that is, row-column intersection) identified
by the column name and rowid for a given schema and table name.
- Parameters:
inputModelName
- Name of the input mining model in the DMS,
which must be exported to the specified locationexportModelLocation
- Location of the exported models table cellminingStandardType
- Format for exported model
ODM 9.2.0 supports PMML2.0 standard- Throws:
InvalidArgumentException
- is thrown
- when the inputModelName/exportModelLocation/miningStandardType
are null
- when the inputModelName
length >64 characters
getExportModelLocation
public LocationCellAccessData getExportModelLocation()
- Returns the export location cell of the mining model.
getMiningStandardType
public MiningStandardType getMiningStandardType()
- Returns the export model mining standard type. ODM 9.2.0 supports
the PMML 2.0 standard.
getInputModelName
public java.lang.String getInputModelName()
- Returns the input model name of the export mining task.
restore
public static ModelExportTask restore(Connection dmsConn,
java.lang.String taskName)
throws InvalidArgumentException,
MiningTaskException,
java.sql.SQLException,
ODMException
- Restores the user-specified mining export task object from the DMS.
- Parameters:
dmsConn
- Data mining server connection.taskName
- Name of the export task.- Returns:
ModelExportTask
restored ModelExportTask
.- Throws:
InvalidArgumentException
- is thrown
- when the dmsConn/taskName
are null
- when the taskName
length >64 charactersMiningTaskException
- is thrown
- when the restore failsSQLException
- is thrown
- when there is a failure in JDBC calls