Object

com.datarobot.prediction.spark

Predictors

Related Doc: package spark

Permalink

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
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. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink

    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

  11. def getPredictor(modelId: String): Model

    Permalink

    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

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

    Permalink

    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

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

    Permalink

    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

  14. def getPredictorFromHdfs(hdfsPath: String, spark: SparkSession, modelId: String): Model

    Permalink

    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

    spark

    SparkSession instance to acquire HDFS configuration from

    modelId

    unique model id for the Scoring Code model

    returns

    Spark compatible Scoring Code model

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

    Permalink

    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

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

    Permalink

    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

  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. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped