trait BaggedResult[+T] extends PredictionResult[T]
Interface defining the return value of a BaggedModel
This allows the implementation to depend on the number of simultaneous predictions, which has performance implications. For background on the uncertainty calculation, see Wager, S.; Hastie, T and Efron, B. Confidence Intervals for Random Forests: The Jackknife and Infinitesimal Jackknife. Journal of Machine Learning Research 15 (2014).
- Alphabetic
- By Inheritance
- BaggedResult
- PredictionResult
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def getExpected(): Seq[T]
Get the expected values for this prediction
Get the expected values for this prediction
- returns
expected value of each prediction
- Definition Classes
- PredictionResult
- abstract def numPredictions: Int
The number of inputs that have been predicted on (NOT the number of bagged models).
- abstract def predictions: Seq[PredictionResult[T]]
Concrete 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(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getGradient(): Option[Seq[Vector[Double]]]
Average the gradients from the models in the ensemble
Average the gradients from the models in the ensemble
- returns
the gradient of each prediction as a vector of doubles
- Definition Classes
- BaggedResult → PredictionResult
- def getImportanceScores(): Option[Seq[Seq[Double]]]
Get the training row scores for each prediction
Get the training row scores for each prediction
- returns
sequence (over predictions) of sequence (over training rows) of importances
- Definition Classes
- PredictionResult
- def getInfluenceScores(actuals: Seq[Any]): Option[Seq[Seq[Double]]]
Get the improvement (positive) or damage (negative) due to each training row on a prediction
Get the improvement (positive) or damage (negative) due to each training row on a prediction
- actuals
to assess the improvement or damage against
- returns
Sequence (over predictions) of sequence (over training rows) of influence
- Definition Classes
- PredictionResult
- def getUncertainty(observational: Boolean = true): Option[Seq[Any]]
Get the "uncertainty" of the prediction
Get the "uncertainty" of the prediction
For regression, this should be the TotalError if non-observational and the StdDevObs if observational
- observational
whether the uncertainty should account for observational uncertainty
- returns
uncertainty of each prediction
- Definition Classes
- PredictionResult
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()