Class

org.clulab.learning

Dataset

Related Doc: package learning

Permalink

abstract class Dataset[L, F] extends Serializable

Parent class for classification datasets User: mihais Date: 4/23/13 Last Modified: Fix compiler issue: import scala.io.Source.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Dataset
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Dataset()

    Permalink
  2. new Dataset(labelLexicon: Lexicon[L], featureLexicon: Lexicon[F], labels: ArrayBuffer[Int])

    Permalink

Abstract Value Members

  1. abstract def +=(datum: Datum[L, F]): Unit

    Permalink
  2. abstract def featuresCounter(datumOffset: Int): Counter[Int]

    Permalink
  3. abstract def keepOnly(featuresToKeep: Set[Int]): Dataset[L, F]

    Permalink

    Creates a new dataset keeping only the features in the given set

  4. abstract def mkDatum(row: Int): Datum[L, F]

    Permalink

    Returns the Datum for given row

  5. abstract def removeFeaturesByFrequency(threshold: Int): Dataset[L, F]

    Permalink

    Removes features that appear less than threshold times in this dataset.

  6. abstract def removeFeaturesByInformationGain(pctToKeep: Double): Dataset[L, F]

    Permalink

    Removes features by information gain.

  7. abstract def toCounterDataset: CounterDataset[L, F]

    Permalink

    Convert this dataset to a CounterDataset

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. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. val featureLexicon: Lexicon[F]

    Permalink
  9. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def indices: Range

    Permalink
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. val labelLexicon: Lexicon[L]

    Permalink
  15. val labels: ArrayBuffer[Int]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  19. def numFeatures: Int

    Permalink
  20. def numLabels: Int

    Permalink
  21. def size: Int

    Permalink

    number of training examples

  22. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped