cc.factorie.app.classify

InfoGain

class InfoGain[L <: DiscreteVar, F <: VectorVar] extends DenseDoubleSeq

Calculate the information gain between all features of Instances and the Instances' labels.

Since

0.10

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

Instance Constructors

  1. new InfoGain(labels: Iterable[L], f: (L) ⇒ F)

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. def =+(a: Array[Double], offset: Int, f: Double): Unit

    Increment given array (starting at offset index) with contents of this DoubleSeq, multiplied by factor f.

    Increment given array (starting at offset index) with contents of this DoubleSeq, multiplied by factor f.

    Definition Classes
    DenseDoubleSeqDoubleSeq
  5. final def =+(a: Array[Double], f: Double): Unit

    Definition Classes
    DoubleSeq
  6. final def =+(a: Array[Double], offset: Int): Unit

    Definition Classes
    DoubleSeq
  7. final def =+(a: Array[Double]): Unit

    Definition Classes
    DoubleSeq
  8. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  10. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Append a string representation of this DoubleSeq to the StringBuilder.

    Append a string representation of this DoubleSeq to the StringBuilder.

    Definition Classes
    DoubleSeq
  11. def apply(i: Int): Double

    Definition Classes
    InfoGainDoubleSeq
  12. def asArray: Array[Double]

    Return the values as an Array[Double].

    Return the values as an Array[Double]. Not guaranteed to be a copy; in fact if it is possible to return a pointer to an internal array, it will simply return this.

    Definition Classes
    DoubleSeq
  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. def asSeq: Seq[Double]

    With uncopied contents

    With uncopied contents

    Definition Classes
    DoubleSeq
  15. var baseEntropy: Double

  16. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def contains(d: Double): Boolean

    Definition Classes
    DenseDoubleSeqDoubleSeq
  18. def containsNaN: Boolean

    Definition Classes
    DenseDoubleSeqDoubleSeq
  19. def different(t: DoubleSeq, threshold: Double): Boolean

    Definition Classes
    DoubleSeq
  20. val domain: variable.DiscreteDomain

  21. def entropy: Double

    Assumes that the values are already normalized to sum to 1.

    Assumes that the values are already normalized to sum to 1.

    Definition Classes
    DoubleSeq
  22. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. def foldLeft[B](z: B)(f: (B, Double) ⇒ B): B

    Definition Classes
    DoubleSeq
  26. def forall(f: (Double) ⇒ Boolean): Boolean

    Definition Classes
    DoubleSeq
  27. def forallElements(f: (Int, Double) ⇒ Boolean): Boolean

    Definition Classes
    DoubleSeq
  28. def foreach(f: (Double) ⇒ Unit): Unit

    Definition Classes
    DoubleSeq
  29. def foreachActiveElement(f: (Int, Double) ⇒ Unit): Unit

    Definition Classes
    DenseDoubleSeqDoubleSeq
  30. def foreachElement(f: (Int, Double) ⇒ Unit): Unit

    Definition Classes
    DoubleSeq
  31. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  33. def indexOf(d: Double): Int

    Definition Classes
    DenseDoubleSeqDoubleSeq
  34. def infinityNorm: Double

    Definition Classes
    DenseDoubleSeqDoubleSeq
  35. def init(labels: Iterable[L]): Unit

    Attributes
    protected
  36. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  37. def jsDivergence(p: DoubleSeq): Double

    Assumes that the values are already normalized to sum to 1.

    Assumes that the values are already normalized to sum to 1.

    Definition Classes
    DoubleSeq
  38. def klDivergence(p: DoubleSeq): Double

    Assumes that the values in both DoubleSeq are already normalized to sum to 1.

    Assumes that the values in both DoubleSeq are already normalized to sum to 1.

    Definition Classes
    DoubleSeq
  39. def l2Similarity(t: DoubleSeq): Double

    Definition Classes
    DoubleSeq
  40. def length: Int

    Definition Classes
    InfoGainDoubleSeq
  41. def map(f: (Double) ⇒ Double): DoubleSeq

    Definition Classes
    DoubleSeq
  42. def max: Double

    Definition Classes
    DenseDoubleSeqDoubleSeq
  43. def maxIndex: Int

    Definition Classes
    DenseDoubleSeqDoubleSeq
  44. def maxIndex2: (Int, Int)

    Definition Classes
    DenseDoubleSeqDoubleSeq
  45. def min: Double

    Definition Classes
    DenseDoubleSeqDoubleSeq
  46. def mkString: String

    Definition Classes
    DoubleSeq
  47. def mkString(sep: String): String

    Definition Classes
    DoubleSeq
  48. def mkString(start: String, sep: String, end: String): String

    Definition Classes
    DoubleSeq
  49. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  52. def oneNorm: Double

    Definition Classes
    DenseDoubleSeqDoubleSeq
  53. def sampleIndex(normalizer: Double)(implicit r: Random): Int

    Definition Classes
    DenseDoubleSeqDoubleSeq
  54. def sampleIndex(implicit r: Random): Int

    Careful, for many subclasses this is inefficient because it calls the method "sum" to get the normalizer.

    Careful, for many subclasses this is inefficient because it calls the method "sum" to get the normalizer.

    Definition Classes
    DoubleSeq
  55. final def size: Int

    Definition Classes
    DoubleSeq
  56. def sum: Double

    Definition Classes
    DenseDoubleSeqDoubleSeq
  57. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  58. def toArray: Array[Double]

    Return the values as an Array[Double].

    Return the values as an Array[Double]. Guaranteed to be a copy, not just a pointer to an internal array that would change with changes to the DoubleSeq

    Definition Classes
    DenseDoubleSeqDoubleSeq
  59. def toSeq: Seq[Double]

    With copied contents

    With copied contents

    Definition Classes
    DoubleSeq
  60. def toString(): String

    Definition Classes
    AnyRef → Any
  61. def top(n: Int): TopN[String]

    Return records for the n elements with the largest values.

    Return records for the n elements with the largest values.

    Definition Classes
    InfoGainDoubleSeq
  62. final def twoNorm: Double

    Definition Classes
    DoubleSeq
  63. def twoNormSquared: Double

    Definition Classes
    DenseDoubleSeqDoubleSeq
  64. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DenseDoubleSeq

Inherited from DoubleSeq

Inherited from AnyRef

Inherited from Any

Ungrouped