public class CacheTrimmer extends Object
| Constructor and Description |
|---|
CacheTrimmer() |
| Modifier and Type | Method and Description |
|---|---|
static AMapping |
getRandomTrainingData(AMapping m,
int max)
Another implementation to get a random training data of size max out of the reference
mapping m.
|
AMapping |
getReferenceMapping() |
static ACache[] |
processData(ACache sC,
ACache tC,
AMapping m)
Method to scale down the Caches used to perform entity matching upon.
|
ACache[] |
processDataEqually(ACache hc1,
ACache hc2,
AMapping m,
int numberOfQuestions) |
static AMapping |
trimExamples(AMapping m,
int max)
Method to scale down a reference mapping given by an Oracle.
|
static AMapping |
trimExamplesRandomly(AMapping m,
int max)
Standard implementation to get random training examples.
|
public static AMapping trimExamples(AMapping m, int max)
Entries are used.m - Oracle holding all data.max - number of examplesMapping scaled down to max entries.public static AMapping trimExamplesRandomly(AMapping m, int max)
m - Mappingmax - number of examplespublic static AMapping getRandomTrainingData(AMapping m, int max)
m - Mappingmax - number of examplespublic static ACache[] processData(ACache sC, ACache tC, AMapping m)
sC - Cache for source data.tC - Cache for target data.m - Reference Mapping (e.g. part of the optimal mapping)public ACache[] processDataEqually(ACache hc1, ACache hc2, AMapping m, int numberOfQuestions)
public AMapping getReferenceMapping()
Copyright © 2020. All rights reserved.