edu.cmu.ml.rtw.pra.features

NodeSubgraphFeatureGenerator

class NodeSubgraphFeatureGenerator extends SubgraphFeatureGenerator[NodeInstance]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NodeSubgraphFeatureGenerator
  2. SubgraphFeatureGenerator
  3. FeatureGenerator
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NodeSubgraphFeatureGenerator(params: JValue, relation: String, relationMetadata: RelationMetadata, outputter: Outputter, fileUtil: FileUtil = new com.mattg.util.FileUtil())

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

    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
  9. def createExtractors(params: JValue): Seq[FeatureExtractor[NodeInstance]]

  10. def createMatrixFromData(data: Dataset[NodeInstance]): FeatureMatrix

    Definition Classes
    SubgraphFeatureGenerator
  11. def createMatrixRow(instance: NodeInstance, features: Seq[Int]): MatrixRow

    Definition Classes
    SubgraphFeatureGenerator
  12. def createPathFinder(): PathFinder[NodeInstance]

  13. def createTestMatrix(data: Dataset[NodeInstance]): FeatureMatrix

    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
  14. def createTrainingMatrix(data: Dataset[NodeInstance]): FeatureMatrix

    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
  15. val emptySubgraph: Subgraph

    Definition Classes
    SubgraphFeatureGenerator
  16. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  18. def extractFeatures(subgraphs: Map[NodeInstance, Subgraph]): FeatureMatrix

    Definition Classes
    SubgraphFeatureGenerator
  19. def extractFeatures(instance: NodeInstance, subgraph: Subgraph): Option[MatrixRow]

    Definition Classes
    SubgraphFeatureGenerator
  20. def extractFeaturesAsStrings(instance: NodeInstance, subgraph: Subgraph): Seq[String]

    Definition Classes
    SubgraphFeatureGenerator
  21. val featureDict: MutableConcurrentDictionary

    Definition Classes
    SubgraphFeatureGenerator
  22. val featureExtractors: Seq[FeatureExtractor[NodeInstance]]

    Definition Classes
    SubgraphFeatureGenerator
  23. val featureParamKeys: Seq[String]

    Definition Classes
    SubgraphFeatureGenerator
  24. val featureSize: Int

    Definition Classes
    SubgraphFeatureGenerator
  25. def finalize(): Unit

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

    Definition Classes
    SubgraphFeatureGenerator
  27. final def getClass(): Class[_]

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

    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
  29. def getLocalSubgraph(instance: NodeInstance): Subgraph

    Definition Classes
    SubgraphFeatureGenerator
  30. def getLocalSubgraphs(data: Dataset[NodeInstance]): Map[NodeInstance, Subgraph]

    Definition Classes
    SubgraphFeatureGenerator
  31. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  32. def hashFeature(feature: String): Int

    Definition Classes
    SubgraphFeatureGenerator
  33. val includeBias: Boolean

    Definition Classes
    SubgraphFeatureGenerator
  34. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  35. val logLevel: Int

    Definition Classes
    SubgraphFeatureGenerator
  36. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  37. final def notify(): Unit

    Definition Classes
    AnyRef
  38. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  39. lazy val pathFinder: PathFinder[NodeInstance]

    Definition Classes
    SubgraphFeatureGenerator
  40. def removeZeroWeightFeatures(weights: Seq[Double]): Seq[Double]

    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
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  42. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from FeatureGenerator[NodeInstance]

Inherited from AnyRef

Inherited from Any

Ungrouped