class ClassBalancer extends Estimator[ClassBalancerModel] with DefaultParamsWritable with HasInputCol with HasOutputCol with Wrappable with BasicLogging

An estimator that calculates the weights for balancing a dataset. For example, if the negative class is half the size of the positive class, the weights will be 2 for rows with negative classes and 1 for rows with positive classes. these weights can be used in weighted classifiers and regressors to correct for heavily skewed datasets. The inputCol should be the labels of the classes, and the output col will be the requisite weights.

Linear Supertypes
BasicLogging, Wrappable, RWrappable, PythonWrappable, BaseWrappable, HasOutputCol, HasInputCol, DefaultParamsWritable, MLWritable, Estimator[ClassBalancerModel], PipelineStage, Logging, Params, Serializable, Serializable, Identifiable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ClassBalancer
  2. BasicLogging
  3. Wrappable
  4. RWrappable
  5. PythonWrappable
  6. BaseWrappable
  7. HasOutputCol
  8. HasInputCol
  9. DefaultParamsWritable
  10. MLWritable
  11. Estimator
  12. PipelineStage
  13. Logging
  14. Params
  15. Serializable
  16. Serializable
  17. Identifiable
  18. AnyRef
  19. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ClassBalancer()
  2. new ClassBalancer(uid: String)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def $[T](param: Param[T]): T
    Attributes
    protected
    Definition Classes
    Params
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val broadcastJoin: BooleanParam
  7. lazy val classNameHelper: String
    Attributes
    protected
    Definition Classes
    BaseWrappable
  8. final def clear(param: Param[_]): ClassBalancer.this.type
    Definition Classes
    Params
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. def companionModelClassName: String
    Attributes
    protected
    Definition Classes
    BaseWrappable
  11. def copy(extra: ParamMap): Estimator[ClassBalancerModel]
    Definition Classes
    ClassBalancer → Estimator → PipelineStage → Params
  12. def copyValues[T <: Params](to: T, extra: ParamMap): T
    Attributes
    protected
    Definition Classes
    Params
  13. lazy val copyrightLines: String
    Attributes
    protected
    Definition Classes
    BaseWrappable
  14. final def defaultCopy[T <: Params](extra: ParamMap): T
    Attributes
    protected
    Definition Classes
    Params
  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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. def fit(dataset: Dataset[_]): ClassBalancerModel
    Definition Classes
    ClassBalancer → Estimator
  23. def fit(dataset: Dataset[_], paramMaps: Seq[ParamMap]): Seq[ClassBalancerModel]
    Definition Classes
    Estimator
    Annotations
    @Since( "2.0.0" )
  24. def fit(dataset: Dataset[_], paramMap: ParamMap): ClassBalancerModel
    Definition Classes
    Estimator
    Annotations
    @Since( "2.0.0" )
  25. def fit(dataset: Dataset[_], firstParamPair: ParamPair[_], otherParamPairs: ParamPair[_]*): ClassBalancerModel
    Definition Classes
    Estimator
    Annotations
    @Since( "2.0.0" ) @varargs()
  26. final def get[T](param: Param[T]): Option[T]
    Definition Classes
    Params
  27. def getBroadcastJoin: Boolean
  28. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. final def getDefault[T](param: Param[T]): Option[T]
    Definition Classes
    Params
  30. def getInputCol: String

    Definition Classes
    HasInputCol
  31. final def getOrDefault[T](param: Param[T]): T
    Definition Classes
    Params
  32. def getOutputCol: String

    Definition Classes
    HasOutputCol
  33. def getParam(paramName: String): Param[Any]
    Definition Classes
    Params
  34. final def hasDefault[T](param: Param[T]): Boolean
    Definition Classes
    Params
  35. def hasParam(paramName: String): Boolean
    Definition Classes
    Params
  36. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  37. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  38. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  39. val inputCol: Param[String]

    The name of the input column

    The name of the input column

    Definition Classes
    HasInputCol
  40. final def isDefined(param: Param[_]): Boolean
    Definition Classes
    Params
  41. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  42. final def isSet(param: Param[_]): Boolean
    Definition Classes
    Params
  43. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  44. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  45. def logBase(methodName: String): Unit
    Attributes
    protected
    Definition Classes
    BasicLogging
  46. def logClass(): Unit
    Definition Classes
    BasicLogging
  47. def logDebug(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  48. def logDebug(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  49. def logError(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  50. def logError(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  51. def logErrorBase(methodName: String, e: Exception): Unit
    Attributes
    protected
    Definition Classes
    BasicLogging
  52. def logFit[T](f: ⇒ T): T
    Definition Classes
    BasicLogging
  53. def logInfo(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  54. def logInfo(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  55. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  56. def logPredict[T](f: ⇒ T): T
    Definition Classes
    BasicLogging
  57. def logTrace(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  58. def logTrace(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  59. def logTrain[T](f: ⇒ T): T
    Definition Classes
    BasicLogging
  60. def logTransform[T](f: ⇒ T): T
    Definition Classes
    BasicLogging
  61. def logVerb[T](verb: String, f: ⇒ T): T
    Definition Classes
    BasicLogging
  62. def logWarning(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  63. def logWarning(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  64. def makePyFile(conf: CodegenConfig): Unit
    Definition Classes
    PythonWrappable
  65. def makeRFile(conf: CodegenConfig): Unit
    Definition Classes
    RWrappable
  66. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  67. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  68. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  69. val outputCol: Param[String]

    The name of the output column

    The name of the output column

    Definition Classes
    HasOutputCol
  70. lazy val params: Array[Param[_]]
    Definition Classes
    Params
  71. def pyAdditionalMethods: String
    Definition Classes
    PythonWrappable
  72. lazy val pyClassDoc: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  73. lazy val pyClassName: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  74. def pyExtraEstimatorImports: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  75. def pyExtraEstimatorMethods: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  76. lazy val pyInheritedClasses: Seq[String]
    Attributes
    protected
    Definition Classes
    PythonWrappable
  77. def pyInitFunc(): String
    Definition Classes
    PythonWrappable
  78. lazy val pyInternalWrapper: Boolean
    Attributes
    protected
    Definition Classes
    PythonWrappable
  79. lazy val pyObjectBaseClass: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  80. def pyParamArg[T](p: Param[T]): String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  81. def pyParamDefault[T](p: Param[T]): Option[String]
    Attributes
    protected
    Definition Classes
    PythonWrappable
  82. def pyParamGetter(p: Param[_]): String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  83. def pyParamSetter(p: Param[_]): String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  84. def pyParamsArgs: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  85. def pyParamsDefaults: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  86. lazy val pyParamsDefinitions: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  87. def pyParamsGetters: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  88. def pyParamsSetters: String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  89. def pythonClass(): String
    Attributes
    protected
    Definition Classes
    PythonWrappable
  90. def rClass(): String
    Attributes
    protected
    Definition Classes
    RWrappable
  91. def rDocString: String
    Attributes
    protected
    Definition Classes
    RWrappable
  92. def rExtraBodyLines: String
    Attributes
    protected
    Definition Classes
    RWrappable
  93. def rExtraInitLines: String
    Attributes
    protected
    Definition Classes
    RWrappable
  94. lazy val rFuncName: String
    Attributes
    protected
    Definition Classes
    RWrappable
  95. lazy val rInternalWrapper: Boolean
    Attributes
    protected
    Definition Classes
    RWrappable
  96. def rParamArg[T](p: Param[T]): String
    Attributes
    protected
    Definition Classes
    RWrappable
  97. def rParamsArgs: String
    Attributes
    protected
    Definition Classes
    RWrappable
  98. def rSetterLines: String
    Attributes
    protected
    Definition Classes
    RWrappable
  99. def save(path: String): Unit
    Definition Classes
    MLWritable
    Annotations
    @Since( "1.6.0" ) @throws( ... )
  100. final def set(paramPair: ParamPair[_]): ClassBalancer.this.type
    Attributes
    protected
    Definition Classes
    Params
  101. final def set(param: String, value: Any): ClassBalancer.this.type
    Attributes
    protected
    Definition Classes
    Params
  102. final def set[T](param: Param[T], value: T): ClassBalancer.this.type
    Definition Classes
    Params
  103. def setBroadcastJoin(value: Boolean): ClassBalancer.this.type
  104. final def setDefault(paramPairs: ParamPair[_]*): ClassBalancer.this.type
    Attributes
    protected
    Definition Classes
    Params
  105. final def setDefault[T](param: Param[T], value: T): ClassBalancer.this.type
    Attributes
    protected
    Definition Classes
    Params
  106. def setInputCol(value: String): ClassBalancer.this.type

    Definition Classes
    HasInputCol
  107. def setOutputCol(value: String): ClassBalancer.this.type

    Definition Classes
    HasOutputCol
  108. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  109. def toString(): String
    Definition Classes
    Identifiable → AnyRef → Any
  110. def transformSchema(schema: StructType): StructType
    Definition Classes
    ClassBalancer → PipelineStage
  111. def transformSchema(schema: StructType, logging: Boolean): StructType
    Attributes
    protected
    Definition Classes
    PipelineStage
    Annotations
    @DeveloperApi()
  112. val uid: String
    Definition Classes
    ClassBalancerBasicLogging → Identifiable
  113. val ver: String
    Definition Classes
    BasicLogging
  114. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  115. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  116. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  117. def write: MLWriter
    Definition Classes
    DefaultParamsWritable → MLWritable

Inherited from BasicLogging

Inherited from Wrappable

Inherited from RWrappable

Inherited from PythonWrappable

Inherited from BaseWrappable

Inherited from HasOutputCol

Inherited from HasInputCol

Inherited from DefaultParamsWritable

Inherited from MLWritable

Inherited from Estimator[ClassBalancerModel]

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

param

setParam

Ungrouped