/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.sagemaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Transformations allowed on the dataset. Supported transformations are Filling
and
* Aggregation
. Filling
specifies how to add values to missing values in the dataset.
* Aggregation
defines how to aggregate data that does not align with forecast frequency.
*
* A key value pair defining the filling method for a column, where the key is the column name and the value is an * object which defines the filling logic. You can specify multiple filling methods for a single column. *
** The supported filling methods and their corresponding options are: *
*
* frontfill
: none
(Supported only for target column)
*
* middlefill
: zero
, value
, median
, mean
,
* min
, max
*
* backfill
: zero
, value
, median
, mean
,
* min
, max
*
* futurefill
: zero
, value
, median
, mean
,
* min
, max
*
* To set a filling method to a specific value, set the fill parameter to the chosen filling method value (for
* example "backfill" : "value"
), and define the filling value in an additional parameter prefixed with
* "_value". For example, to set backfill
to a value of 2
, you must include two
* parameters: "backfill": "value"
and "backfill_value":"2"
.
*
* A key value pair defining the aggregation method for a column, where the key is the column name and the value is * the aggregation method. *
*
* The supported aggregation methods are sum
(default), avg
, first
,
* min
, max
.
*
* Aggregation is only supported for the target column. *
** A key value pair defining the filling method for a column, where the key is the column name and the value is an * object which defines the filling logic. You can specify multiple filling methods for a single column. *
** The supported filling methods and their corresponding options are: *
*
* frontfill
: none
(Supported only for target column)
*
* middlefill
: zero
, value
, median
, mean
,
* min
, max
*
* backfill
: zero
, value
, median
, mean
,
* min
, max
*
* futurefill
: zero
, value
, median
, mean
,
* min
, max
*
* To set a filling method to a specific value, set the fill parameter to the chosen filling method value (for
* example "backfill" : "value"
), and define the filling value in an additional parameter prefixed with
* "_value". For example, to set backfill
to a value of 2
, you must include two
* parameters: "backfill": "value"
and "backfill_value":"2"
.
*
* The supported filling methods and their corresponding options are: *
*
* frontfill
: none
(Supported only for target column)
*
* middlefill
: zero
, value
, median
, mean
,
* min
, max
*
* backfill
: zero
, value
, median
, mean
,
* min
, max
*
* futurefill
: zero
, value
, median
, mean
,
* min
, max
*
* To set a filling method to a specific value, set the fill parameter to the chosen filling method value
* (for example
* A key value pair defining the filling method for a column, where the key is the column name and the value is an
* object which defines the filling logic. You can specify multiple filling methods for a single column.
*
* The supported filling methods and their corresponding options are:
*
*
*
*
*
* To set a filling method to a specific value, set the fill parameter to the chosen filling method value (for
* example "backfill" : "value"
), and define the filling value in an additional parameter
* prefixed with "_value". For example, to set backfill
to a value of 2
, you must
* include two parameters: "backfill": "value"
and "backfill_value":"2"
.
*/
public java.util.Map
*
* frontfill
: none
(Supported only for target column)
* middlefill
: zero
, value
, median
, mean
,
* min
, max
* backfill
: zero
, value
, median
, mean
,
* min
, max
* futurefill
: zero
, value
, median
, mean
,
* min
, max
* "backfill" : "value"
), and define the filling value in an additional parameter prefixed with
* "_value". For example, to set backfill
to a value of 2
, you must include two
* parameters: "backfill": "value"
and "backfill_value":"2"
.
*
* The supported filling methods and their corresponding options are: *
*
* frontfill
: none
(Supported only for target column)
*
* middlefill
: zero
, value
, median
, mean
,
* min
, max
*
* backfill
: zero
, value
, median
, mean
,
* min
, max
*
* futurefill
: zero
, value
, median
, mean
,
* min
, max
*
* To set a filling method to a specific value, set the fill parameter to the chosen filling method value
* (for example
* A key value pair defining the filling method for a column, where the key is the column name and the value is an
* object which defines the filling logic. You can specify multiple filling methods for a single column.
*
* The supported filling methods and their corresponding options are:
*
*
*
*
*
* To set a filling method to a specific value, set the fill parameter to the chosen filling method value (for
* example "backfill" : "value"
), and define the filling value in an additional parameter
* prefixed with "_value". For example, to set backfill
to a value of 2
, you must
* include two parameters: "backfill": "value"
and "backfill_value":"2"
.
*/
public void setFilling(java.util.Map
*
* frontfill
: none
(Supported only for target column)
* middlefill
: zero
, value
, median
, mean
,
* min
, max
* backfill
: zero
, value
, median
, mean
,
* min
, max
* futurefill
: zero
, value
, median
, mean
,
* min
, max
* "backfill" : "value"
), and define the filling value in an additional parameter prefixed with
* "_value". For example, to set backfill
to a value of 2
, you must include two
* parameters: "backfill": "value"
and "backfill_value":"2"
.
*
* The supported filling methods and their corresponding options are: *
*
* frontfill
: none
(Supported only for target column)
*
* middlefill
: zero
, value
, median
, mean
,
* min
, max
*
* backfill
: zero
, value
, median
, mean
,
* min
, max
*
* futurefill
: zero
, value
, median
, mean
,
* min
, max
*
* To set a filling method to a specific value, set the fill parameter to the chosen filling method value
* (for example
* A key value pair defining the aggregation method for a column, where the key is the column name and the value is
* the aggregation method.
*
* The supported aggregation methods are
* Aggregation is only supported for the target column.
* "backfill" : "value"
), and define the filling value in an additional parameter
* prefixed with "_value". For example, to set backfill
to a value of 2
, you must
* include two parameters: "backfill": "value"
and "backfill_value":"2"
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TimeSeriesTransformations withFilling(java.util.Mapsum
(default), avg
, first
,
* min
, max
.
*
* The supported aggregation methods are sum
(default), avg
, first
,
* min
, max
.
*
* Aggregation is only supported for the target column. *
*/ public java.util.Map* A key value pair defining the aggregation method for a column, where the key is the column name and the value is * the aggregation method. *
*
* The supported aggregation methods are sum
(default), avg
, first
,
* min
, max
.
*
* Aggregation is only supported for the target column. *
*
* The supported aggregation methods are sum
(default), avg
, first
,
* min
, max
.
*
* Aggregation is only supported for the target column. *
*/ public void setAggregation(java.util.Map* A key value pair defining the aggregation method for a column, where the key is the column name and the value is * the aggregation method. *
*
* The supported aggregation methods are sum
(default), avg
, first
,
* min
, max
.
*
* Aggregation is only supported for the target column. *
*
* The supported aggregation methods are sum
(default), avg
, first
,
* min
, max
.
*
* Aggregation is only supported for the target column. *
* @return Returns a reference to this object so that method calls can be chained together. */ public TimeSeriesTransformations withAggregation(java.util.Map