|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.Objectcoser.datamodel.mmer.ManyToManyEntityRelationSystem
public class ManyToManyEntityRelationSystem extends java.lang.Object
Summary: Many-to-many entity relation system.
Author: Fan Min minfanphd@163.com
Copyright: The source code and all documents are open and free. PLEASE keep
this header while revising the program.
Organization: Lab of Granular Computing,
Zhangzhou Normal University, Fujian 363000, China.
Project: The cost-sensitive rough sets project.
Progress: The very beginning.
Written time: April 12, 2011.
Last modify time: February 15, 2012.
| 修饰符 和 类型 | 字段 和 描述 |
|---|---|
static int |
BACKWARD
The backward algorithm. |
static int |
COMPLETE_MATCH
Complete match. |
static int |
FORWARD
The forward algorithm. |
static int |
LEFT_PARTIAL_MATCH
Left-hand side partial match. |
(专用软件包) int |
nonZeroCounter
|
static int |
PARTIAL_MATCH
partial match. |
static int |
RIGHT_PARTIAL_MATCH
Right-hand side partial match. |
(专用软件包) int |
ruleGenerationAlgorithm
The rule generation algorithm, sandwich, forward, and backward. |
static int |
SANDWICH
The sandwich algorithm. |
| 构造函数 和 描述 |
|---|
ManyToManyEntityRelationSystem(Instances paraFirstSet,
Instances paraSecondSet,
Instances paraRelationSet)
Construct the decision system. |
ManyToManyEntityRelationSystem(java.io.Reader paraFirstSetReader,
java.io.Reader paraSecondSetReader,
java.io.Reader paraRelationSetReader)
Construct the MMER. |
ManyToManyEntityRelationSystem(java.lang.String paraFirstFilename,
java.lang.String paraSecondFilename,
java.lang.String paraRelationFilename)
Construct the MMER. |
ManyToManyEntityRelationSystem(java.lang.String paraFirstFilename,
java.lang.String paraSecondFilename,
java.lang.String paraRelationFilename,
boolean paraHaveID)
Construct the MMER. |
| 修饰符 和 类型 | 方法 和 描述 |
|---|---|
java.lang.String |
computeFirstSetFrequentConcepts(double paraSupportThreshold,
int paraBaseAlgorithm,
boolean paraScaled)
Frequent concepts for the first set. |
java.lang.String |
computeSecondSetFrequentConcepts(double paraSupportThreshold,
int paraBaseAlgorithm,
boolean paraScaled)
Frequent concepts for the second set. |
void |
extendRelation(int paraTimes)
Extend the first set and the relation set. |
java.lang.String |
generateCompleteMatchRules(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
int paraOverallAlgorithm,
int paraBaseAlgorithm)
Generate complete match rules using the sandwich algorithm. |
java.lang.String |
generateCompleteMatchRulesBackward(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
int paraBaseAlgorithm)
Compute complete match rules using the backward algorithm. |
java.lang.String |
generateCompleteMatchRulesForward(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
int paraBaseAlgorithm)
Generate complete match rules using the forward algorithm. |
java.lang.String |
generateCompleteMatchRulesSandwich(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
int paraBaseAlgorithm)
Generate complete match rules using the sandwich algorithm. |
java.lang.String |
generateLeftPartialMatchRules(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
double paraSourceConfidenceThreshold,
int paraOverallAlgorithm,
int paraBaseAlgorithm)
Generate left-hand side partial match rules. |
java.lang.String |
generateLeftPartialMatchRulesSandwich(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
double paraSourceConfidenceThreshold,
int paraBaseAlgorithm)
Generate left-hand side partial match rules using the sandwich algorithm. |
java.lang.String |
generatePartialMatchRules(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
double paraSourceConfidenceThreshold,
double paraTargetConfidenceThreshold,
int paraOverallAlgorithm,
int paraBaseAlgorithm)
Generate partial match rules. |
java.lang.String |
generatePartialMatchRulesBackward(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
double paraSourceConfidenceThreshold,
double paraTargetConfidenceThreshold,
int paraBaseAlgorithm)
Generate partial match rules using the backward algorithm. |
java.lang.String |
generatePartialMatchRulesSandwich(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
double paraSourceConfidenceThreshold,
double paraTargetConfidenceThreshold,
int paraBaseAlgorithm)
Generate partial match rules using the sandwich algorithm. |
java.lang.String |
generateRightPartialMatchRules(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
double paraTargetConfidenceThreshold,
int paraOverallAlgorithm,
int paraBaseAlgorithm)
Generate right-hand side partial match rules. |
java.lang.String |
generateRightPartialMatchRulesSandwich(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
double paraTargetConfidenceThreshold,
int paraBaseAlgorithm)
Generate right-hand side partial match rules using the sandwich algorithm. |
java.lang.String |
generateRules(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
double paraSourceConfidenceThreshold,
double paraTargetConfidenceThreshold,
int paraOverallAlgorithm,
int paraBaseAlgorithm,
boolean paraScaled)
Generate granular associate rules. |
java.lang.String |
toString()
For toString(). |
java.lang.String |
toSummaryString()
Summarize it. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public static final int COMPLETE_MATCH
public static final int LEFT_PARTIAL_MATCH
public static final int RIGHT_PARTIAL_MATCH
public static final int PARTIAL_MATCH
int ruleGenerationAlgorithm
public static final int SANDWICH
public static final int FORWARD
public static final int BACKWARD
int nonZeroCounter
| 构造方法详细信息 |
|---|
public ManyToManyEntityRelationSystem(java.lang.String paraFirstFilename,
java.lang.String paraSecondFilename,
java.lang.String paraRelationFilename,
boolean paraHaveID)
throws java.io.IOException,
java.lang.Exception
paraFirstFilename - the first filename, studentparaSecondFilename - the second filename, e.g., courseparaRelationFilename - the relation filename, e.g., student-courseparaHaveID - Is ID of two entity files removed and the relation stored in
numeric? If so, we can read them directly.java.io.IOExceptionjava.lang.Exception
public ManyToManyEntityRelationSystem(java.lang.String paraFirstFilename,
java.lang.String paraSecondFilename,
java.lang.String paraRelationFilename)
throws java.io.IOException,
java.lang.Exception
paraFirstFilename - the first filename, studentparaSecondFilename - the second filename, e.g., courseparaRelationFilename - the relation filename, e.g., student-coursejava.io.IOExceptionjava.lang.Exception
public ManyToManyEntityRelationSystem(java.io.Reader paraFirstSetReader,
java.io.Reader paraSecondSetReader,
java.io.Reader paraRelationSetReader)
throws java.io.IOException,
java.lang.Exception
paraFirstSetReader - the reader for the first set, e.g., studentparaSecondSetReader - the reader for the second set, e.g., courseparaRelationSetReader - the reader for the relation set, e.g., student-coursejava.io.IOExceptionjava.lang.Exception
public ManyToManyEntityRelationSystem(Instances paraFirstSet,
Instances paraSecondSet,
Instances paraRelationSet)
throws java.lang.Exception
java.lang.Exception| 方法详细信息 |
|---|
public java.lang.String computeFirstSetFrequentConcepts(double paraSupportThreshold,
int paraBaseAlgorithm,
boolean paraScaled)
throws java.lang.Exception
paraSupportThreshold - the given threshold for supportparaBaseAlgorithm - the specified algorithm in integerparaScaled - whether or not view the information system as scaledjava.lang.Exception
public java.lang.String computeSecondSetFrequentConcepts(double paraSupportThreshold,
int paraBaseAlgorithm,
boolean paraScaled)
throws java.lang.Exception
paraSupportThreshold - the given threshold for supportparaBaseAlgorithm - the specified algorithm in integerparaScaled - whether or not view the information system as scaledjava.lang.Exception
public java.lang.String generateRules(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
double paraSourceConfidenceThreshold,
double paraTargetConfidenceThreshold,
int paraOverallAlgorithm,
int paraBaseAlgorithm,
boolean paraScaled)
throws java.lang.Exception
paraSourceCoverageThreshold - the threshold for source coverageparaTargetCoverageThreshold - the threshold for target coverageparaSourceConfidenceThreshold - the threshold for source confidenceparaTargetConfidenceThreshold - the threshold for target confidenceparaOverallAlgorithm - the overall algorithm, SANDWICH, FORWARD, BACKWARD, etc.paraBaseAlgorithm - the algorithm to generate frequent items from each information
systemjava.lang.Exception
public java.lang.String generateCompleteMatchRules(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
int paraOverallAlgorithm,
int paraBaseAlgorithm)
throws java.lang.Exception
paraSourceCoverageThreshold - the threshold for source coverageparaTargetCoverageThreshold - the threshold for target coverageparaBaseAlgorithm - the algorithm to generate frequent items from each information
systemjava.lang.Exception
public java.lang.String generateCompleteMatchRulesSandwich(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
int paraBaseAlgorithm)
throws java.lang.Exception
paraSourceCoverageThreshold - the threshold for source coverageparaTargetCoverageThreshold - the threshold for target coverageparaBaseAlgorithm - the algorithm to generate frequent items from each information
systemjava.lang.Exception
public java.lang.String generateCompleteMatchRulesForward(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
int paraBaseAlgorithm)
throws java.lang.Exception
paraSourceCoverageThreshold - the threshold for source coverageparaTargetCoverageThreshold - the threshold for target coverageparaBaseAlgorithm - the algorithm to generate frequent items from each information
systemjava.lang.ExceptiongenerateCompleteMatchRulesSandwich(double, double, int),
generateCompleteMatchRulesBackward(double, double, int)
public java.lang.String generateCompleteMatchRulesBackward(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
int paraBaseAlgorithm)
throws java.lang.Exception
paraSourceCoverageThreshold - the threshold for source coverageparaTargetCoverageThreshold - the threshold for target coverageparaBaseAlgorithm - the algorithm to generate frequent items from each information
systemjava.lang.ExceptiongenerateCompleteMatchRulesSandwich(double, double, int),
generateCompleteMatchRulesForward(double, double, int)
public java.lang.String generateLeftPartialMatchRules(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
double paraSourceConfidenceThreshold,
int paraOverallAlgorithm,
int paraBaseAlgorithm)
throws java.lang.Exception
paraSourceCoverageThreshold - the threshold for source coverageparaTargetCoverageThreshold - the threshold for target coverageparaBaseAlgorithm - the algorithm to generate frequent items from each information
systemjava.lang.Exception
public java.lang.String generateLeftPartialMatchRulesSandwich(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
double paraSourceConfidenceThreshold,
int paraBaseAlgorithm)
throws java.lang.Exception
paraSourceCoverageThreshold - the threshold for source coverageparaTargetCoverageThreshold - the threshold for target coverageparaSourceConfidenceThreshold - the threshold for source confidenceparaBaseAlgorithm - the algorithm to generate frequent items from each information
systemjava.lang.Exception
public java.lang.String generateRightPartialMatchRules(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
double paraTargetConfidenceThreshold,
int paraOverallAlgorithm,
int paraBaseAlgorithm)
throws java.lang.Exception
paraSourceCoverageThreshold - the threshold for source coverageparaTargetCoverageThreshold - the threshold for target coverageparaBaseAlgorithm - the algorithm to generate frequent items from each information
systemjava.lang.Exception
public java.lang.String generateRightPartialMatchRulesSandwich(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
double paraTargetConfidenceThreshold,
int paraBaseAlgorithm)
throws java.lang.Exception
paraSourceCoverageThreshold - the threshold for source coverageparaTargetCoverageThreshold - the threshold for target coverageparaTargetConfidenceThreshold - the threshold for target confidenceparaBaseAlgorithm - the algorithm to generate frequent items from each information
systemjava.lang.Exception
public java.lang.String generatePartialMatchRules(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
double paraSourceConfidenceThreshold,
double paraTargetConfidenceThreshold,
int paraOverallAlgorithm,
int paraBaseAlgorithm)
throws java.lang.Exception
paraSourceCoverageThreshold - the threshold for source coverageparaTargetCoverageThreshold - the threshold for target coverageparaSourceConfidenceThreshold - the threshold for source confidenceparaTargetConfidenceThreshold - the threshold for target confidenceparaOverallAlgorithm - the overall algorithm, SANDWICH, FORWARD, BACKWARD, etc.paraBaseAlgorithm - the algorithm to generate frequent items from each information
systemjava.lang.Exception
public java.lang.String generatePartialMatchRulesSandwich(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
double paraSourceConfidenceThreshold,
double paraTargetConfidenceThreshold,
int paraBaseAlgorithm)
throws java.lang.Exception
paraSourceCoverageThreshold - the threshold for source coverageparaTargetCoverageThreshold - the threshold for target coverageparaSourceConfidenceThreshold - the threshold for source confidenceparaTargetConfidenceThreshold - the threshold for target confidenceparaBaseAlgorithm - the algorithm to generate frequent items from each information
system.java.lang.Exception
public java.lang.String generatePartialMatchRulesBackward(double paraSourceCoverageThreshold,
double paraTargetCoverageThreshold,
double paraSourceConfidenceThreshold,
double paraTargetConfidenceThreshold,
int paraBaseAlgorithm)
throws java.lang.Exception
paraSourceCoverageThreshold - the threshold for source coverageparaTargetCoverageThreshold - the threshold for target coverageparaSourceConfidenceThreshold - the threshold for source confidenceparaTargetConfidenceThreshold - the threshold for target confidenceparaBaseAlgorithm - the algorithm to generate frequent items from each information
system.java.lang.Exceptionpublic void extendRelation(int paraTimes)
paraTimes - How many times does we need to extend. It should be greater
than 1 since 1 stands not extension.public java.lang.String toSummaryString()
public java.lang.String toString()
java.lang.Object 中的 toString
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||