Package org.apache.spark.ml.util
Interface HasTrainingSummary<T>
- Type Parameters:
T
- Summary instance type
- All Known Implementing Classes:
BisectingKMeansModel
,FMClassificationModel
,GaussianMixtureModel
,GeneralizedLinearRegressionModel
,KMeansModel
,LinearRegressionModel
,LinearSVCModel
,LogisticRegressionModel
,MultilayerPerceptronClassificationModel
,RandomForestClassificationModel
public interface HasTrainingSummary<T>
Trait for models that provides Training summary.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether a training summary exists for this model instance.void
loadSummary
(String path, Dataset<Row> dataset) void
saveSummary
(String path) setSummary
(scala.Option<T> summary) summary()
Gets summary of model on training set.scala.Option<T>
-
Method Details
-
hasSummary
boolean hasSummary()Indicates whether a training summary exists for this model instance. -
loadSummary
-
saveSummary
-
setSummary
-
summary
T summary()Gets summary of model on training set. An exception is thrown if ifhasSummary
is false.- Returns:
- (undocumented)
-
trainingSummary
scala.Option<T> trainingSummary()
-