Class

com.spotify.scio.extra.libsvm

SVMReader

Related Doc: package libsvm

Permalink

implicit final class SVMReader extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SVMReader
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SVMReader(self: ScioContext)

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  7. def libSVMFile(path: String, numFeatures: Int = 0): SCollection[(Double, SparseVector[Double])]

    Permalink

    Loads labeled data in the LIBSVM format into an SCollection[(Double, SparseVector)].

    Loads labeled data in the LIBSVM format into an SCollection[(Double, SparseVector)]. The LIBSVM format is a text-based format used by LIBSVM and LIBLINEAR. Each line represents a labeled sparse feature vector using the following format: [label index1:value1 index2:value2 ...] where the indices are one-based and in ascending order.

    path

    file or directory path in any Hadoop-supported file system URI

    numFeatures

    number of features, which will be determined from the input data if a nonpositive value is given. This is useful when the data is split into multiple files and you want to load them separately, because some features may not present in certain files, which leads to inconsistent feature dimensions.

    returns

    labeled data stored as an SCollection[(Double, SparseVector)]

  8. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped