|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ScorerIF
Base interface to compute the score and confidence for an exhibit. All methods in this interface are guaranteed to be "safe" insofaras they will complete in "reasonable" time with reasonable heap memory (and other resource, eg stack) and without doing anything that wouldn't be allowed in a minimal Applet/JWS sandbox.
All classes implementing this interface should be completely thread-safe in their implementation of the computeScoreAndConfidence() method, and preferrably purely functional (no visible side-effects), with as many concurrent threads as required safely doing separate computations in any one instance.
Classes implementing this interface should, where possible, do their calculations using integer arithmetic, since FPUs to support float/double calaculations may be a scarce resource on newer highly-threaded CPUs such as Sun's Niagara.
| Method Summary | |
|---|---|
ScoreAndConf |
computeScoreAndConfidence(SimpleExhibitPipelineIF dataSource,
java.lang.String exhibitName)
Compute score [-1,+1] and confidence[0,+1] for given exhibit; never null. |
ScorerIF |
createPerturbedVariant()
Create perturbed (gently mutated) variant. |
ScorerIF |
createVariant(java.lang.String nameAndParameters)
Create variant of same base Scorer with (name and) parameters String; never null. |
ScorerIF |
createVariant(java.lang.String baseName,
java.util.List<ScorerParam> parameters)
Create variant of same base Scorer with base name and parameters; never null. |
java.lang.String |
getBaseName()
Get (base) name of this Scorer (excluding any parameters); never null. |
java.lang.String |
getNameAndParameters()
Get name of this Scorer suffixed with any parameters; never null. |
java.util.List<ScorerParam> |
getParameterDefsAndValues()
Get (immutable) canonical-order parameter definitions and current values for this Scorer; never null. |
java.util.List<ScorerParam> |
getPerturbedDefsAndValues()
Computes randomly-perturbed parameters (if any); never null. |
| Method Detail |
|---|
ScoreAndConf computeScoreAndConfidence(SimpleExhibitPipelineIF dataSource,
java.lang.String exhibitName)
throws java.io.IOException
dataSource - souce of exhibit data and metadata; never nullexhibitName - name of exhibit; must be syntactically valid and not null
java.io.IOException - in case of difficulty fetching the exhibit details/data
or in computing the resultjava.lang.String getBaseName()
[a-zA-Z][a-zA-Z0-9]*.
java.lang.String getNameAndParameters()
(:name=value)*.
java.util.List<ScorerParam> getPerturbedDefsAndValues()
The net effect is that most changes should be small and verging on insignificant, but some changes should be large enough to help escape from local minima/maxima.
ScorerIF createPerturbedVariant()
java.util.List<ScorerParam> getParameterDefsAndValues()
ScorerIF createVariant(java.lang.String nameAndParameters)
throws java.lang.IllegalArgumentException
May be able to share some (immutable) state with the original instance, and the value returned is immutable and may not be new.
java.lang.IllegalArgumentException - for unparsable or inappropriate input
ScorerIF createVariant(java.lang.String baseName,
java.util.List<ScorerParam> parameters)
throws java.lang.IllegalArgumentException
May be able to share some (immutable) state with the original instance, and the value returned is immutable and may not be new.
java.lang.IllegalArgumentException - for unparsable or inappropriate input
|
DHD Multimedia Gallery V1.50.55 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||