Object

com.databricks.labs.automl.model.tools.split

SplitOperators

Related Doc: package split

Permalink

object SplitOperators extends SparkSessionWrapper

Linear Supertypes
SparkSessionWrapper, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SplitOperators
  2. SparkSessionWrapper
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 chronologicalSplit(data: DataFrame, seed: Long, trainSplitChronologicalColumn: String, trainSplitChronologicalRandomPercentage: Double, trainPortion: Double): Array[DataFrame]

    Permalink
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def genTestTrain(data: DataFrame, seed: Long, uniqueLabels: Array[Row], trainSplitMethod: String, labelCol: String, trainPortion: Double, syntheticCol: String = "syntheticColumn", trainSplitChronologicalColumn: String = "datetime", trainSplitChronologicalRandomPercentage: Double = 0.05, reductionFactor: Double = 0.5): Array[DataFrame]

    Permalink
  11. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def kSamplingSplit(data: DataFrame, seed: Long, uniqueLabels: Array[Row], syntheticCol: String, labelCol: String, trainPortion: Double): Array[DataFrame]

    Permalink

    Split methodology for getting test and train of KSample up-sampled data.
    Both data sets are split into test and train.

    Split methodology for getting test and train of KSample up-sampled data.
    Both data sets are split into test and train.
    The returned collections are a union of the real train + synthetic train, but only the real test data.

    data

    DataFrame: The full data set (containing a synthetic column that indicates whether the data is real or not)

    seed

    Long: A seed value that is consistent across both data sets

    uniqueLabels

    Array[Row]: The unique entries of the label values

    returns

    Array[DataFrame] of Array(trainData, testData)

    Since

    0.5.1

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

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

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

    Permalink
    Definition Classes
    AnyRef
  18. def optimizeTestTrain(train: DataFrame, test: DataFrame, optimalParts: Int, shuffle: Boolean = false): (DataFrame, DataFrame)

    Permalink
  19. def overSampleSplit(data: DataFrame, seed: Long, labelCol: String, trainPortion: Double): Array[DataFrame]

    Permalink
  20. lazy val sc: SparkContext

    Permalink
    Definition Classes
    SparkSessionWrapper
  21. lazy val spark: SparkSession

    Permalink
    Definition Classes
    SparkSessionWrapper
  22. def stratifiedSplit(data: DataFrame, seed: Long, uniqueLabels: Array[Row], labelCol: String, trainPortion: Double): Array[DataFrame]

    Permalink

    Method for stratification of the test/train around the unique values of the label column This mode is recommended for label value distributions in classification that have relatively balanced and uniformly distributed instances of the classes.

    Method for stratification of the test/train around the unique values of the label column This mode is recommended for label value distributions in classification that have relatively balanced and uniformly distributed instances of the classes. If there is significant skew, it is highly recommended to use under or over sampling.

    data

    Dataframe that is the input to the train/test split

    seed

    random seed for splitting the data into train/test.

    returns

    An Array of Dataframes: Array[<trainData>, <testData>]

  23. def stratifyReduce(data: DataFrame, reductionFactor: Double, seed: Long, uniqueLabels: Array[Row], labelCol: String, trainPortion: Double): Array[DataFrame]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. def underSampleSplit(data: DataFrame, seed: Long, labelCol: String, trainPortion: Double): Array[DataFrame]

    Permalink
  27. final def wait(): Unit

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

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

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

Inherited from SparkSessionWrapper

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped