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 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
-
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 ifhasSummaryis false.- Returns:
- (undocumented)
-
trainingSummary
scala.Option<T> trainingSummary()
-