Trait

com.databricks.labs.automl.inference

InferenceTools

Related Doc: package inference

Permalink

trait InferenceTools extends SparkSessionWrapper

Linear Supertypes
SparkSessionWrapper, Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InferenceTools
  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 clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def convertInferenceConfigToDataFrame(config: InferenceMainConfig): DataFrame

    Permalink

    Seems a bit counter-intuitive to do this, but this allows for cloud-agnostic storage of the config.

    Seems a bit counter-intuitive to do this, but this allows for cloud-agnostic storage of the config. Otherwise, a configuration would need to be created to manage which cloud this is operating on and handle native SDK object writers. Instead of re-inventing the wheel here, a DataFrame can be serialized to any cloud-native storage medium with very little issue.

    config

    The inference configuration generated for a particular modeling run

    returns

    A DataFrame consisting of a single row and a single field. Cell 1:1 contains the json string.

  7. def convertInferenceConfigToJson(config: InferenceMainConfig): InferenceJsonReturn

    Permalink

    Handler method for converting the InferenceMainConfig object to a serializable Json String with correct scala-compatible data structures.

    Handler method for converting the InferenceMainConfig object to a serializable Json String with correct scala-compatible data structures.

    config

    instance of InferenceMainConfig

    returns

    [InferenceJsonReturn] consisting of compact form (for logging) and prettyprint form (human readable)

  8. def convertJsonConfigToClass(jsonConfig: String): InferenceMainConfig

    Permalink

    Handler method for converting a read-in json config String to an instance of InferenceMainConfig

    Handler method for converting a read-in json config String to an instance of InferenceMainConfig

    jsonConfig

    the config as a Json-formatted String

    returns

    config as InstanceOf[InferenceMainConfig]

  9. def convertMainConfigToJson(config: MainConfig): MainJsonReturn

    Permalink
  10. def createInferencePayload(dataFrame: DataFrame, modelingColumnsPayload: Array[String], allColumnsPayload: Array[String]): InferencePayload

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def extractInferenceConfigFromDataFrame(configDataFrame: DataFrame): InferenceMainConfig

    Permalink

    Extract the InferenceMainConfig from a stored DataFrame containing the string-encoded json in row 1, column 1

    Extract the InferenceMainConfig from a stored DataFrame containing the string-encoded json in row 1, column 1

    configDataFrame

    A Dataframe that contains the configuration for the Inference run.

    returns

    an instance of InferenceMainConfig

  14. def extractInferenceJsonFromDataFrame(configDataFrame: DataFrame): String

    Permalink

    From a supplied DataFrame that contains the configuration in cell 1:1, get the json string

    From a supplied DataFrame that contains the configuration in cell 1:1, get the json string

    configDataFrame

    A Dataframe that contains the configuration for the Inference run.

    returns

    The string-encoded json payload for InferenceMainConfig

  15. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def removeArrayOfColumns(payload: InferencePayload, removalArray: Array[String]): InferencePayload

    Permalink

  23. lazy val sc: SparkContext

    Permalink
    Definition Classes
    SparkSessionWrapper
  24. lazy val spark: SparkSession

    Permalink
    Definition Classes
    SparkSessionWrapper
  25. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  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