Package weka.classifiers.lazy.AM.lattice
Class HeterogeneousLattice
- java.lang.Object
- 
- weka.classifiers.lazy.AM.lattice.HeterogeneousLattice
 
- 
- All Implemented Interfaces:
- Lattice
 
 public class HeterogeneousLattice extends java.lang.Object implements Lattice Same as a normal lattice, except no supracontext is deemed heterogeneous and hence everything is kept. Represents a lattice which is to be combined with other sublattices to determine predictions later on. When a sublattice is filled, there are two main differences:- Only a part of a an exemplar's features are used to assign lattice locations.
- No supracontext is ever determined to be heterogeneous. This is, of course, less efficient in some ways.
 In terms of processing power, more is required to use sublattices. However, using threads the processing of each can be done in parallel. 
- 
- 
Constructor SummaryConstructors Constructor Description HeterogeneousLattice(int partitionIndex)Initializes Supracontextual lattice to a 2^n length array of Supracontexts, as well as the empty and the heterogeneous supracontexts.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfill(SubcontextList subList)Fill the lattice with given subcontexts.java.util.Set<Supracontext>getSupracontexts()voidinsert(Subcontext sub, Label label)Inserts sub into the lattice, into location given by labeljava.lang.StringsupraListToString()
 
- 
- 
- 
Constructor Detail- 
HeterogeneousLatticepublic HeterogeneousLattice(int partitionIndex) Initializes Supracontextual lattice to a 2^n length array of Supracontexts, as well as the empty and the heterogeneous supracontexts.- Parameters:
- partitionIndex- which label partition to use in assigning subcontexts to supracontexts
 
 
- 
 - 
Method Detail- 
fillpublic void fill(SubcontextList subList) Description copied from interface:LatticeFill the lattice with given subcontexts. This is meant to be done only once for a given Lattice instance.
 - 
insertpublic void insert(Subcontext sub, Label label) Inserts sub into the lattice, into location given by label- Parameters:
- sub- Subcontext to be inserted
- label- label to be assigned to the subcontext
 
 - 
getSupracontextspublic java.util.Set<Supracontext> getSupracontexts() - Specified by:
- getSupracontextsin interface- Lattice
- Returns:
- The list of supracontexts that were created by filling the supracontextual lattice. From this, you can compute the analogical set.
 
 - 
supraListToStringpublic java.lang.String supraListToString() - Returns:
- A string representation of the list of Supracontexts created when the Lattice was filled
 
 
- 
 
-