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

Lake - Analyze Your Data with ClearScape Analytics™

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2026-02-20
dita:mapPath
tcl1683670667798.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
tcl1683670667798

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