class BaggedResult extends PredictionResult[Any]
Container with model-wise predictions and logic to compute variances and training row scores
- Alphabetic
- By Inheritance
- BaggedResult
- PredictionResult
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
BaggedResult(predictions: Seq[PredictionResult[Any]], NibIn: Vector[Vector[Int]], useJackknife: Boolean, bias: Option[Seq[Double]] = None, repInput: Vector[Any])
- predictions
for each constituent model
- NibIn
the sample matrix as (N_models x N_training)
- bias
model to use for estimating bias
- repInput
representative input
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
- lazy val Nib: Vector[Vector[Int]]
- lazy val NibIJMat: DenseMatrix[Double]
- lazy val NibJMat: DenseMatrix[Double]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- lazy val expected: Seq[Any]
- lazy val expectedMatrix: Seq[Seq[Any]]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getExpected(): Seq[Any]
Return the ensemble average or maximum vote
Return the ensemble average or maximum vote
- returns
expected value of each prediction
- Definition Classes
- BaggedResult → PredictionResult
-
def
getGradient(): Option[Seq[Vector[Double]]]
Get the gradient or sensitivity of each prediction
Get the gradient or sensitivity of each prediction
- returns
a vector of doubles for each prediction
- 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
training row scores of each prediction
- Definition Classes
- BaggedResult → PredictionResult
-
def
getInfluenceScores(actuals: Seq[Any]): Option[Seq[Seq[Double]]]
Return IJ scores
Return IJ scores
- actuals
to assess the improvement or damage against
- returns
training row scores of each prediction
- Definition Classes
- BaggedResult → PredictionResult
-
def
getUncertainty(): Option[Seq[Any]]
Return jackknife-based variance estimates
Return jackknife-based variance estimates
- returns
uncertainty of each prediction
- Definition Classes
- BaggedResult → PredictionResult
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
influences(meanPrediction: Vector[Double], actualPrediction: Vector[Double], modelPredictions: Seq[Seq[Double]], NibJ: DenseMatrix[Double], NibIJ: DenseMatrix[Double]): Seq[Vector[Double]]
Compute the IJ training row scores for a prediction
Compute the IJ training row scores for a prediction
- meanPrediction
over the models
- modelPredictions
prediction of each model
- NibJ
sampling matrix for the jackknife-after-bootstrap estimate
- NibIJ
sampling matrix for the infinitesimal jackknife estimate
- returns
the score of each training row as a vector of doubles
-
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()
- lazy val rep: Any
-
def
scores(meanPrediction: Vector[Double], modelPredictions: Seq[Seq[Double]], NibJ: DenseMatrix[Double], NibIJ: DenseMatrix[Double]): Seq[Vector[Double]]
Compute the IJ training row scores for a prediction
Compute the IJ training row scores for a prediction
- meanPrediction
over the models
- modelPredictions
prediction of each model
- NibJ
sampling matrix for the jackknife-after-bootstrap estimate
- NibIJ
sampling matrix for the infinitesimal jackknife estimate
- returns
the score of each training row as a vector of doubles
- lazy val scores: Seq[Vector[Double]]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- lazy val uncertainty: Seq[Any]
-
def
variance(meanPrediction: Vector[Double], modelPredictions: Seq[Seq[Double]], NibJ: DenseMatrix[Double], NibIJ: DenseMatrix[Double]): Seq[Double]
Compute the variance of a prediction as the average of bias corrected IJ and J variance estimates
Compute the variance of a prediction as the average of bias corrected IJ and J variance estimates
- meanPrediction
over the models
- modelPredictions
prediction of each model
- NibJ
sampling matrix for the jackknife-after-bootstrap estimate
- NibIJ
sampling matrix for the infinitesimal jackknife estimate
- returns
the estimated variance
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )