
V - Vector typepublic class InverseDocumentFrequencyNormalization<V extends SparseNumberVector<?>> extends AbstractNormalization<V>
| Modifier and Type | Field and Description |
|---|---|
(package private) gnu.trove.map.TIntDoubleMap |
idf
The IDF storage.
|
(package private) int |
objcnt
The number of objects in the dataset.
|
factory| Constructor and Description |
|---|
InverseDocumentFrequencyNormalization()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected V |
filterSingleObject(V featureVector)
Normalize a single instance.
|
protected SimpleTypeInformation<? super V> |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
protected void |
prepareComplete()
Complete the initialization phase.
|
protected void |
prepareProcessInstance(V featureVector)
Process a single object during initialization.
|
protected boolean |
prepareStart(SimpleTypeInformation<V> in)
Return "true" when the normalization needs initialization (two-pass filtering!).
|
V |
restore(V featureVector)
Transforms a feature vector to the original attribute ranges.
|
convertedType, normalizeObjects, toString, transforminitializeOutputTypefilterclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfiltergnu.trove.map.TIntDoubleMap idf
int objcnt
public InverseDocumentFrequencyNormalization()
protected boolean prepareStart(SimpleTypeInformation<V> in)
AbstractConversionFilterprepareStart in class AbstractConversionFilter<V extends SparseNumberVector<?>,V extends SparseNumberVector<?>>in - Input type informationprotected void prepareProcessInstance(V featureVector)
AbstractConversionFilterprepareProcessInstance in class AbstractConversionFilter<V extends SparseNumberVector<?>,V extends SparseNumberVector<?>>featureVector - Object to processprotected void prepareComplete()
AbstractConversionFilterprepareComplete in class AbstractConversionFilter<V extends SparseNumberVector<?>,V extends SparseNumberVector<?>>protected V filterSingleObject(V featureVector)
AbstractConversionFilterfilterSingleObject in class AbstractConversionFilter<V extends SparseNumberVector<?>,V extends SparseNumberVector<?>>featureVector - Database object to normalizepublic V restore(V featureVector)
NormalizationfeatureVector - a feature vector to be transformed into original spaceprotected SimpleTypeInformation<? super V> getInputTypeRestriction()
AbstractConversionFiltergetInputTypeRestriction in class AbstractConversionFilter<V extends SparseNumberVector<?>,V extends SparseNumberVector<?>>