| [ Web Proxy ] |
| Viewing: https://spark.apache.org/docs/latest/api/python/reference/api/../api/../api/pyspark.ml.Model.html | [Back] [Original] |
Site Navigation
Site Navigation
Section Navigation
Abstract class for models that are fitted by estimators.
New in version 1.4.0.
Methods
|
Clears a param from the param map if it has been explicitly set. |
|
Creates a copy of this instance with the same uid and some extra params. |
|
Explains a single param and returns its name, doc, and optional default value and user-supplied value in a string. |
Returns the documentation of all params with their optionally default values and user-supplied values. |
|
|
Extracts the embedded default param values and user-supplied values, and then merges them with extra values from input into a flat param map, where the latter value is used if there exist conflicts, i.e., with ordering: default param values < user-supplied values < extra. |
|
Gets the value of a param in the user-supplied param map or its default value. |
|
Gets a param by its name. |
|
Checks whether a param has a default value. |
|
Tests whether this instance contains a param with a given (string) name. |
|
Checks whether a param is explicitly set by user or has a default value. |
|
Checks whether a param is explicitly set by user. |
|
Sets a parameter in the embedded param map. |
|
Transforms the input dataset with optional parameters. |
Attributes
Returns all params ordered by name. |
Methods Documentation
Clears a param from the param map if it has been explicitly set.
Creates a copy of this instance with the same uid and some
extra params. The default implementation creates a
shallow copy using copy.copy(), and then copies the
embedded and extra parameters over and returns the copy.
Subclasses should override this method if the default approach
is not sufficient.
Extra parameters to copy to the new instance
ParamsCopy of this instance
Explains a single param and returns its name, doc, and optional default value and user-supplied value in a string.
Returns the documentation of all params with their optionally default values and user-supplied values.
Extracts the embedded default param values and user-supplied values, and then merges them with extra values from input into a flat param map, where the latter value is used if there exist conflicts, i.e., with ordering: default param values < user-supplied values < extra.
extra param values
merged param map
Gets the value of a param in the user-supplied param map or its default value. Raises an error if neither is set.
Gets a param by its name.
Checks whether a param has a default value.
Tests whether this instance contains a param with a given (string) name.
Checks whether a param is explicitly set by user or has a default value.
Checks whether a param is explicitly set by user.
Sets a parameter in the embedded param map.
Transforms the input dataset with optional parameters.
New in version 1.3.0.
pyspark.sql.DataFrameinput dataset
an optional param map that overrides embedded params.
pyspark.sql.DataFrametransformed dataset
Attributes Documentation
Returns all params ordered by name. The default implementation
uses dir() to get all attributes of type
Param.
A unique id for the object.
Copyright @ 2026 The Apache Software Foundation, Licensed under the Apache License, Version 2.0.
Created using Sphinx 4.5.0.
Built with the PyData Sphinx Theme 0.13.3.
| Web Proxy Viewer | New URL | Original Page |