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