|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.descriptors.MDMetricOptimizer
public class MDMetricOptimizer
Optimization of metric parameters for dissimilarity based screening. Parameter optimization is uniform for each metric: it is based on the optimization of the performance of the metrics when used for screening molecules. Optimization is performed defining the parameters as variables, its goal is to maximize the selected evaluator function of the given MDHitEvaluator object during screening performed on a test set. The test set consists of actives (similar set) mixed with molecules randomly selected from the target set of screening (dissimilar set).
Parameters are written into the common MDParameters object, determined from the query descriptors.
The MDHitEvaluator object must be set up, for its usage see
MDHitEvaluator. Parametrized metrics must be set
(weighted, asymmetric, scaled, etc.)
MDReaders also must be set up, for usage see MDReader.
Typical usage:
MDMetricOptimizer metrOpt = new MDMetricOPtimizer( evaluator ); metrOpt.optimizeParameters( pfp2DIndex, euclideanIndex, similarReader, dissimilarReader );
| Field Summary | |
|---|---|
float |
maxErrorInF
Maximal allowed dofference in last two calculated values of the enrichment ratio function for termination. |
float |
maxErrorInX
Maximal allowed dofference in last two calculated values of the weight variables for termination. |
int |
nrOfIterations
Maximal allowed number of iterations |
float |
percentage
Consider enrichment ratio values only in cases, when at least the given percent of similars is selected as hits. |
| Constructor Summary | |
|---|---|
MDMetricOptimizer(MDHitEvaluator evaluator)
Constructor of parameter optimizer. |
|
| Method Summary | |
|---|---|
void |
optimizeParameters(int mdIndex,
int metricIndex,
MDReader similarSet,
MDReader dissimilarSet)
Finds optimal parameter values for the given metric. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int nrOfIterations
public float maxErrorInF
public float maxErrorInX
public float percentage
| Constructor Detail |
|---|
public MDMetricOptimizer(MDHitEvaluator evaluator)
evaluator - Evaluator of acive/inactive hits| Method Detail |
|---|
public void optimizeParameters(int mdIndex,
int metricIndex,
MDReader similarSet,
MDReader dissimilarSet)
throws MDReaderException
mdIndex - Index of molecular descriptormetricIndex - Index of metricsimilarSet - Reader of the set containing actives to be selected as hitsdissimilarSet - Reader of target fingerprints
MDReaderException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||