|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttextclassifier.database.OstraDBLoaderBC
public class OstraDBLoaderBC
Provides important informations about content of a relational table.
Constructor Summary | |
---|---|
OstraDBLoaderBC(java.lang.String c,
java.lang.String t,
java.util.ArrayList<java.lang.String> atts,
java.util.ArrayList<java.lang.String> discatts)
Constructor of the class |
Method Summary | |
---|---|
java.lang.String |
getAttributes()
Returns SQL command that gets all attributes names - sql command returns only one column - attribute name! |
java.lang.String |
getCategories()
Returns the query necessary to get all categories from the table (distinct values of target column) |
java.lang.String |
getDistinctValues(java.lang.String att)
Returns SQL command that returns all distinct values of specified attribute |
java.lang.String |
getSqlQueryGetCategoriesAndCountsOfItemset(largeItemset oneItemset,
Category cat)
Returns SQL command that returns the count of transactions of transactions for one specified frequent itemset and one category |
java.lang.String |
getSqlQueryGetFromDiscInterval(DiscInterval disc,
Category cat,
java.lang.String att_name)
Returns SQL command for the count of transactions, values of which correspond to the specified interval and category |
java.lang.String |
getSqlQueryGetValuesAndCountsOfAttribute(java.lang.String attribute,
int totalTransCount,
Category cat)
Returns SQL command that returns all possible values of specified attribute in a specified category with a secified number of occurences |
java.lang.String |
getTableName()
Returns the name of the input relational table |
java.lang.String |
getTransInCategory(Category cat)
Returns SQL command that returns total count of transactions with specified category |
java.lang.String |
hasHigherSupportThanMinsupp(java.lang.String condition,
double min_supp,
Category cat)
Returns SQL command that returns count of transactions of a specified category and condition (for example condition for minimum support) |
java.lang.String |
inCategories(largeItemset oneItemset)
Returns SQL command that returns the count of categories that satisfy the condition specified by a frequent itemset |
java.lang.String |
inCategories2(largeItemset oneItemset)
Returns SQL command that returns the names and counts of categories that satisfy the condition specified by a frequent itemset |
boolean |
isDiscretizableAttribute(java.lang.String att_name)
Returns true, if the specified attribute must be discretized |
boolean |
isTarget(java.lang.String att_name)
Returns true, if the specified attribute must be discretized |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OstraDBLoaderBC(java.lang.String c, java.lang.String t, java.util.ArrayList<java.lang.String> atts, java.util.ArrayList<java.lang.String> discatts)
c
- name of the target column for classificationt
- name of the input relational tableatts
- list of all input columns usedd for classificationdiscatts
- list of all input attributes, which sholud be discretized (subset of in_atts)Method Detail |
---|
public java.lang.String getTableName()
getTableName
in interface documentConnecterBC
public java.lang.String getCategories()
getCategories
in interface documentConnecterBC
public java.lang.String getAttributes()
getAttributes
in interface documentConnecterBC
public java.lang.String getTransInCategory(Category cat)
getTransInCategory
in interface documentConnecterBC
cat
- a category (a value of target column)
public java.lang.String hasHigherSupportThanMinsupp(java.lang.String condition, double min_supp, Category cat)
hasHigherSupportThanMinsupp
in interface documentConnecterBC
condition
- a condition, which a transaction must satisfymin_supp
- minimum support thresholdcat
- a category (a value of target column)
public java.lang.String getSqlQueryGetValuesAndCountsOfAttribute(java.lang.String attribute, int totalTransCount, Category cat)
getSqlQueryGetValuesAndCountsOfAttribute
in interface documentConnecterBC
attribute
- the name of an attributetotalTransCount
- required count of occurences of a valuecat
- a category (value of target attribute)
public java.lang.String getSqlQueryGetCategoriesAndCountsOfItemset(largeItemset oneItemset, Category cat)
getSqlQueryGetCategoriesAndCountsOfItemset
in interface documentConnecterBC
oneItemset
- frequent itemset, for which we need to know its transactioncat
- a category (value of target attribute)
public java.lang.String getSqlQueryGetFromDiscInterval(DiscInterval disc, Category cat, java.lang.String att_name)
getSqlQueryGetFromDiscInterval
in interface documentConnecterBC
disc
- an interval obtained by discretizationcat
- a category (value of target attribute)att_name
- a name of attribute, for which the interval was created
public java.lang.String inCategories(largeItemset oneItemset)
inCategories
in interface documentConnecterBC
oneItemset
- a frequent itemset
public java.lang.String inCategories2(largeItemset oneItemset)
inCategories2
in interface documentConnecterBC
oneItemset
- a frequent itemset
public java.lang.String getDistinctValues(java.lang.String att)
getDistinctValues
in interface documentConnecterBC
att
- the name of the attribute
public boolean isTarget(java.lang.String att_name)
isTarget
in interface documentConnecterBC
att_name
- the name of the attribute
public boolean isDiscretizableAttribute(java.lang.String att_name)
isDiscretizableAttribute
in interface documentConnecterBC
att_name
- the name of the attribute
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |