|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.gla.dcs.renaissance.iqir.SubspaceTracker
@Persistent @Deprecated public class SubspaceTracker
Track subspaces defined by a set of vectors
Builds a subspace using the incremental SVD implementation. The only difference with incremental SVD is that this class handles sparse vectors (so that all the operations in the SVD are on dense vectors).
This class
Field Summary | |
---|---|
it.unimi.dsi.fastutil.ints.Int2IntRBTreeMap |
map
Deprecated. Map a word id to a new id such that we deal only with dense matrices |
bpiwowar.maths.svd.IncrementalSVD |
negativesvd
Deprecated. Our current SVD decomposition (negative subspace) |
bpiwowar.maths.svd.IncrementalSVD |
svd
Deprecated. Our current SVD decomposition |
Constructor Summary | |
---|---|
SubspaceTracker()
Deprecated. |
Method Summary | |
---|---|
void |
add(double weight,
bpiwowar.maths.matrix.DoubleMatrix1D weightedVector)
Deprecated. Add a set of words |
void |
add(double sigma,
bpiwowar.maths.matrix.DoubleMatrix1D u,
int[] localToGlobalMap)
Deprecated. Add a sigma * u to the column space, using the map to go from one id to another. |
void |
add(bpiwowar.maths.matrix.DoubleMatrix1D weightedVector)
Deprecated. Add a set of words |
void |
addLocal(boolean negative,
bpiwowar.maths.matrix.DenseDoubleMatrix1D weightedLocalVector)
Deprecated. Add a dense vector (i.e. |
int[] |
getLocalToGlobalTermIdMap()
Deprecated. Return the reverse map |
int |
getNumberOfSpannedColumns()
Deprecated. |
int |
getNumberOfTerms()
Deprecated. |
bpiwowar.maths.matrix.DenseDoubleMatrix1D |
getSum()
Deprecated. |
void |
setCompactionInterval(int compactInterval)
Deprecated. Set the compaction interval (i.e. |
void |
setStoreVectorSum(boolean b)
Deprecated. Should we store the sum of vectors? |
void |
trim(boolean trimMatrices)
Deprecated. Reduce as much as possible the space taken by the representation, by removing terms which are not needed anymore (their row in the SVD decomposition is 0), and by adjusting the matrix size if needed |
void |
updateMap(int[] list)
Deprecated. Update our global to local map with another map (i.e., the global ids of the other map will be known by ours) |
void |
updateMap(it.unimi.dsi.fastutil.ints.Int2IntMap otherMap)
Deprecated. Update our global to local map with another map (i.e., the global ids of the other map will be known by ours) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public it.unimi.dsi.fastutil.ints.Int2IntRBTreeMap map
public bpiwowar.maths.svd.IncrementalSVD svd
public bpiwowar.maths.svd.IncrementalSVD negativesvd
Constructor Detail |
---|
public SubspaceTracker()
Method Detail |
---|
public void add(bpiwowar.maths.matrix.DoubleMatrix1D weightedVector)
weightedVector
- The word vector within the global term id spacepublic void add(double weight, bpiwowar.maths.matrix.DoubleMatrix1D weightedVector)
weight
- The global weight for the vectorweightedVector
- The word vector within the global term id spacepublic void addLocal(boolean negative, bpiwowar.maths.matrix.DenseDoubleMatrix1D weightedLocalVector)
weightedLocalVector
- The vector to addpublic void add(double sigma, bpiwowar.maths.matrix.DoubleMatrix1D u, int[] localToGlobalMap)
sigma
- The sigma for the u dimensionu
- The vector to addlocalToGlobalMap
- The map to convert a local index (in u) to a global word idpublic int[] getLocalToGlobalTermIdMap()
tracker
-
public void updateMap(it.unimi.dsi.fastutil.ints.Int2IntMap otherMap)
otherMap
- The other map to includepublic void updateMap(int[] list)
list
- The list of global term ids to addpublic int getNumberOfSpannedColumns()
public int getNumberOfTerms()
public void trim(boolean trimMatrices)
trimMatrices
- True if the matrices of the SVD decomposition should be
trimmed after the cleaning processpublic void setCompactionInterval(int compactInterval)
compactInterval
- public void setStoreVectorSum(boolean b)
b
- True to store, false to not storepublic bpiwowar.maths.matrix.DenseDoubleMatrix1D getSum()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |