com.datarobot.prediction.spark16

Predictors

object Predictors

Object for instantiating a Model which extends the org.apache.spark.ml.PredictionModel

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Predictors
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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 ==(arg0: AnyRef): Boolean

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

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

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

    Definition Classes
    AnyRef → Any
  12. def getPredictor(): Model

    Retrieves a single DataRobot model, if it is the only one in the specified classloader

    Retrieves a single DataRobot model, if it is the only one in the specified classloader

    returns

    Spark compatible Scoring Code model

  13. def getPredictor(modelId: String): Model

    Retrieves a DataRobot model by a modelId

    Retrieves a DataRobot model by a modelId

    modelId

    unique model id for the Scoring Code model. The model should be in a classpath

    returns

    Spark compatible Scoring Code model

  14. def getPredictor(modelBytes: Array[Byte], modelId: String): Model

    Retrieves a DataRobot model from a byte array out of a Scoring Code model jar file

    Retrieves a DataRobot model from a byte array out of a Scoring Code model jar file

    modelBytes

    byte array from a Scoring Code model file

    modelId

    unique model id for the Scoring Code model

    returns

    Spark compatible Scoring Code model

  15. def getPredictor(modelBytes: Array[Byte]): Model

    Retrieves a DataRobot model from a byte array out of a Scoring Code model jar file

    Retrieves a DataRobot model from a byte array out of a Scoring Code model jar file

    modelBytes

    byte array from a Scoring Code model file

    returns

    Spark compatible Scoring Code model

  16. def getPredictor(filePath: String, modelId: String): Model

    Retrieves a DataRobot model from a Scoring Code model jar file on a local file system

    Retrieves a DataRobot model from a Scoring Code model jar file on a local file system

    filePath

    an absolute or relative path to a local file. Example: ../testcases/iris/5e0b41c1a6e3dd003dcfc268.jar

    modelId

    unique model id for the Scoring Code model

    returns

    Spark compatible Scoring Code model

  17. def getPredictorFromHdfs(hdfsPath: String, sparkContext: SparkContext, modelId: String): Model

    Retrieves a DataRobot model from a Scoring Code model jar file on an HDFS file system

    Retrieves a DataRobot model from a Scoring Code model jar file on an HDFS file system

    hdfsPath

    absolute or relative path to a model jar on HDFS

    sparkContext

    SparkContext instance to acquire HDFS configuration from

    modelId

    unique model id for the Scoring Code model

    returns

    Spark compatible Scoring Code model

  18. def getPredictorFromServer(url: String, token: String): Model

    Downloads a model from a DataRobot instance and creates a Spark compatible Scoring Code model

    Downloads a model from a DataRobot instance and creates a Spark compatible Scoring Code model

    url

    ScoringCode model URL. e.g "https://app.datarobot.com/projects/5e0b2c400334190d3e6bb810/models/5e0b2c974322bb0a3c3354e7/blueprint"

    token

    user access token in a DataRobot instance. e.g "wu74mU2FvdvdZV8gNbTanc-PDrK4El3H"

    returns

    Spark compatible Scoring Code model

  19. def getPredictorFromServer(host: String, projectId: String, modelId: String, token: String): Model

    Downloads a model from a DataRobot instance and creates a Spark compatible Scoring Code model

    Downloads a model from a DataRobot instance and creates a Spark compatible Scoring Code model

    host

    DataRobot host. e.g "https://staging.datarobot.com"

    projectId

    DataRobot projectId. e.g "5d67c1a53893470196c3ca7e"

    modelId

    unique modelId. e.g "5d67c1f938934701a8c3c9f1"

    token

    user access token in a DataRobot instance. e.g "wu74mU2FvdvdZV8gNbTanc-PDrK4El3H"

    returns

    Spark compatible Scoring Code model

  20. def hashCode(): Int

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

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

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

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

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

    Definition Classes
    AnyRef
  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped