Package org.apache.solr.ltr.norm
Class Normalizer
java.lang.Object
org.apache.solr.ltr.norm.Normalizer
- Direct Known Subclasses:
IdentityNormalizer,MinMaxNormalizer,StandardNormalizer
A normalizer normalizes the value of a feature. After the feature values have been computed, the
normalize(float) methods will be called and the resulting values will be used
by the model.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.Explanationexplain(org.apache.lucene.search.Explanation explain) static NormalizergetInstance(SolrResourceLoader solrResourceLoader, String className, Map<String, Object> params) abstract floatnormalize(float value) abstract LinkedHashMap<String, Object> protected abstract voidvalidate()As part of creation of a normalizer instance, this function confirms that the normalizer parameters are valid.
-
Constructor Details
-
Normalizer
public Normalizer()
-
-
Method Details
-
normalize
public abstract float normalize(float value) -
paramsToMap
-
explain
public org.apache.lucene.search.Explanation explain(org.apache.lucene.search.Explanation explain) -
getInstance
public static Normalizer getInstance(SolrResourceLoader solrResourceLoader, String className, Map<String, Object> params) -
validate
As part of creation of a normalizer instance, this function confirms that the normalizer parameters are valid.- Throws:
NormalizerException- Normalizer Exception
-