nerdexam
Amazon

MLS-C01 · Question #355

A machine learning (ML) specialist at a manufacturing company uses Amazon SageMaker DeepAR to forecast input materials and energy requirements for the company. Most of the data in the training…

The correct answer is D. Impute the missing values by using the mean value. Use the entire dataset and the imputed. When most of the target variable data is missing in a dataset used for Amazon SageMaker DeepAR forecasting, imputing the missing values with the mean is a straightforward approach that requires the least development effort to account for these gaps.

Data Engineering

Question

A machine learning (ML) specialist at a manufacturing company uses Amazon SageMaker DeepAR to forecast input materials and energy requirements for the company. Most of the data in the training dataset is missing values for the target variable. The company stores the training dataset as JSON files. The ML specialist develop a solution by using Amazon SageMaker DeepAR to account for the missing values in the training dataset. Which approach will meet these requirements with the LEAST development effort?

Options

  • AImpute the missing values by using the linear regression method. Use the entire dataset and the
  • BReplace the missing values with not a number (NaN). Use the entire dataset and the encoded
  • CImpute the missing values by using a forward fill. Use the entire dataset and the imputed values
  • DImpute the missing values by using the mean value. Use the entire dataset and the imputed

How the community answered

(49 responses)
  • A
    6% (3)
  • B
    10% (5)
  • C
    2% (1)
  • D
    82% (40)

Why each option

When most of the target variable data is missing in a dataset used for Amazon SageMaker DeepAR forecasting, imputing the missing values with the mean is a straightforward approach that requires the least development effort to account for these gaps.

AImpute the missing values by using the linear regression method. Use the entire dataset and the

Imputing missing values using linear regression is a more complex method that requires additional development and computational effort compared to simply using the mean value.

BReplace the missing values with not a number (NaN). Use the entire dataset and the encoded

While Amazon SageMaker DeepAR can handle NaN values by ignoring them in the loss function during training, if "most" of the data is missing, this approach might lead to insufficient learning and doesn't actively "account for" the missing values through imputation.

CImpute the missing values by using a forward fill. Use the entire dataset and the imputed values

Imputing missing values using a forward fill method requires specific handling of time series data and can introduce bias if not applied carefully, demanding more development effort than a simple mean imputation.

DImpute the missing values by using the mean value. Use the entire dataset and the imputedCorrect

Imputing missing values with the mean is a simple and common preprocessing technique that requires minimal development effort, allowing the Amazon SageMaker DeepAR model to have a continuous target variable for training when most of the original data is missing.

Concept tested: Handling missing values in time series for DeepAR

Source: https://docs.aws.amazon.com/sagemaker/latest/dg/deepar-input-formats.html

Topics

#Data Imputation#Missing Values#SageMaker DeepAR#Data Preprocessing

Community Discussion

No community discussion yet for this question.

Full MLS-C01 Practice