textclassifier.ARCBC
Class ArcBCminer

java.lang.Object
  extended by textclassifier.ARCBC.ArcBCminer

public class ArcBCminer
extends java.lang.Object

Class which contains all necessary algorithms for association based classification.


Field Summary
 java.util.ArrayList<AssociationRule> allRules
           
 java.util.ArrayList<AssociationRule> completeRules
           
 boolean fidone
           
 double mining_actCinLevel
           
 int mining_actLevel
           
 int mining_totalLevels
           
 int prunedRules
           
 double pruning_actLevel
           
 boolean rdone
           
 double ruling_actLevel
           
 int totalLargeFitemsets
           
 int totalRules
           
 
Constructor Summary
ArcBCminer(documentConnecterBC dbconnect, MySQLAccess dbaccess)
          Constructor of the class ArcBCminer
 
Method Summary
 java.util.ArrayList<Document> getAllDocuments()
          Reading of all data (documents) from the input table and storing information about them into the Document obejct.
 int getResultSetSize(java.sql.ResultSet resultSet)
          returns the size of the resultset obtained by an SQL query
 java.sql.ResultSet runSqlCommand(java.lang.String command)
          sends a given SQL query to the MySQL server and returns a ResultSet
 void saveClassifierToFile()
           
 java.util.ArrayList<AssociationRule> train(LookupTable DiscTable, double min_supp, double min_conf)
          Training of the classifier - mining association rules
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

totalRules

public int totalRules

prunedRules

public int prunedRules

totalLargeFitemsets

public int totalLargeFitemsets

mining_totalLevels

public int mining_totalLevels

mining_actLevel

public int mining_actLevel

mining_actCinLevel

public double mining_actCinLevel

ruling_actLevel

public double ruling_actLevel

pruning_actLevel

public double pruning_actLevel

fidone

public boolean fidone

rdone

public boolean rdone

allRules

public java.util.ArrayList<AssociationRule> allRules

completeRules

public java.util.ArrayList<AssociationRule> completeRules
Constructor Detail

ArcBCminer

public ArcBCminer(documentConnecterBC dbconnect,
                  MySQLAccess dbaccess)
Constructor of the class ArcBCminer

Parameters:
dbconnect - connection to the MySQL database
dbaccess - all documents - inputs for classification
Method Detail

train

public java.util.ArrayList<AssociationRule> train(LookupTable DiscTable,
                                                  double min_supp,
                                                  double min_conf)
Training of the classifier - mining association rules

Parameters:
DiscTable - table of intervals created by discretization
min_supp - minimum support threshold
min_conf - minimum confidence threshold
Returns:
a set of association rules

getAllDocuments

public java.util.ArrayList<Document> getAllDocuments()
Reading of all data (documents) from the input table and storing information about them into the Document obejct.

Returns:
a set of doucments (information about them)

runSqlCommand

public java.sql.ResultSet runSqlCommand(java.lang.String command)
sends a given SQL query to the MySQL server and returns a ResultSet

Parameters:
command - string containing the SQL query
Returns:
ResultSet obtained from MySQL server

saveClassifierToFile

public void saveClassifierToFile()

getResultSetSize

public int getResultSetSize(java.sql.ResultSet resultSet)
returns the size of the resultset obtained by an SQL query

Parameters:
resultSet - resultset as an input
Returns:
the size of the resultset