public class LinearSelfConfigurator extends Object implements ISelfConfigurator
| Modifier and Type | Class and Description |
|---|---|
static class |
LinearSelfConfigurator.QMeasureType |
static class |
LinearSelfConfigurator.Strategy |
| Modifier and Type | Field and Description |
|---|---|
AMapping |
asked |
int |
ITERATIONS_MAX |
double |
kappa |
double |
learningRate |
double |
min_coverage |
double |
MIN_THRESHOLD |
ACache |
source |
boolean |
STRICT |
ACache |
target |
| Constructor and Description |
|---|
LinearSelfConfigurator(ACache source,
ACache target)
Constructor
|
LinearSelfConfigurator(ACache source,
ACache target,
double minCoverage,
double beta)
Constructor
|
LinearSelfConfigurator(ACache source,
ACache target,
double minCoverage,
double beta,
Map<String,String> measures)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
computeMeasure(ACache source,
ACache target,
String[] parameters) |
double |
computeNext(List<SimpleClassifier> classifiers,
int index)
Aims to improve upon a particular classifier by checking whether adding a
delta to its similarity worsens the total classifer
|
Double |
computeQuality(AMapping map)
Method to compute quality of a mapping.
|
AMapping |
execute(String sourceProperty,
String targetProperty,
String measure,
double threshold)
Runs measure(sourceProperty, targetProperty) >= threshold
|
AMapping |
executeClassifier(SimpleClassifier c,
double threshold)
Runs a classifier and get the mappings for it
|
List<SimpleClassifier> |
getAllInitialClassifiers()
Computes all initial classifiers that compare properties whose coverage
is beyong the coverage threshold
|
List<SimpleClassifier> |
getBestInitialClassifiers()
Computes the best initial mapping for each source property
|
List<SimpleClassifier> |
getBestInitialClassifiers(Set<String> measureList)
Computes the best initial mapping for each source property
|
AMapping |
getBestOneToOneMapping(AMapping m)
Gets the best target for each source and returns it
|
List<SimpleClassifier> |
getInitialOverallClassifiers(List<SimpleClassifier> classifiers)
Updates the weights of the classifiers such that they map the initial
conditions for a classifier
|
LinkSpecification |
getLinkSpecification(List<SimpleClassifier> list)
TODO FIXME this is only a basic implementation
|
AMapping |
getMapping(List<SimpleClassifier> classifiers)
Runs classifiers and retrieves the corresponding mappings
|
String |
getMeasure() |
AMapping |
getOverallMapping(Map<SimpleClassifier,AMapping> mappings,
double threshold)
Computes the weighted linear combination of the similarity computed by
the single classifiers
|
static Map<String,Double> |
getPropertyStats(ACache c,
double minCoverage)
Extracts all properties from a cache that have a coverage beyond minCoverage
|
static String |
getPropertyType(ACache c,
String p) |
AMapping |
getResults() |
ACache |
getSource() |
ACache |
getTarget() |
String |
getThreshold() |
List<SimpleClassifier> |
learnClassifer(List<SimpleClassifier> classifiers) |
AMapping |
minimizeToKnow(AMapping map) |
List<SimpleClassifier> |
normalizeClassifiers(List<SimpleClassifier> classifiers) |
void |
setDefaultMeasures()
set default atomic measures
|
void |
setMeasure(AMeasure measure) |
void |
setMeasure(IQualitativeMeasure pfm)
Set PFMs based upon name.
|
void |
setPFMType(LinearSelfConfigurator.QMeasureType qMeasureType)
Set PFMs based upon name.
|
void |
setSource(ACache source) |
void |
setSupervisedBatch(AMapping reference)
Set caches to trimmed caches according to the given reference mapping.
|
void |
setTarget(ACache target) |
public boolean STRICT
public int ITERATIONS_MAX
public double MIN_THRESHOLD
public ACache source
public ACache target
public double learningRate
public double kappa
public double min_coverage
public AMapping asked
public LinearSelfConfigurator(ACache source, ACache target)
source - Source cachetarget - Target cachepublic LinearSelfConfigurator(ACache source, ACache target, double minCoverage, double beta, Map<String,String> measures)
source - Source cachetarget - Target cacheminCoverage - Minimal coverage for a property to be considered for linkingbeta - Beta value for computing F_betameasures - Atomic measurespublic void setPFMType(LinearSelfConfigurator.QMeasureType qMeasureType)
public void setMeasure(IQualitativeMeasure pfm)
public void setDefaultMeasures()
public void computeMeasure(ACache source, ACache target, String[] parameters)
computeMeasure in interface ISelfConfiguratorpublic String getThreshold()
getThreshold in interface ISelfConfiguratorpublic AMapping getResults()
getResults in interface ISelfConfiguratorpublic static Map<String,Double> getPropertyStats(ACache c, double minCoverage)
c - Input cacheminCoverage - Threshold for coveragepublic String getMeasure()
getMeasure in interface ISelfConfiguratorpublic void setMeasure(AMeasure measure)
setMeasure in interface ISelfConfiguratorpublic List<SimpleClassifier> getAllInitialClassifiers()
public List<SimpleClassifier> getBestInitialClassifiers()
public List<SimpleClassifier> getBestInitialClassifiers(Set<String> measureList)
measureList - Define Measures to be used by their name: eg. "jaccard", "levenshtein", "trigrams", "cosine", ...public AMapping getMapping(List<SimpleClassifier> classifiers)
classifiers - List of classifierspublic AMapping getOverallMapping(Map<SimpleClassifier,AMapping> mappings, double threshold)
mappings - Maps classifiers to their resultsthreshold - Similarity threshold for exclusionpublic List<SimpleClassifier> normalizeClassifiers(List<SimpleClassifier> classifiers)
public List<SimpleClassifier> getInitialOverallClassifiers(List<SimpleClassifier> classifiers)
classifiers - Input classifierspublic double computeNext(List<SimpleClassifier> classifiers, int index)
public List<SimpleClassifier> learnClassifer(List<SimpleClassifier> classifiers)
public AMapping executeClassifier(SimpleClassifier c, double threshold)
c - Classifierthreshold - Threshold for similaritiespublic AMapping execute(String sourceProperty, String targetProperty, String measure, double threshold)
sourceProperty - Source propertytargetProperty - Target propertymeasure - Similarity measurethreshold - Similarity thresholdpublic AMapping getBestOneToOneMapping(AMapping m)
m - public Double computeQuality(AMapping map)
map - public void setSupervisedBatch(AMapping reference)
reference - public ACache getSource()
public void setSource(ACache source)
public ACache getTarget()
public void setTarget(ACache target)
public LinkSpecification getLinkSpecification(List<SimpleClassifier> list)
list - Copyright © 2018. All rights reserved.