Package org.apache.spark.ml
Interface MLEvents
- All Superinterfaces:
org.apache.spark.internal.Logging
public interface MLEvents
extends org.apache.spark.internal.Logging
A small trait that defines some methods to send
MLEvent
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.spark.internal.Logging
org.apache.spark.internal.Logging.LogStringContext, org.apache.spark.internal.Logging.SparkShellLoggingFilter
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.spark.scheduler.LiveListenerBus
void
LogMLEvent
to send.<M extends Model<M>>
MwithFitEvent
(Estimator<M> estimator, Dataset<?> dataset, scala.Function0<M> func) <T> T
withLoadInstanceEvent
(MLReader<T> reader, String path, scala.Function0<T> func) void
withSaveInstanceEvent
(MLWriter writer, String path, scala.Function0<scala.runtime.BoxedUnit> func) withTransformEvent
(Transformer transformer, Dataset<?> input, scala.Function0<Dataset<Row>> func) Methods inherited from interface org.apache.spark.internal.Logging
initializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, isTraceEnabled, log, logDebug, logDebug, logDebug, logDebug, logError, logError, logError, logError, logInfo, logInfo, logInfo, logInfo, logName, LogStringContext, logTrace, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, logWarning, org$apache$spark$internal$Logging$$log_, org$apache$spark$internal$Logging$$log__$eq, withLogContext
-
Method Details
-
listenerBus
org.apache.spark.scheduler.LiveListenerBus listenerBus() -
logEvent
LogMLEvent
to send. By default, it emits a debug-level log.- Parameters:
event
- (undocumented)
-
withFitEvent
-
withLoadInstanceEvent
-
withSaveInstanceEvent
-
withTransformEvent
-