|
Oracle Data Mining Java API Reference 10g Release 1 (10.1) B12276-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dmt.odm.MiningObject | +--oracle.dmt.odm.LocatableObject | +--oracle.dmt.odm.result.MiningResult | +--oracle.dmt.odm.result.MiningBuildResult | +--oracle.dmt.odm.result.ModelSeekerResult
Model Seeker functionality is deprecated in version 10.1.
An instance of ModelSeekerResult
contains the results objects created by the execution of a ModelSeekerTask
.
This class contains an array of ModelSeekerResultEntry
objects, one for each model built by the ModelSeekerTask
execution. The ModelSeekerResultEntry
corresponding to the best model (as determined by the ModelSeekerTask
execution) is identified in the ModelSeekerResult
by an index into the ModelSeekerResultEntry
array.
This class has no public constructor because instances of this class are created only by the execution of the restore
method.
Method Summary | |
int |
getBestModelIndex() Deprecated. Returns the index corresponding to the best model. |
ModelSeekerResultEntry[] |
getModelSeekerEntryArray() Deprecated. Returns the array of ModelSeekerResultEntry objects. |
static boolean |
remove(Connection dmsConn, java.lang.String resultName) Deprecated. Removes the ModelSeekerResult object of the given name. |
static boolean |
rename(Connection dmsConn, java.lang.String resultOldName, java.lang.String resultNewName) Deprecated. Renames the specified model seeker result. |
static MiningBuildResult |
restore(Connection dmsConn, java.lang.String resultName) Deprecated. Restores ModelSeekerResult object of the given name. |
static MiningBuildResult |
restoreIncludingInvisibleEntries(Connection dmsConn, java.lang.String resultName) Deprecated. For internal use only. |
Methods inherited from class oracle.dmt.odm.result.MiningBuildResult |
getAlgorithmName, getFunctionName, listContents, listContents, restorePastVersion |
Methods inherited from class oracle.dmt.odm.result.MiningResult |
getCompletionTimestamp, getDurationTime, getExecutionDuration, getInputMiningData, getMiningModel, getMiningModelID, getName, getStartingTimestamp |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static MiningBuildResult restore(Connection dmsConn, java.lang.String resultName) throws InvalidArgumentException, java.sql.SQLException, ODMException
ModelSeekerResult
object of the given name. The result object gets created as a ModelSeekerTask
is executed and may be restored while the execution is taking place. The name of the result object is supplied as an argument to the ModelSeekerTask
object.
It is NECESSARY TO CAST the object returned by this method to be a ModelSeekerResult
object in the following manner:
ModelSeekerResult msResult = (ModelSeekerResult)ModelSeekerResult.restore(conn,"name");
dmsConn
- connection to the data mining serverresultName
- name of the model to restore associated build resultsModelSeekerResult
object cast as a MiningBuildResult
object.ODMException
- the caller has not previously logged into ODM DMSSQLException
- failure in a JDBC call to the database made by an internally used methodInvalidArgumentException
- null dmsConnsTaskName
argumentInvalidArgumentException
-
dmsConn
or modelName
is null.modelName
is empty or length exceeds the limit.java.sql.SQLException
- when there is a failure in JDBC operations to restore the object.ODMException
- when there is a failure in the internal ODM operationspublic static MiningBuildResult restoreIncludingInvisibleEntries(Connection dmsConn, java.lang.String resultName) throws InvalidArgumentException, java.sql.SQLException, ODMException
InvalidArgumentException
java.sql.SQLException
ODMException
public static boolean remove(Connection dmsConn, java.lang.String resultName) throws ODMException, InvalidArgumentException
ModelSeekerResult
object of the given name. The name of the result object is supplied as an argument to the ModelSeekerTask
constructor. This remove
method cleans up all the named objects associated with the ModelSeekerResult
. The method first validates the arguments, and then performs removals. If an error is detected while performing removals, the method continues removing as many items as possible and collects error information about the items that were not removed. This error information is formatted into an ODMException (see below).ModelSeekerResultEntry
objects associated with the ModelSeekerResult
objectMiningTestResult
objects associated with all the ModelSeekerResultEntry
objectsMiningLiftResult
objects associated with all the ModelSeekerResultEntry
objectsMiningFunctionSettings
objects associated with all the ModelSeekerResultEntry
objectsMiningModel
objects associated with all the ModelSeekerResultEntry
objects that were kept when the ModelSeekerTask that created the result was executed.resultName
- This is the name of the result object to be removed.dmsConn
- A connection to the data mining serverboolean
- A flag indicating whether the specified object has been removed successfully. false
indicates that the object was not found.InvalidArgumentException
- when
dmsConn
is null, orresultName
is null, ormodelName
is empty or exceeds 30 bytes in length.ODMException
- when
StringCheck
object is null, orModelSeekerResult
object to be removed, orModelSeekerResultEntry
objects, orModelSeekerResultEntry
object, orModelSeekerResultEntry
object, orModelSeekerResultEntry
object due to an exception (if the object is not found, then this is ignored), orModelSeekerResultEntry
object, orModelSeekerResult
object.ODMException
- is thrownresultName
is empty or exceeds 64 characters in length.InvalidArgumentException
- is throwndmsConn
is null, orresultName
is null.public static boolean rename(Connection dmsConn, java.lang.String resultOldName, java.lang.String resultNewName) throws java.sql.SQLException, InvalidArgumentException, ODMException
dmsConn
- A connection to the data mining serverresultOldName
- The name of the model seeker result to be renamedresultNewName
- The new name of the model seeker result to be assignedboolean
- A flag indicating whether the specified object has been renamed successfully. false
means that the result object to be renamed was not found.InvalidArgumentException
-dmsConn
is null, orresultOldName
is null,resultNewName
is null.ODMException
- when resultOldName
or resultNewName
is empty or length exceeds the limit.java.sql.SQLException
- when an error occurs during the rename operationpublic int getBestModelIndex()
The following code illustrates how to retrieve the ModelSeekerResultEntry
object corresponding to the best model for the ModelSeekerResult
:
ModelSeekerResultEntry[] myEntries = myResult.getModelSeekerEntrysArray(); int bestModelIndex = myResult.getBestModelIndex(); ModelSeekerResultEntry bestEntry = myEntries[bestModelIndex];
ModelSeekerResultEntry
array, corresponding to the best model associated with current ModelSeekerResult
object.public ModelSeekerResultEntry[] getModelSeekerEntryArray()
ModelSeekerResultEntry
objects.ModelSeekerResultEntry
objects associated with current ModelSeekerResult
object. Each object in the array corresponds to one model built by the ModelSeekerTask
.
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |