case class Predictor(params: ModelParams, trees: Seq[DecisionTree], objective: Objective) extends Product with Serializable
Predictor fox XGboost
- params
model parameters
- trees
decision tree
- objective
objective function
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- Predictor
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Predictor(params: ModelParams, trees: Seq[DecisionTree], objective: Objective)
- params
model parameters
- trees
decision tree
- objective
objective function
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val objective: Objective
- val params: ModelParams
- def predict(values: Map[Integer, Double]): Array[Double]
- def predict(values: Array[Double]): Array[Double]
-
def
predict(values: Map[Int, Double]): Array[Double]
Predict score
Predict score
- values
input data (sparse, first element is the position)
- returns
scores (single element in case of binary classification)
-
def
predict(values: Array[Double]): Array[Double]
Predict score
Predict score
- values
input data (dense). 0.0 is considered as N/A
- returns
scores (single element in case of binary classification)
-
def
predict(vector: FVector): Array[Double]
Predict score
Predict score
- vector
input FVector
- returns
scores (single element in case of binary classification)
- def predictApproxContrib(values: Map[Integer, Double]): Array[Double]
- def predictApproxContrib(values: Array[Double]): Array[Double]
-
def
predictApproxContrib(values: Map[Int, Double]): Array[Double]
Output feature contributions toward predictions of given data using approximation (means) algorithm
Output feature contributions toward predictions of given data using approximation (means) algorithm
- values
input data (sparse, first element is the position)
- returns
feature contributions
-
def
predictApproxContrib(values: Array[Double]): Array[Double]
Output feature contributions toward predictions of given data using approximation (means) algorithm
Output feature contributions toward predictions of given data using approximation (means) algorithm
- values
input data (dense). 0.0 is considered as N/A
- returns
feature contributions
-
def
predictApproxContrib(vector: FVector): Array[Double]
Output feature contributions toward predictions of given data using approximation (means) algorithm
Output feature contributions toward predictions of given data using approximation (means) algorithm
- vector
input FVector
- returns
feature contributions
- def predictContrib(values: Map[Integer, Double]): Array[Double]
- def predictContrib(values: Array[Double]): Array[Double]
-
def
predictContrib(values: Map[Int, Double]): Array[Double]
Output feature contributions toward predictions of given data using SHAP algorithm
Output feature contributions toward predictions of given data using SHAP algorithm
- values
input data (sparse, first element is the position)
- returns
feature contributions
-
def
predictContrib(values: Array[Double]): Array[Double]
Output feature contributions toward predictions of given data using SHAP algorithm
Output feature contributions toward predictions of given data using SHAP algorithm
- values
input data (dense). 0.0 is considered as N/A
- returns
feature contributions
-
def
predictContrib(vector: FVector): Array[Double]
Output feature contributions toward predictions of given data using SHAP algorithm
Output feature contributions toward predictions of given data using SHAP algorithm
- vector
input FVector
- returns
feature contributions
-
def
serialize(): Array[Byte]
Serialize the Predictor using internal format (this is NOT an Xgboost binary)
Serialize the Predictor using internal format (this is NOT an Xgboost binary)
- returns
array of bytes
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val trees: Seq[DecisionTree]
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated