|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.miningmart.compiler.wrapper.SVM_Wrapper
edu.udo.cs.miningmart.compiler.wrapper.DB_SVM
The wrapper class for mySVM/db, the version of mySVM that runs inside the database. The wrapper assumes that mySVM/db is already installed in the database.
Field Summary |
Fields inherited from class edu.udo.cs.miningmart.compiler.wrapper.SVM_Wrapper |
b, DEFAULTSAMPLESIZE, forClassification, inputTableName, lossNeg, lossPos, myStepId, noSV, SAMPLE_TABLE_PREFIX, sampleSize, schema, targetColSQLDefinition, targetPositive, TEMP_TABLE_PREFIX, theColumnInfos, useOracle, usePostgres, xiAlphaEstimation |
Constructor Summary | |
DB_SVM(CompilerDatabaseService databaseObj,
Print printObj,
java.lang.String nameForDatabaseUse,
java.lang.String nameOfDatabaseSchema,
long stepId,
java.lang.String colNameKeyColumn)
Use this constructor if no sampling is wanted. |
|
DB_SVM(CompilerDatabaseService databaseObj,
Print printObj,
java.lang.String nameForDatabaseUse,
java.lang.String nameOfDatabaseSchema,
long stepId,
java.lang.String colNameKeyColumn,
long sampleSize)
Use this constructor if sampling on the input data is wanted. |
Method Summary | |
void |
callSVM(Columnset inputColumnset,
Column targetColumn,
long conceptId,
java.lang.String c,
java.lang.String kernelType,
java.lang.String epsilon,
java.util.Vector predictingColumns)
This is the wrapper. |
protected void |
checkColSetType(java.lang.String type)
|
protected void |
checkKernel(java.lang.String kern)
|
protected void |
extractNumberSV()
Must be implemented by subclasses. |
protected java.util.Vector |
getColNamesInput()
|
protected java.lang.String |
getModelTablePlusCondition()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DB_SVM(CompilerDatabaseService databaseObj, Print printObj, java.lang.String nameForDatabaseUse, java.lang.String nameOfDatabaseSchema, long stepId, java.lang.String colNameKeyColumn) throws M4CompilerError
databaseObj
- the DB object to be used for database connectionsprintObj
- the Print object to be used for log messagesnameForDatabaseUse
- Prefix for all functions, view and tables that
this wrapper creates in the databasenameOfDatabaseSchema
- Name of the database schema that holds the business
views and tablesstepId
- Id of the stepcolNameKeyColumn
- Name of the column that is the primary key for the input data table
M4CompilerError
- A simple exception object with an error message.public DB_SVM(CompilerDatabaseService databaseObj, Print printObj, java.lang.String nameForDatabaseUse, java.lang.String nameOfDatabaseSchema, long stepId, java.lang.String colNameKeyColumn, long sampleSize) throws M4CompilerError
databaseObj
- the DB object to be used for database connectionsprintObj
- the Print object to be used for log messagesnameForDatabaseUse
- Prefix for all functions, view and tables that
this wrapper creates in the databasenameOfDatabaseSchema
- Name of the database schema that holds the business
views and tablesstepId
- Id of the stepcolNameKeyColumn
- Name of the column that is the primary key for the input data tablesampleSize
- maximum number of rows to be used to train the SVM
M4CompilerError
- A simple exception object with an error message.Method Detail |
public void callSVM(Columnset inputColumnset, Column targetColumn, long conceptId, java.lang.String c, java.lang.String kernelType, java.lang.String epsilon, java.util.Vector predictingColumns) throws M4CompilerError
callSVM
in class SVM_Wrapper
inputColumnset
- ColumnSet in the database
that belongs to the input Concept of the
operator that uses this wrapper. The Columns that the SVM learns
from belong to this ColumnSet.targetColumn
- the Column in the database that
belongs to the target attribute of the operator that uses this
wrapper.conceptId
- Unique M4 Id of the input Concept of the operator that
uses this wrapper.c
- The parameter C for the support vector machine.kernelType
- One of "dot" or "radial".epsilon
- The parameter epsilon for the support vector machine.predictingColumns
- A Vector with the Columns in the database that the support
vector machine will use as learning attributes.
M4CompilerError
- A simple exception object with an error message.protected void checkColSetType(java.lang.String type) throws M4CompilerError
checkColSetType
in class SVM_Wrapper
M4CompilerError
protected void checkKernel(java.lang.String kern) throws M4CompilerError
checkKernel
in class SVM_Wrapper
M4CompilerError
protected java.util.Vector getColNamesInput()
getColNamesInput
in class SVM_Wrapper
protected java.lang.String getModelTablePlusCondition() throws M4CompilerError
getModelTablePlusCondition
in class SVM_Wrapper
M4CompilerError
protected void extractNumberSV() throws M4CompilerError
SVM_Wrapper
getNumberOfSupportVectors()
can return the right value.
extractNumberSV
in class SVM_Wrapper
M4CompilerError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |