com.datarobot.prediction.spark16

Model

class Model extends PredictionModel[Vector, Model]

A Spark API compatible Scoring Code model. For instantiating use the Predictors

Linear Supertypes
PredictionModel[Vector, Model], PredictorParams, HasPredictionCol, HasFeaturesCol, HasLabelCol, org.apache.spark.ml.Model[Model], Transformer, PipelineStage, Logging, Params, Serializable, Serializable, Identifiable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Model
  2. PredictionModel
  3. PredictorParams
  4. HasPredictionCol
  5. HasFeaturesCol
  6. HasLabelCol
  7. Model
  8. Transformer
  9. PipelineStage
  10. Logging
  11. Params
  12. Serializable
  13. Serializable
  14. Identifiable
  15. AnyRef
  16. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Model(modelBytes: Array[Byte], model: IPredictorInfo, modelId: String)

    modelBytes

    byte array from a Scoring Code model file

    model

    Scoring Code instance

    modelId

    unique model id for the Scoring Code model

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. final def clear(param: Param[_]): Model.this.type

    Definition Classes
    Params
  9. def clone(): AnyRef

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

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

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

    Attributes
    protected
    Definition Classes
    Params
  13. final def eq(arg0: AnyRef): Boolean

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

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

    Definition Classes
    Params
  16. def explainParams(): String

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

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

    Definition Classes
    Params
  19. final val featuresCol: Param[String]

    Definition Classes
    HasFeaturesCol
  20. def featuresDataType: DataType

    Attributes
    protected
    Definition Classes
    PredictionModel
  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. final def getClass(): Class[_]

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

    Definition Classes
    Params
  25. final def getFeaturesCol: String

    Definition Classes
    HasFeaturesCol
  26. final def getLabelCol: String

    Definition Classes
    HasLabelCol
  27. def getModel(): IPredictorInfo

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

    Definition Classes
    Params
  29. def getParam(paramName: String): Param[Any]

    Definition Classes
    Params
  30. final def getPredictionCol: String

    Definition Classes
    HasPredictionCol
  31. final def hasDefault[T](param: Param[T]): Boolean

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

    Definition Classes
    Params
  33. def hasParent: Boolean

    Definition Classes
    Model
  34. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  35. final def isDefined(param: Param[_]): Boolean

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

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

    Definition Classes
    Params
  38. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  39. final val labelCol: Param[String]

    Definition Classes
    HasLabelCol
  40. def log: Logger

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

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    Logging
  47. def logName: String

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

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

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

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

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

    Definition Classes
    AnyRef
  53. var notSeerializableModel: IPredictorInfo

  54. final def notify(): Unit

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

    Definition Classes
    AnyRef
  56. def numFeatures: Int

    Definition Classes
    PredictionModel
    Annotations
    @Since( "1.6.0" )
  57. lazy val params: Array[Param[_]]

    Definition Classes
    Params
  58. var parent: Estimator[Model]

    Definition Classes
    Model
  59. def predict(features: Vector): Double

    Definition Classes
    Model → PredictionModel
  60. final val predictionCol: Param[String]

    Definition Classes
    HasPredictionCol
  61. final def set(paramPair: ParamPair[_]): Model.this.type

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

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

    Definition Classes
    Params
  64. final def setDefault(paramPairs: ParamPair[_]*): Model.this.type

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

    Attributes
    protected
    Definition Classes
    Params
  66. def setFeaturesCol(value: String): Model

    Definition Classes
    PredictionModel
  67. def setParent(parent: Estimator[Model]): Model

    Definition Classes
    Model
  68. def setPredictionCol(value: String): Model

    Definition Classes
    PredictionModel
  69. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  70. def toString(): String

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

    For the regression models it adds only one column with the prediction for it.

    For the regression models it adds only one column with the prediction for it.

    For the multi-class models it adds one column per class with probability for that class. e.g target_{CLASS_NAME}_PREDICTION => target_Iris-setosa_PREDICTION,target_Iris-versicolor_PREDICTION,target_Iris-virginica_PREDICTION

    dataset

    input

    returns

    output is an input DataFrame with additional columns with predictions.

    Definition Classes
    Model → PredictionModel → Transformer
  72. def transform(dataset: DataFrame, paramMap: ParamMap): DataFrame

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

    Definition Classes
    Transformer
    Annotations
    @varargs()
  74. def transformImpl(dataset: DataFrame): DataFrame

    Attributes
    protected
    Definition Classes
    PredictionModel
  75. def transformSchema(schema: StructType): StructType

    Definition Classes
    PredictionModel → PipelineStage
  76. def transformSchema(schema: StructType, logging: Boolean): StructType

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

    Definition Classes
    Model → Identifiable
  78. def validateAndTransformSchema(schema: StructType, fitting: Boolean, featuresDataType: DataType): StructType

    Attributes
    protected
    Definition Classes
    PredictorParams
  79. def validateParams(): Unit

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from PredictionModel[Vector, Model]

Inherited from PredictorParams

Inherited from HasPredictionCol

Inherited from HasFeaturesCol

Inherited from HasLabelCol

Inherited from org.apache.spark.ml.Model[Model]

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

Ungrouped