Example 5 Setup: Early Stopping Methods in Hyperparameter Tunning | teradataml - Example 5 Setup - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

The following setup steps apply to all examples for Example 5: Early Stopping Methods in Hyperparameter Tunning.

Example Setup

  • Load example dataset iris data from teradataml.
    >>> load_example_data('teradataml','iris_input')
  • Create teradataml DataFrame.
    >>> df = DataFrame.from_table('iris_input')
  • Scale "target_columns" with respect to 'Range' value of the column.
    >>> scale_fit = ScaleFit(data=df,
                             target_columns=['sepal_length', 'sepal_width', 'petal_length', 'petal_width'],
                             scale_method="Range")
  • Transform the data.
    >>> scale_transform = ScaleTransform(data=df,
                                         object=scale_fit.output,
                                         accumulate=["id", "species"])
  • Create data for training.
    >>> data = scale_transform.result