Class

edu.cmu.ml.rtw.pra.features

SubgraphFeatureGenerator

Related Doc: package features

Permalink

abstract class SubgraphFeatureGenerator[T <: Instance] extends FeatureGenerator[T]

Linear Supertypes
FeatureGenerator[T], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SubgraphFeatureGenerator
  2. FeatureGenerator
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SubgraphFeatureGenerator(params: JValue, outputter: Outputter, featureDict: MutableConcurrentDictionary = new MutableConcurrentDictionary, fileUtil: FileUtil = new FileUtil())

    Permalink

Abstract Value Members

  1. abstract def createExtractors(params: JValue): Seq[FeatureExtractor[T]]

    Permalink
  2. abstract def createPathFinder(): PathFinder[T]

    Permalink

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def constructMatrixRow(instance: T): Option[MatrixRow]

    Permalink

    Constructs a MatrixRow for a single instance.

    Constructs a MatrixRow for a single instance. This is intended for SGD-style training or online prediction. Note that this could be _really_ inefficient for some kinds of feature generators, and so far is only implemented for SFE.

    Definition Classes
    SubgraphFeatureGeneratorFeatureGenerator
  7. def createMatrixFromData(data: Dataset[T]): FeatureMatrix

    Permalink
  8. def createMatrixRow(instance: T, features: Seq[Int]): MatrixRow

    Permalink
  9. def createTestMatrix(data: Dataset[T]): FeatureMatrix

    Permalink

    Constructs a matrix for the test data.

    Constructs a matrix for the test data. In general, if this step is dependent on training (because, for instance, a feature set was selected at training time), the FeatureGenerator should save that state internally, and use it to do this computation. Not all implementations need internal state to do this, but some do.

    Definition Classes
    SubgraphFeatureGeneratorFeatureGenerator
  10. def createTrainingMatrix(data: Dataset[T]): FeatureMatrix

    Permalink

    Takes the data, probably does some random walks (or maybe some matrix multiplications, or a few other possibilities), and returns a FeatureMatrix.

    Takes the data, probably does some random walks (or maybe some matrix multiplications, or a few other possibilities), and returns a FeatureMatrix.

    Definition Classes
    SubgraphFeatureGeneratorFeatureGenerator
  11. val emptySubgraph: Subgraph

    Permalink
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def extractFeatures(subgraphs: Map[T, Subgraph]): FeatureMatrix

    Permalink
  15. def extractFeatures(instance: T, subgraph: Subgraph): Option[MatrixRow]

    Permalink
  16. def extractFeaturesAsStrings(instance: T, subgraph: Subgraph): Seq[String]

    Permalink
  17. val featureDict: MutableConcurrentDictionary

    Permalink
  18. val featureExtractors: Seq[FeatureExtractor[T]]

    Permalink
  19. val featureParamKeys: Seq[String]

    Permalink
  20. val featureSize: Int

    Permalink
  21. def featureToIndex(feature: String): Int

    Permalink
  22. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. implicit val formats: DefaultFormats.type

    Permalink
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def getFeatureNames(): Array[String]

    Permalink

    Returns a string representation of the features in the feature matrix.

    Returns a string representation of the features in the feature matrix. This need only be defined after createTrainingMatrix is called once, and calling removeZeroWeightFeatures may change the output of this function (because the training and test matrices may have different feature spaces; see comments above).

    Definition Classes
    SubgraphFeatureGeneratorFeatureGenerator
  26. def getLocalSubgraph(instance: T): Subgraph

    Permalink
  27. def getLocalSubgraphs(data: Dataset[T]): Map[T, Subgraph]

    Permalink
  28. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  29. val includeBias: Boolean

    Permalink
  30. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  31. val logLevel: Int

    Permalink
  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. lazy val pathFinder: PathFinder[T]

    Permalink
  36. def removeZeroWeightFeatures(weights: Seq[Double]): Seq[Double]

    Permalink

    For efficiency in creating the test matrix, we might drop some features if they have zero weight.

    For efficiency in creating the test matrix, we might drop some features if they have zero weight. In some FeatureGenerator implementations, computing feature values can be very expensive, so this allows us to save some work. The return value is the updated set of weights, with any desired values removed. Yes, this potentially changes the indices and thus the meaning of the feature matrix. Thus the updated weights can't be used anymore on the training matrix, only on the test matrix.

    Definition Classes
    SubgraphFeatureGeneratorFeatureGenerator
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  39. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from FeatureGenerator[T]

Inherited from AnyRef

Inherited from Any

Ungrouped