org.apache.spark.ml.odkl.texts

RandomProjectionsHasher

class RandomProjectionsHasher extends Transformer with HasInputCol with HasOutputCol with HasSeed

Created by eugeny.malyutin on 05.05.16.

Implementation of Locality-sensitive hashing(similar vectors - similar hashes) via Random Binary Projection as ml.Transformer requires DataFrame with inputCol as linalg.Vector as data representation and output's Long column with HashValue

If dimensions is not set - will search AttributeGroup in metadata

Linear Supertypes
HasSeed, HasOutputCol, HasInputCol, Transformer, PipelineStage, Logging, Params, Serializable, Serializable, Identifiable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RandomProjectionsHasher
  2. HasSeed
  3. HasOutputCol
  4. HasInputCol
  5. Transformer
  6. PipelineStage
  7. Logging
  8. Params
  9. Serializable
  10. Serializable
  11. Identifiable
  12. AnyRef
  13. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RandomProjectionsHasher()

  2. new RandomProjectionsHasher(uid: String)

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. final def $[T](param: Param[T]): T

    Attributes
    protected
    Definition Classes
    Params
  5. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. val basisSize: LongParam

  9. final def clear(param: Param[_]): RandomProjectionsHasher.this.type

    Definition Classes
    Params
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def copy(extra: ParamMap): Transformer

    Definition Classes
    RandomProjectionsHasher → Transformer → PipelineStage → Params
  12. def copyValues[T <: Params](to: T, extra: ParamMap): T

    Attributes
    protected
    Definition Classes
    Params
  13. final def defaultCopy[T <: Params](extra: ParamMap): T

    Attributes
    protected
    Definition Classes
    Params
  14. val dim: LongParam

  15. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  17. def explainParam(param: Param[_]): String

    Definition Classes
    Params
  18. def explainParams(): String

    Definition Classes
    Params
  19. final def extractParamMap(): ParamMap

    Definition Classes
    Params
  20. final def extractParamMap(extra: ParamMap): ParamMap

    Definition Classes
    Params
  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. final def get[T](param: Param[T]): Option[T]

    Definition Classes
    Params
  23. def getBasisSize: Long

  24. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  25. final def getDefault[T](param: Param[T]): Option[T]

    Definition Classes
    Params
  26. def getDim: Long

  27. final def getInputCol: String

    Definition Classes
    HasInputCol
  28. final def getOrDefault[T](param: Param[T]): T

    Definition Classes
    Params
  29. final def getOutputCol: String

    Definition Classes
    HasOutputCol
  30. def getParam(paramName: String): Param[Any]

    Definition Classes
    Params
  31. final def getSeed: Long

    Definition Classes
    HasSeed
  32. def getSparsity: Double

  33. final def hasDefault[T](param: Param[T]): Boolean

    Definition Classes
    Params
  34. def hasParam(paramName: String): Boolean

    Definition Classes
    Params
  35. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  36. final val inputCol: Param[String]

    Definition Classes
    HasInputCol
  37. final def isDefined(param: Param[_]): Boolean

    Definition Classes
    Params
  38. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  39. final def isSet(param: Param[_]): Boolean

    Definition Classes
    Params
  40. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  41. def log: Logger

    Attributes
    protected
    Definition Classes
    Logging
  42. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  43. def logDebug(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  44. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  45. def logError(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  46. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  47. def logInfo(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  48. def logName: String

    Attributes
    protected
    Definition Classes
    Logging
  49. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  50. def logTrace(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  51. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  52. def logWarning(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  53. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  56. final val outputCol: Param[String]

    Definition Classes
    HasOutputCol
  57. lazy val params: Array[Param[_]]

    Definition Classes
    Params
  58. final val seed: LongParam

    Definition Classes
    HasSeed
  59. final def set(paramPair: ParamPair[_]): RandomProjectionsHasher.this.type

    Attributes
    protected
    Definition Classes
    Params
  60. final def set(param: String, value: Any): RandomProjectionsHasher.this.type

    Attributes
    protected
    Definition Classes
    Params
  61. final def set[T](param: Param[T], value: T): RandomProjectionsHasher.this.type

    Definition Classes
    Params
  62. def setBasisSize(value: Long): RandomProjectionsHasher.this.type

  63. final def setDefault(paramPairs: ParamPair[_]*): RandomProjectionsHasher.this.type

    Attributes
    protected
    Definition Classes
    Params
  64. final def setDefault[T](param: Param[T], value: T): RandomProjectionsHasher.this.type

    Attributes
    protected
    Definition Classes
    Params
  65. def setDim(value: Long): RandomProjectionsHasher.this.type

  66. def setInputCol(value: String): RandomProjectionsHasher.this.type

  67. def setOutputCol(value: String): RandomProjectionsHasher.this.type

  68. def setSparsity(value: Double): RandomProjectionsHasher.this.type

  69. val sparsity: DoubleParam

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

    Definition Classes
    AnyRef
  71. def toString(): String

    Definition Classes
    Identifiable → AnyRef → Any
  72. def transform(dataset: DataFrame): DataFrame

    Definition Classes
    RandomProjectionsHasher → Transformer
  73. def transform(dataset: DataFrame, paramMap: ParamMap): DataFrame

    Definition Classes
    Transformer
  74. def transform(dataset: DataFrame, firstParamPair: ParamPair[_], otherParamPairs: ParamPair[_]*): DataFrame

    Definition Classes
    Transformer
    Annotations
    @varargs()
  75. def transformSchema(schema: StructType): StructType

    Definition Classes
    RandomProjectionsHasher → PipelineStage
    Annotations
    @DeveloperApi()
  76. def transformSchema(schema: StructType, logging: Boolean): StructType

    Attributes
    protected
    Definition Classes
    PipelineStage
    Annotations
    @DeveloperApi()
  77. val uid: String

    Definition Classes
    RandomProjectionsHasher → Identifiable
  78. def validateParams(): Unit

    Definition Classes
    Params
  79. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from HasSeed

Inherited from HasOutputCol

Inherited from HasInputCol

Inherited from Transformer

Inherited from PipelineStage

Inherited from Logging

Inherited from Params

Inherited from Serializable

Inherited from Serializable

Inherited from Identifiable

Inherited from AnyRef

Inherited from Any

getParam

setParam

Ungrouped