Timer

class Timer.Timer(disableMaterialization=True, logToScala=True, stage=None)[source]

Bases: mmlspark.Utils.ComplexParamsMixin, pyspark.ml.util.JavaMLReadable, pyspark.ml.util.JavaMLWritable, pyspark.ml.wrapper.JavaEstimator

Parameters:
  • disableMaterialization (bool) – Whether to disable timing (so that one can turn it off for evaluation) (default: true)
  • logToScala (bool) – Whether to output the time to the scala console (default: true)
  • stage (object) – The stage to time
getDisableMaterialization()[source]
Returns:Whether to disable timing (so that one can turn it off for evaluation) (default: true)
Return type:bool
static getJavaPackage()[source]

Returns package name String.

getLogToScala()[source]
Returns:Whether to output the time to the scala console (default: true)
Return type:bool
getStage()[source]
Returns:The stage to time
Return type:object
classmethod read()[source]

Returns an MLReader instance for this class.

setDisableMaterialization(value)[source]
Parameters:disableMaterialization (bool) – Whether to disable timing (so that one can turn it off for evaluation) (default: true)
setLogToScala(value)[source]
Parameters:logToScala (bool) – Whether to output the time to the scala console (default: true)
setParams(disableMaterialization=True, logToScala=True, stage=None)[source]

Set the (keyword only) parameters

Parameters:
  • disableMaterialization (bool) – Whether to disable timing (so that one can turn it off for evaluation) (default: true)
  • logToScala (bool) – Whether to output the time to the scala console (default: true)
  • stage (object) – The stage to time
setStage(value)[source]
Parameters:stage (object) – The stage to time
class Timer.TimerModel(java_model=None)[source]

Bases: mmlspark.Utils.ComplexParamsMixin, pyspark.ml.wrapper.JavaModel, pyspark.ml.util.JavaMLWritable, pyspark.ml.util.JavaMLReadable

Model fitted by Timer.

This class is left empty on purpose. All necessary methods are exposed through inheritance.

static getJavaPackage()[source]

Returns package name String.

classmethod read()[source]

Returns an MLReader instance for this class.