cc.factorie.variable

HashFeatureVectorVariable

abstract class HashFeatureVectorVariable extends VectorVariable with FeatureVectorVar[Any]

A variable whose value is a SparseTensor1 whose length matches the size of a DiscreteDomain, and whose dimensions each correspond to the result of running a hash function on elements added to the vector using +=. These can be used as feature vectors where one wants to avoid a large or growing CategoricalDomain. The 'dimensionDomain' is abstract.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HashFeatureVectorVariable
  2. FeatureVectorVar
  3. VectorVariable
  4. VectorVar
  5. MutableTensorVar
  6. MutableVar
  7. TensorVar
  8. Var
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HashFeatureVectorVariable(initVals: Iterable[Any])

  2. new HashFeatureVectorVariable()

Type Members

  1. case class IncrementTensorDiff(t: Tensor) extends Diff with Product with Serializable

    Definition Classes
    MutableTensorVar
  2. case class IncrementTensorIndexDiff(index: Int, incr: Double) extends Diff with Product with Serializable

    Definition Classes
    MutableTensorVar
  3. case class SetTensorDiff(oldValue: MutableTensorVar.Value, newValue: MutableTensorVar.Value) extends Diff with Product with Serializable

    Definition Classes
    MutableTensorVar
  4. case class UpdateTensorDiff(index: Int, oldValue: Double, newValue: Double) extends Diff with Product with Serializable

    Definition Classes
    MutableTensorVar
  5. type Value = la.Tensor1

    Definition Classes
    VectorVariableVectorVarTensorVarVar
  6. case class ZeroTensorDiff(prev: Array[Double]) extends Diff with Product with Serializable

    Definition Classes
    MutableTensorVar

Abstract Value Members

  1. abstract def domain: DiscreteDomain

    Definition Classes
    HashFeatureVectorVariableVectorVar

Concrete Value Members

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

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

    Definition Classes
    Any
  3. def !==(other: Var): Boolean

    Definition Classes
    Var
  4. final def ##(): Int

    Definition Classes
    AnyRef → Any
  5. def ++=(cs: Iterable[Any]): Unit

  6. def +=(c: Any): Unit

  7. def +=(c: Any, incr: Double): Unit

  8. final def :=(newValue: Value): Unit

    Definition Classes
    MutableVar
  9. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  11. def ===(other: Var): Boolean

    Value comparisons (as distinct from variable pointer equality)

    Value comparisons (as distinct from variable pointer equality)

    Definition Classes
    Var
  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def contains(index: Int): Boolean

    Definition Classes
    VectorVar
  15. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. def increment(incr: Tensor)(implicit d: DiffList): Unit

    Definition Classes
    MutableTensorVar
  21. def increment(index: Int, incr: Double)(implicit d: DiffList): Unit

    Definition Classes
    MutableTensorVar
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  26. def printName: String

    Definition Classes
    Var
  27. def set(newValue: Value)(implicit d: DiffList): Unit

    Assign a new value to this variable

    Assign a new value to this variable

    Definition Classes
    MutableTensorVarMutableVar
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  29. def toString(): String

    Definition Classes
    Var → AnyRef → Any
  30. def update(index: Int, newValue: Double)(implicit d: DiffList): Unit

    Definition Classes
    MutableTensorVar
  31. final def value: Value

    Abstract method to return the value of this variable.

    Abstract method to return the value of this variable.

    Definition Classes
    MutableTensorVarMutableVarTensorVarVar
    Annotations
    @inline()
  32. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def zero(implicit d: DiffList): Unit

    Definition Classes
    MutableTensorVar

Inherited from FeatureVectorVar[Any]

Inherited from VectorVariable

Inherited from VectorVar

Inherited from MutableTensorVar

Inherited from MutableVar

Inherited from TensorVar

Inherited from Var

Inherited from AnyRef

Inherited from Any

Ungrouped