Class

org.clulab.learning

BVFDataset

Related Doc: package learning

Permalink

class BVFDataset[L, F] extends Dataset[L, F]

Dataset containing only BVFDatums Important note: to encode feature values > 1, simply store the same feature multiple times (equal to feature value)!

L

Type of labels

F

Type of features

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

Instance Constructors

  1. new BVFDataset()

    Permalink
  2. new BVFDataset(ll: Lexicon[L], fl: Lexicon[F], ls: ArrayBuffer[Int], features: ArrayBuffer[Array[Int]])

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +=(datum: Datum[L, F]): Unit

    Permalink
    Definition Classes
    BVFDatasetDataset
  4. final def ==(arg0: Any): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def computeInformationGains(fs: ArrayBuffer[Array[Int]], ls: ArrayBuffer[Int]): (InformationGain, Map[Int, InformationGain])

    Permalink
  8. def countFeatures(fs: ArrayBuffer[Array[Int]], threshold: Int): Set[Int]

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

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

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

    Permalink
    Definition Classes
    Dataset
  12. val features: ArrayBuffer[Array[Int]]

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

    Permalink
    Definition Classes
    BVFDatasetDataset
  14. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Dataset
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def keepOnly(featuresToKeep: Set[Int]): Dataset[L, F]

    Permalink

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

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

    Definition Classes
    BVFDatasetDataset
  20. def keepOnlyRow(feats: Array[Int], featureIndexMap: HashMap[Int, Int]): Array[Int]

    Permalink
  21. val labelLexicon: Lexicon[L]

    Permalink
    Definition Classes
    Dataset
  22. val labels: ArrayBuffer[Int]

    Permalink
    Definition Classes
    Dataset
  23. def mkDatum(row: Int): Datum[L, F]

    Permalink

    Returns the Datum for given row

    Returns the Datum for given row

    Definition Classes
    BVFDatasetDataset
  24. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  27. def numFeatures: Int

    Permalink
    Definition Classes
    Dataset
  28. def numLabels: Int

    Permalink
    Definition Classes
    Dataset
  29. def removeFeaturesByFrequency(threshold: Int): Dataset[L, F]

    Permalink

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

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

    Definition Classes
    BVFDatasetDataset
  30. def removeFeaturesByInformationGain(pctToKeep: Double): Dataset[L, F]

    Permalink

    Removes features by information gain.

    Removes features by information gain.

    Definition Classes
    BVFDatasetDataset
  31. def size: Int

    Permalink

    number of training examples

    number of training examples

    Definition Classes
    Dataset
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def toCounterDataset: CounterDataset[L, F]

    Permalink

    Convert this dataset to a CounterDataset

    Convert this dataset to a CounterDataset

    Definition Classes
    BVFDatasetDataset
  34. def toString(): String

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

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

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

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

Inherited from Dataset[L, F]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped