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 SummaryModifier and TypeMethodDescriptionbooleanIndicates whether a training summary exists for this model instance.voidloadSummary(String path, Dataset<Row> dataset) voidsaveSummary(String path) setSummary(scala.Option<T> summary) summary()Gets summary of model on training set.scala.Option<T>
- 
Method Details- 
hasSummaryboolean hasSummary()Indicates whether a training summary exists for this model instance.
- 
loadSummary
- 
saveSummary
- 
setSummary
- 
summaryT summary()Gets summary of model on training set. An exception is thrown if ifhasSummaryis false.- Returns:
- (undocumented)
 
- 
trainingSummaryscala.Option<T> trainingSummary()
 
-