{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MachineLearning.Types.MLModel
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MachineLearning.Types.MLModel where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MachineLearning.Types.Algorithm
import Amazonka.MachineLearning.Types.EntityStatus
import Amazonka.MachineLearning.Types.MLModelType
import Amazonka.MachineLearning.Types.RealtimeEndpointInfo
import qualified Amazonka.Prelude as Prelude

-- | Represents the output of a @GetMLModel@ operation.
--
-- The content consists of the detailed metadata and the current status of
-- the @MLModel@.
--
-- /See:/ 'newMLModel' smart constructor.
data MLModel = MLModel'
  { -- | The algorithm used to train the @MLModel@. The following algorithm is
    -- supported:
    --
    -- -   @SGD@ -- Stochastic gradient descent. The goal of @SGD@ is to
    --     minimize the gradient of the loss function.
    MLModel -> Maybe Algorithm
algorithm :: Prelude.Maybe Algorithm,
    MLModel -> Maybe Integer
computeTime :: Prelude.Maybe Prelude.Integer,
    -- | The time that the @MLModel@ was created. The time is expressed in epoch
    -- time.
    MLModel -> Maybe POSIX
createdAt :: Prelude.Maybe Data.POSIX,
    -- | The AWS user account from which the @MLModel@ was created. The account
    -- type can be either an AWS root account or an AWS Identity and Access
    -- Management (IAM) user account.
    MLModel -> Maybe Text
createdByIamUser :: Prelude.Maybe Prelude.Text,
    -- | The current endpoint of the @MLModel@.
    MLModel -> Maybe RealtimeEndpointInfo
endpointInfo :: Prelude.Maybe RealtimeEndpointInfo,
    MLModel -> Maybe POSIX
finishedAt :: Prelude.Maybe Data.POSIX,
    -- | The location of the data file or directory in Amazon Simple Storage
    -- Service (Amazon S3).
    MLModel -> Maybe Text
inputDataLocationS3 :: Prelude.Maybe Prelude.Text,
    -- | The time of the most recent edit to the @MLModel@. The time is expressed
    -- in epoch time.
    MLModel -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Data.POSIX,
    -- | The ID assigned to the @MLModel@ at creation.
    MLModel -> Maybe Text
mLModelId :: Prelude.Maybe Prelude.Text,
    -- | Identifies the @MLModel@ category. The following are the available
    -- types:
    --
    -- -   @REGRESSION@ - Produces a numeric result. For example, \"What price
    --     should a house be listed at?\"
    --
    -- -   @BINARY@ - Produces one of two possible results. For example, \"Is
    --     this a child-friendly web site?\".
    --
    -- -   @MULTICLASS@ - Produces one of several possible results. For
    --     example, \"Is this a HIGH-, LOW-, or MEDIUM-risk trade?\".
    MLModel -> Maybe MLModelType
mLModelType :: Prelude.Maybe MLModelType,
    -- | A description of the most recent details about accessing the @MLModel@.
    MLModel -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
    -- | A user-supplied name or description of the @MLModel@.
    MLModel -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    MLModel -> Maybe Double
scoreThreshold :: Prelude.Maybe Prelude.Double,
    -- | The time of the most recent edit to the @ScoreThreshold@. The time is
    -- expressed in epoch time.
    MLModel -> Maybe POSIX
scoreThresholdLastUpdatedAt :: Prelude.Maybe Data.POSIX,
    MLModel -> Maybe Integer
sizeInBytes :: Prelude.Maybe Prelude.Integer,
    MLModel -> Maybe POSIX
startedAt :: Prelude.Maybe Data.POSIX,
    -- | The current status of an @MLModel@. This element can have one of the
    -- following values:
    --
    -- -   @PENDING@ - Amazon Machine Learning (Amazon ML) submitted a request
    --     to create an @MLModel@.
    --
    -- -   @INPROGRESS@ - The creation process is underway.
    --
    -- -   @FAILED@ - The request to create an @MLModel@ didn\'t run to
    --     completion. The model isn\'t usable.
    --
    -- -   @COMPLETED@ - The creation process completed successfully.
    --
    -- -   @DELETED@ - The @MLModel@ is marked as deleted. It isn\'t usable.
    MLModel -> Maybe EntityStatus
status :: Prelude.Maybe EntityStatus,
    -- | The ID of the training @DataSource@. The @CreateMLModel@ operation uses
    -- the @TrainingDataSourceId@.
    MLModel -> Maybe Text
trainingDataSourceId :: Prelude.Maybe Prelude.Text,
    -- | A list of the training parameters in the @MLModel@. The list is
    -- implemented as a map of key-value pairs.
    --
    -- The following is the current set of training parameters:
    --
    -- -   @sgd.maxMLModelSizeInBytes@ - The maximum allowed size of the model.
    --     Depending on the input data, the size of the model might affect its
    --     performance.
    --
    --     The value is an integer that ranges from @100000@ to @2147483648@.
    --     The default value is @33554432@.
    --
    -- -   @sgd.maxPasses@ - The number of times that the training process
    --     traverses the observations to build the @MLModel@. The value is an
    --     integer that ranges from @1@ to @10000@. The default value is @10@.
    --
    -- -   @sgd.shuffleType@ - Whether Amazon ML shuffles the training data.
    --     Shuffling the data improves a model\'s ability to find the optimal
    --     solution for a variety of data types. The valid values are @auto@
    --     and @none@. The default value is @none@.
    --
    -- -   @sgd.l1RegularizationAmount@ - The coefficient regularization L1
    --     norm, which controls overfitting the data by penalizing large
    --     coefficients. This parameter tends to drive coefficients to zero,
    --     resulting in sparse feature set. If you use this parameter, start by
    --     specifying a small value, such as @1.0E-08@.
    --
    --     The value is a double that ranges from @0@ to @MAX_DOUBLE@. The
    --     default is to not use L1 normalization. This parameter can\'t be
    --     used when @L2@ is specified. Use this parameter sparingly.
    --
    -- -   @sgd.l2RegularizationAmount@ - The coefficient regularization L2
    --     norm, which controls overfitting the data by penalizing large
    --     coefficients. This tends to drive coefficients to small, nonzero
    --     values. If you use this parameter, start by specifying a small
    --     value, such as @1.0E-08@.
    --
    --     The value is a double that ranges from @0@ to @MAX_DOUBLE@. The
    --     default is to not use L2 normalization. This parameter can\'t be
    --     used when @L1@ is specified. Use this parameter sparingly.
    MLModel -> Maybe (HashMap Text Text)
trainingParameters :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)
  }
  deriving (MLModel -> MLModel -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MLModel -> MLModel -> Bool
$c/= :: MLModel -> MLModel -> Bool
== :: MLModel -> MLModel -> Bool
$c== :: MLModel -> MLModel -> Bool
Prelude.Eq, ReadPrec [MLModel]
ReadPrec MLModel
Int -> ReadS MLModel
ReadS [MLModel]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MLModel]
$creadListPrec :: ReadPrec [MLModel]
readPrec :: ReadPrec MLModel
$creadPrec :: ReadPrec MLModel
readList :: ReadS [MLModel]
$creadList :: ReadS [MLModel]
readsPrec :: Int -> ReadS MLModel
$creadsPrec :: Int -> ReadS MLModel
Prelude.Read, Int -> MLModel -> ShowS
[MLModel] -> ShowS
MLModel -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MLModel] -> ShowS
$cshowList :: [MLModel] -> ShowS
show :: MLModel -> String
$cshow :: MLModel -> String
showsPrec :: Int -> MLModel -> ShowS
$cshowsPrec :: Int -> MLModel -> ShowS
Prelude.Show, forall x. Rep MLModel x -> MLModel
forall x. MLModel -> Rep MLModel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MLModel x -> MLModel
$cfrom :: forall x. MLModel -> Rep MLModel x
Prelude.Generic)

-- |
-- Create a value of 'MLModel' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'algorithm', 'mLModel_algorithm' - The algorithm used to train the @MLModel@. The following algorithm is
-- supported:
--
-- -   @SGD@ -- Stochastic gradient descent. The goal of @SGD@ is to
--     minimize the gradient of the loss function.
--
-- 'computeTime', 'mLModel_computeTime' - Undocumented member.
--
-- 'createdAt', 'mLModel_createdAt' - The time that the @MLModel@ was created. The time is expressed in epoch
-- time.
--
-- 'createdByIamUser', 'mLModel_createdByIamUser' - The AWS user account from which the @MLModel@ was created. The account
-- type can be either an AWS root account or an AWS Identity and Access
-- Management (IAM) user account.
--
-- 'endpointInfo', 'mLModel_endpointInfo' - The current endpoint of the @MLModel@.
--
-- 'finishedAt', 'mLModel_finishedAt' - Undocumented member.
--
-- 'inputDataLocationS3', 'mLModel_inputDataLocationS3' - The location of the data file or directory in Amazon Simple Storage
-- Service (Amazon S3).
--
-- 'lastUpdatedAt', 'mLModel_lastUpdatedAt' - The time of the most recent edit to the @MLModel@. The time is expressed
-- in epoch time.
--
-- 'mLModelId', 'mLModel_mLModelId' - The ID assigned to the @MLModel@ at creation.
--
-- 'mLModelType', 'mLModel_mLModelType' - Identifies the @MLModel@ category. The following are the available
-- types:
--
-- -   @REGRESSION@ - Produces a numeric result. For example, \"What price
--     should a house be listed at?\"
--
-- -   @BINARY@ - Produces one of two possible results. For example, \"Is
--     this a child-friendly web site?\".
--
-- -   @MULTICLASS@ - Produces one of several possible results. For
--     example, \"Is this a HIGH-, LOW-, or MEDIUM-risk trade?\".
--
-- 'message', 'mLModel_message' - A description of the most recent details about accessing the @MLModel@.
--
-- 'name', 'mLModel_name' - A user-supplied name or description of the @MLModel@.
--
-- 'scoreThreshold', 'mLModel_scoreThreshold' - Undocumented member.
--
-- 'scoreThresholdLastUpdatedAt', 'mLModel_scoreThresholdLastUpdatedAt' - The time of the most recent edit to the @ScoreThreshold@. The time is
-- expressed in epoch time.
--
-- 'sizeInBytes', 'mLModel_sizeInBytes' - Undocumented member.
--
-- 'startedAt', 'mLModel_startedAt' - Undocumented member.
--
-- 'status', 'mLModel_status' - The current status of an @MLModel@. This element can have one of the
-- following values:
--
-- -   @PENDING@ - Amazon Machine Learning (Amazon ML) submitted a request
--     to create an @MLModel@.
--
-- -   @INPROGRESS@ - The creation process is underway.
--
-- -   @FAILED@ - The request to create an @MLModel@ didn\'t run to
--     completion. The model isn\'t usable.
--
-- -   @COMPLETED@ - The creation process completed successfully.
--
-- -   @DELETED@ - The @MLModel@ is marked as deleted. It isn\'t usable.
--
-- 'trainingDataSourceId', 'mLModel_trainingDataSourceId' - The ID of the training @DataSource@. The @CreateMLModel@ operation uses
-- the @TrainingDataSourceId@.
--
-- 'trainingParameters', 'mLModel_trainingParameters' - A list of the training parameters in the @MLModel@. The list is
-- implemented as a map of key-value pairs.
--
-- The following is the current set of training parameters:
--
-- -   @sgd.maxMLModelSizeInBytes@ - The maximum allowed size of the model.
--     Depending on the input data, the size of the model might affect its
--     performance.
--
--     The value is an integer that ranges from @100000@ to @2147483648@.
--     The default value is @33554432@.
--
-- -   @sgd.maxPasses@ - The number of times that the training process
--     traverses the observations to build the @MLModel@. The value is an
--     integer that ranges from @1@ to @10000@. The default value is @10@.
--
-- -   @sgd.shuffleType@ - Whether Amazon ML shuffles the training data.
--     Shuffling the data improves a model\'s ability to find the optimal
--     solution for a variety of data types. The valid values are @auto@
--     and @none@. The default value is @none@.
--
-- -   @sgd.l1RegularizationAmount@ - The coefficient regularization L1
--     norm, which controls overfitting the data by penalizing large
--     coefficients. This parameter tends to drive coefficients to zero,
--     resulting in sparse feature set. If you use this parameter, start by
--     specifying a small value, such as @1.0E-08@.
--
--     The value is a double that ranges from @0@ to @MAX_DOUBLE@. The
--     default is to not use L1 normalization. This parameter can\'t be
--     used when @L2@ is specified. Use this parameter sparingly.
--
-- -   @sgd.l2RegularizationAmount@ - The coefficient regularization L2
--     norm, which controls overfitting the data by penalizing large
--     coefficients. This tends to drive coefficients to small, nonzero
--     values. If you use this parameter, start by specifying a small
--     value, such as @1.0E-08@.
--
--     The value is a double that ranges from @0@ to @MAX_DOUBLE@. The
--     default is to not use L2 normalization. This parameter can\'t be
--     used when @L1@ is specified. Use this parameter sparingly.
newMLModel ::
  MLModel
newMLModel :: MLModel
newMLModel =
  MLModel'
    { $sel:algorithm:MLModel' :: Maybe Algorithm
algorithm = forall a. Maybe a
Prelude.Nothing,
      $sel:computeTime:MLModel' :: Maybe Integer
computeTime = forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:MLModel' :: Maybe POSIX
createdAt = forall a. Maybe a
Prelude.Nothing,
      $sel:createdByIamUser:MLModel' :: Maybe Text
createdByIamUser = forall a. Maybe a
Prelude.Nothing,
      $sel:endpointInfo:MLModel' :: Maybe RealtimeEndpointInfo
endpointInfo = forall a. Maybe a
Prelude.Nothing,
      $sel:finishedAt:MLModel' :: Maybe POSIX
finishedAt = forall a. Maybe a
Prelude.Nothing,
      $sel:inputDataLocationS3:MLModel' :: Maybe Text
inputDataLocationS3 = forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedAt:MLModel' :: Maybe POSIX
lastUpdatedAt = forall a. Maybe a
Prelude.Nothing,
      $sel:mLModelId:MLModel' :: Maybe Text
mLModelId = forall a. Maybe a
Prelude.Nothing,
      $sel:mLModelType:MLModel' :: Maybe MLModelType
mLModelType = forall a. Maybe a
Prelude.Nothing,
      $sel:message:MLModel' :: Maybe Text
message = forall a. Maybe a
Prelude.Nothing,
      $sel:name:MLModel' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:scoreThreshold:MLModel' :: Maybe Double
scoreThreshold = forall a. Maybe a
Prelude.Nothing,
      $sel:scoreThresholdLastUpdatedAt:MLModel' :: Maybe POSIX
scoreThresholdLastUpdatedAt = forall a. Maybe a
Prelude.Nothing,
      $sel:sizeInBytes:MLModel' :: Maybe Integer
sizeInBytes = forall a. Maybe a
Prelude.Nothing,
      $sel:startedAt:MLModel' :: Maybe POSIX
startedAt = forall a. Maybe a
Prelude.Nothing,
      $sel:status:MLModel' :: Maybe EntityStatus
status = forall a. Maybe a
Prelude.Nothing,
      $sel:trainingDataSourceId:MLModel' :: Maybe Text
trainingDataSourceId = forall a. Maybe a
Prelude.Nothing,
      $sel:trainingParameters:MLModel' :: Maybe (HashMap Text Text)
trainingParameters = forall a. Maybe a
Prelude.Nothing
    }

-- | The algorithm used to train the @MLModel@. The following algorithm is
-- supported:
--
-- -   @SGD@ -- Stochastic gradient descent. The goal of @SGD@ is to
--     minimize the gradient of the loss function.
mLModel_algorithm :: Lens.Lens' MLModel (Prelude.Maybe Algorithm)
mLModel_algorithm :: Lens' MLModel (Maybe Algorithm)
mLModel_algorithm = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Algorithm
algorithm :: Maybe Algorithm
$sel:algorithm:MLModel' :: MLModel -> Maybe Algorithm
algorithm} -> Maybe Algorithm
algorithm) (\s :: MLModel
s@MLModel' {} Maybe Algorithm
a -> MLModel
s {$sel:algorithm:MLModel' :: Maybe Algorithm
algorithm = Maybe Algorithm
a} :: MLModel)

-- | Undocumented member.
mLModel_computeTime :: Lens.Lens' MLModel (Prelude.Maybe Prelude.Integer)
mLModel_computeTime :: Lens' MLModel (Maybe Integer)
mLModel_computeTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Integer
computeTime :: Maybe Integer
$sel:computeTime:MLModel' :: MLModel -> Maybe Integer
computeTime} -> Maybe Integer
computeTime) (\s :: MLModel
s@MLModel' {} Maybe Integer
a -> MLModel
s {$sel:computeTime:MLModel' :: Maybe Integer
computeTime = Maybe Integer
a} :: MLModel)

-- | The time that the @MLModel@ was created. The time is expressed in epoch
-- time.
mLModel_createdAt :: Lens.Lens' MLModel (Prelude.Maybe Prelude.UTCTime)
mLModel_createdAt :: Lens' MLModel (Maybe UTCTime)
mLModel_createdAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:MLModel' :: MLModel -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: MLModel
s@MLModel' {} Maybe POSIX
a -> MLModel
s {$sel:createdAt:MLModel' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: MLModel) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The AWS user account from which the @MLModel@ was created. The account
-- type can be either an AWS root account or an AWS Identity and Access
-- Management (IAM) user account.
mLModel_createdByIamUser :: Lens.Lens' MLModel (Prelude.Maybe Prelude.Text)
mLModel_createdByIamUser :: Lens' MLModel (Maybe Text)
mLModel_createdByIamUser = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Text
createdByIamUser :: Maybe Text
$sel:createdByIamUser:MLModel' :: MLModel -> Maybe Text
createdByIamUser} -> Maybe Text
createdByIamUser) (\s :: MLModel
s@MLModel' {} Maybe Text
a -> MLModel
s {$sel:createdByIamUser:MLModel' :: Maybe Text
createdByIamUser = Maybe Text
a} :: MLModel)

-- | The current endpoint of the @MLModel@.
mLModel_endpointInfo :: Lens.Lens' MLModel (Prelude.Maybe RealtimeEndpointInfo)
mLModel_endpointInfo :: Lens' MLModel (Maybe RealtimeEndpointInfo)
mLModel_endpointInfo = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe RealtimeEndpointInfo
endpointInfo :: Maybe RealtimeEndpointInfo
$sel:endpointInfo:MLModel' :: MLModel -> Maybe RealtimeEndpointInfo
endpointInfo} -> Maybe RealtimeEndpointInfo
endpointInfo) (\s :: MLModel
s@MLModel' {} Maybe RealtimeEndpointInfo
a -> MLModel
s {$sel:endpointInfo:MLModel' :: Maybe RealtimeEndpointInfo
endpointInfo = Maybe RealtimeEndpointInfo
a} :: MLModel)

-- | Undocumented member.
mLModel_finishedAt :: Lens.Lens' MLModel (Prelude.Maybe Prelude.UTCTime)
mLModel_finishedAt :: Lens' MLModel (Maybe UTCTime)
mLModel_finishedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe POSIX
finishedAt :: Maybe POSIX
$sel:finishedAt:MLModel' :: MLModel -> Maybe POSIX
finishedAt} -> Maybe POSIX
finishedAt) (\s :: MLModel
s@MLModel' {} Maybe POSIX
a -> MLModel
s {$sel:finishedAt:MLModel' :: Maybe POSIX
finishedAt = Maybe POSIX
a} :: MLModel) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The location of the data file or directory in Amazon Simple Storage
-- Service (Amazon S3).
mLModel_inputDataLocationS3 :: Lens.Lens' MLModel (Prelude.Maybe Prelude.Text)
mLModel_inputDataLocationS3 :: Lens' MLModel (Maybe Text)
mLModel_inputDataLocationS3 = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Text
inputDataLocationS3 :: Maybe Text
$sel:inputDataLocationS3:MLModel' :: MLModel -> Maybe Text
inputDataLocationS3} -> Maybe Text
inputDataLocationS3) (\s :: MLModel
s@MLModel' {} Maybe Text
a -> MLModel
s {$sel:inputDataLocationS3:MLModel' :: Maybe Text
inputDataLocationS3 = Maybe Text
a} :: MLModel)

-- | The time of the most recent edit to the @MLModel@. The time is expressed
-- in epoch time.
mLModel_lastUpdatedAt :: Lens.Lens' MLModel (Prelude.Maybe Prelude.UTCTime)
mLModel_lastUpdatedAt :: Lens' MLModel (Maybe UTCTime)
mLModel_lastUpdatedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe POSIX
lastUpdatedAt :: Maybe POSIX
$sel:lastUpdatedAt:MLModel' :: MLModel -> Maybe POSIX
lastUpdatedAt} -> Maybe POSIX
lastUpdatedAt) (\s :: MLModel
s@MLModel' {} Maybe POSIX
a -> MLModel
s {$sel:lastUpdatedAt:MLModel' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
a} :: MLModel) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The ID assigned to the @MLModel@ at creation.
mLModel_mLModelId :: Lens.Lens' MLModel (Prelude.Maybe Prelude.Text)
mLModel_mLModelId :: Lens' MLModel (Maybe Text)
mLModel_mLModelId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Text
mLModelId :: Maybe Text
$sel:mLModelId:MLModel' :: MLModel -> Maybe Text
mLModelId} -> Maybe Text
mLModelId) (\s :: MLModel
s@MLModel' {} Maybe Text
a -> MLModel
s {$sel:mLModelId:MLModel' :: Maybe Text
mLModelId = Maybe Text
a} :: MLModel)

-- | Identifies the @MLModel@ category. The following are the available
-- types:
--
-- -   @REGRESSION@ - Produces a numeric result. For example, \"What price
--     should a house be listed at?\"
--
-- -   @BINARY@ - Produces one of two possible results. For example, \"Is
--     this a child-friendly web site?\".
--
-- -   @MULTICLASS@ - Produces one of several possible results. For
--     example, \"Is this a HIGH-, LOW-, or MEDIUM-risk trade?\".
mLModel_mLModelType :: Lens.Lens' MLModel (Prelude.Maybe MLModelType)
mLModel_mLModelType :: Lens' MLModel (Maybe MLModelType)
mLModel_mLModelType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe MLModelType
mLModelType :: Maybe MLModelType
$sel:mLModelType:MLModel' :: MLModel -> Maybe MLModelType
mLModelType} -> Maybe MLModelType
mLModelType) (\s :: MLModel
s@MLModel' {} Maybe MLModelType
a -> MLModel
s {$sel:mLModelType:MLModel' :: Maybe MLModelType
mLModelType = Maybe MLModelType
a} :: MLModel)

-- | A description of the most recent details about accessing the @MLModel@.
mLModel_message :: Lens.Lens' MLModel (Prelude.Maybe Prelude.Text)
mLModel_message :: Lens' MLModel (Maybe Text)
mLModel_message = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Text
message :: Maybe Text
$sel:message:MLModel' :: MLModel -> Maybe Text
message} -> Maybe Text
message) (\s :: MLModel
s@MLModel' {} Maybe Text
a -> MLModel
s {$sel:message:MLModel' :: Maybe Text
message = Maybe Text
a} :: MLModel)

-- | A user-supplied name or description of the @MLModel@.
mLModel_name :: Lens.Lens' MLModel (Prelude.Maybe Prelude.Text)
mLModel_name :: Lens' MLModel (Maybe Text)
mLModel_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Text
name :: Maybe Text
$sel:name:MLModel' :: MLModel -> Maybe Text
name} -> Maybe Text
name) (\s :: MLModel
s@MLModel' {} Maybe Text
a -> MLModel
s {$sel:name:MLModel' :: Maybe Text
name = Maybe Text
a} :: MLModel)

-- | Undocumented member.
mLModel_scoreThreshold :: Lens.Lens' MLModel (Prelude.Maybe Prelude.Double)
mLModel_scoreThreshold :: Lens' MLModel (Maybe Double)
mLModel_scoreThreshold = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Double
scoreThreshold :: Maybe Double
$sel:scoreThreshold:MLModel' :: MLModel -> Maybe Double
scoreThreshold} -> Maybe Double
scoreThreshold) (\s :: MLModel
s@MLModel' {} Maybe Double
a -> MLModel
s {$sel:scoreThreshold:MLModel' :: Maybe Double
scoreThreshold = Maybe Double
a} :: MLModel)

-- | The time of the most recent edit to the @ScoreThreshold@. The time is
-- expressed in epoch time.
mLModel_scoreThresholdLastUpdatedAt :: Lens.Lens' MLModel (Prelude.Maybe Prelude.UTCTime)
mLModel_scoreThresholdLastUpdatedAt :: Lens' MLModel (Maybe UTCTime)
mLModel_scoreThresholdLastUpdatedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe POSIX
scoreThresholdLastUpdatedAt :: Maybe POSIX
$sel:scoreThresholdLastUpdatedAt:MLModel' :: MLModel -> Maybe POSIX
scoreThresholdLastUpdatedAt} -> Maybe POSIX
scoreThresholdLastUpdatedAt) (\s :: MLModel
s@MLModel' {} Maybe POSIX
a -> MLModel
s {$sel:scoreThresholdLastUpdatedAt:MLModel' :: Maybe POSIX
scoreThresholdLastUpdatedAt = Maybe POSIX
a} :: MLModel) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | Undocumented member.
mLModel_sizeInBytes :: Lens.Lens' MLModel (Prelude.Maybe Prelude.Integer)
mLModel_sizeInBytes :: Lens' MLModel (Maybe Integer)
mLModel_sizeInBytes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Integer
sizeInBytes :: Maybe Integer
$sel:sizeInBytes:MLModel' :: MLModel -> Maybe Integer
sizeInBytes} -> Maybe Integer
sizeInBytes) (\s :: MLModel
s@MLModel' {} Maybe Integer
a -> MLModel
s {$sel:sizeInBytes:MLModel' :: Maybe Integer
sizeInBytes = Maybe Integer
a} :: MLModel)

-- | Undocumented member.
mLModel_startedAt :: Lens.Lens' MLModel (Prelude.Maybe Prelude.UTCTime)
mLModel_startedAt :: Lens' MLModel (Maybe UTCTime)
mLModel_startedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe POSIX
startedAt :: Maybe POSIX
$sel:startedAt:MLModel' :: MLModel -> Maybe POSIX
startedAt} -> Maybe POSIX
startedAt) (\s :: MLModel
s@MLModel' {} Maybe POSIX
a -> MLModel
s {$sel:startedAt:MLModel' :: Maybe POSIX
startedAt = Maybe POSIX
a} :: MLModel) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The current status of an @MLModel@. This element can have one of the
-- following values:
--
-- -   @PENDING@ - Amazon Machine Learning (Amazon ML) submitted a request
--     to create an @MLModel@.
--
-- -   @INPROGRESS@ - The creation process is underway.
--
-- -   @FAILED@ - The request to create an @MLModel@ didn\'t run to
--     completion. The model isn\'t usable.
--
-- -   @COMPLETED@ - The creation process completed successfully.
--
-- -   @DELETED@ - The @MLModel@ is marked as deleted. It isn\'t usable.
mLModel_status :: Lens.Lens' MLModel (Prelude.Maybe EntityStatus)
mLModel_status :: Lens' MLModel (Maybe EntityStatus)
mLModel_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe EntityStatus
status :: Maybe EntityStatus
$sel:status:MLModel' :: MLModel -> Maybe EntityStatus
status} -> Maybe EntityStatus
status) (\s :: MLModel
s@MLModel' {} Maybe EntityStatus
a -> MLModel
s {$sel:status:MLModel' :: Maybe EntityStatus
status = Maybe EntityStatus
a} :: MLModel)

-- | The ID of the training @DataSource@. The @CreateMLModel@ operation uses
-- the @TrainingDataSourceId@.
mLModel_trainingDataSourceId :: Lens.Lens' MLModel (Prelude.Maybe Prelude.Text)
mLModel_trainingDataSourceId :: Lens' MLModel (Maybe Text)
mLModel_trainingDataSourceId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Text
trainingDataSourceId :: Maybe Text
$sel:trainingDataSourceId:MLModel' :: MLModel -> Maybe Text
trainingDataSourceId} -> Maybe Text
trainingDataSourceId) (\s :: MLModel
s@MLModel' {} Maybe Text
a -> MLModel
s {$sel:trainingDataSourceId:MLModel' :: Maybe Text
trainingDataSourceId = Maybe Text
a} :: MLModel)

-- | A list of the training parameters in the @MLModel@. The list is
-- implemented as a map of key-value pairs.
--
-- The following is the current set of training parameters:
--
-- -   @sgd.maxMLModelSizeInBytes@ - The maximum allowed size of the model.
--     Depending on the input data, the size of the model might affect its
--     performance.
--
--     The value is an integer that ranges from @100000@ to @2147483648@.
--     The default value is @33554432@.
--
-- -   @sgd.maxPasses@ - The number of times that the training process
--     traverses the observations to build the @MLModel@. The value is an
--     integer that ranges from @1@ to @10000@. The default value is @10@.
--
-- -   @sgd.shuffleType@ - Whether Amazon ML shuffles the training data.
--     Shuffling the data improves a model\'s ability to find the optimal
--     solution for a variety of data types. The valid values are @auto@
--     and @none@. The default value is @none@.
--
-- -   @sgd.l1RegularizationAmount@ - The coefficient regularization L1
--     norm, which controls overfitting the data by penalizing large
--     coefficients. This parameter tends to drive coefficients to zero,
--     resulting in sparse feature set. If you use this parameter, start by
--     specifying a small value, such as @1.0E-08@.
--
--     The value is a double that ranges from @0@ to @MAX_DOUBLE@. The
--     default is to not use L1 normalization. This parameter can\'t be
--     used when @L2@ is specified. Use this parameter sparingly.
--
-- -   @sgd.l2RegularizationAmount@ - The coefficient regularization L2
--     norm, which controls overfitting the data by penalizing large
--     coefficients. This tends to drive coefficients to small, nonzero
--     values. If you use this parameter, start by specifying a small
--     value, such as @1.0E-08@.
--
--     The value is a double that ranges from @0@ to @MAX_DOUBLE@. The
--     default is to not use L2 normalization. This parameter can\'t be
--     used when @L1@ is specified. Use this parameter sparingly.
mLModel_trainingParameters :: Lens.Lens' MLModel (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
mLModel_trainingParameters :: Lens' MLModel (Maybe (HashMap Text Text))
mLModel_trainingParameters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe (HashMap Text Text)
trainingParameters :: Maybe (HashMap Text Text)
$sel:trainingParameters:MLModel' :: MLModel -> Maybe (HashMap Text Text)
trainingParameters} -> Maybe (HashMap Text Text)
trainingParameters) (\s :: MLModel
s@MLModel' {} Maybe (HashMap Text Text)
a -> MLModel
s {$sel:trainingParameters:MLModel' :: Maybe (HashMap Text Text)
trainingParameters = Maybe (HashMap Text Text)
a} :: MLModel) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Data.FromJSON MLModel where
  parseJSON :: Value -> Parser MLModel
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"MLModel"
      ( \Object
x ->
          Maybe Algorithm
-> Maybe Integer
-> Maybe POSIX
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe MLModelType
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe POSIX
-> Maybe Integer
-> Maybe POSIX
-> Maybe EntityStatus
-> Maybe Text
-> Maybe (HashMap Text Text)
-> MLModel
MLModel'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Algorithm")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ComputeTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CreatedAt")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CreatedByIamUser")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"EndpointInfo")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FinishedAt")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"InputDataLocationS3")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LastUpdatedAt")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MLModelId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MLModelType")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Message")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Name")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ScoreThreshold")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ScoreThresholdLastUpdatedAt")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SizeInBytes")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"StartedAt")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Status")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"TrainingDataSourceId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"TrainingParameters"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable MLModel where
  hashWithSalt :: Int -> MLModel -> Int
hashWithSalt Int
_salt MLModel' {Maybe Double
Maybe Integer
Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe Algorithm
Maybe EntityStatus
Maybe MLModelType
Maybe RealtimeEndpointInfo
trainingParameters :: Maybe (HashMap Text Text)
trainingDataSourceId :: Maybe Text
status :: Maybe EntityStatus
startedAt :: Maybe POSIX
sizeInBytes :: Maybe Integer
scoreThresholdLastUpdatedAt :: Maybe POSIX
scoreThreshold :: Maybe Double
name :: Maybe Text
message :: Maybe Text
mLModelType :: Maybe MLModelType
mLModelId :: Maybe Text
lastUpdatedAt :: Maybe POSIX
inputDataLocationS3 :: Maybe Text
finishedAt :: Maybe POSIX
endpointInfo :: Maybe RealtimeEndpointInfo
createdByIamUser :: Maybe Text
createdAt :: Maybe POSIX
computeTime :: Maybe Integer
algorithm :: Maybe Algorithm
$sel:trainingParameters:MLModel' :: MLModel -> Maybe (HashMap Text Text)
$sel:trainingDataSourceId:MLModel' :: MLModel -> Maybe Text
$sel:status:MLModel' :: MLModel -> Maybe EntityStatus
$sel:startedAt:MLModel' :: MLModel -> Maybe POSIX
$sel:sizeInBytes:MLModel' :: MLModel -> Maybe Integer
$sel:scoreThresholdLastUpdatedAt:MLModel' :: MLModel -> Maybe POSIX
$sel:scoreThreshold:MLModel' :: MLModel -> Maybe Double
$sel:name:MLModel' :: MLModel -> Maybe Text
$sel:message:MLModel' :: MLModel -> Maybe Text
$sel:mLModelType:MLModel' :: MLModel -> Maybe MLModelType
$sel:mLModelId:MLModel' :: MLModel -> Maybe Text
$sel:lastUpdatedAt:MLModel' :: MLModel -> Maybe POSIX
$sel:inputDataLocationS3:MLModel' :: MLModel -> Maybe Text
$sel:finishedAt:MLModel' :: MLModel -> Maybe POSIX
$sel:endpointInfo:MLModel' :: MLModel -> Maybe RealtimeEndpointInfo
$sel:createdByIamUser:MLModel' :: MLModel -> Maybe Text
$sel:createdAt:MLModel' :: MLModel -> Maybe POSIX
$sel:computeTime:MLModel' :: MLModel -> Maybe Integer
$sel:algorithm:MLModel' :: MLModel -> Maybe Algorithm
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Algorithm
algorithm
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
computeTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
createdAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
createdByIamUser
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe RealtimeEndpointInfo
endpointInfo
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
finishedAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
inputDataLocationS3
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastUpdatedAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
mLModelId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MLModelType
mLModelType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
message
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Double
scoreThreshold
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
scoreThresholdLastUpdatedAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
sizeInBytes
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
startedAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe EntityStatus
status
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
trainingDataSourceId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
trainingParameters

instance Prelude.NFData MLModel where
  rnf :: MLModel -> ()
rnf MLModel' {Maybe Double
Maybe Integer
Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe Algorithm
Maybe EntityStatus
Maybe MLModelType
Maybe RealtimeEndpointInfo
trainingParameters :: Maybe (HashMap Text Text)
trainingDataSourceId :: Maybe Text
status :: Maybe EntityStatus
startedAt :: Maybe POSIX
sizeInBytes :: Maybe Integer
scoreThresholdLastUpdatedAt :: Maybe POSIX
scoreThreshold :: Maybe Double
name :: Maybe Text
message :: Maybe Text
mLModelType :: Maybe MLModelType
mLModelId :: Maybe Text
lastUpdatedAt :: Maybe POSIX
inputDataLocationS3 :: Maybe Text
finishedAt :: Maybe POSIX
endpointInfo :: Maybe RealtimeEndpointInfo
createdByIamUser :: Maybe Text
createdAt :: Maybe POSIX
computeTime :: Maybe Integer
algorithm :: Maybe Algorithm
$sel:trainingParameters:MLModel' :: MLModel -> Maybe (HashMap Text Text)
$sel:trainingDataSourceId:MLModel' :: MLModel -> Maybe Text
$sel:status:MLModel' :: MLModel -> Maybe EntityStatus
$sel:startedAt:MLModel' :: MLModel -> Maybe POSIX
$sel:sizeInBytes:MLModel' :: MLModel -> Maybe Integer
$sel:scoreThresholdLastUpdatedAt:MLModel' :: MLModel -> Maybe POSIX
$sel:scoreThreshold:MLModel' :: MLModel -> Maybe Double
$sel:name:MLModel' :: MLModel -> Maybe Text
$sel:message:MLModel' :: MLModel -> Maybe Text
$sel:mLModelType:MLModel' :: MLModel -> Maybe MLModelType
$sel:mLModelId:MLModel' :: MLModel -> Maybe Text
$sel:lastUpdatedAt:MLModel' :: MLModel -> Maybe POSIX
$sel:inputDataLocationS3:MLModel' :: MLModel -> Maybe Text
$sel:finishedAt:MLModel' :: MLModel -> Maybe POSIX
$sel:endpointInfo:MLModel' :: MLModel -> Maybe RealtimeEndpointInfo
$sel:createdByIamUser:MLModel' :: MLModel -> Maybe Text
$sel:createdAt:MLModel' :: MLModel -> Maybe POSIX
$sel:computeTime:MLModel' :: MLModel -> Maybe Integer
$sel:algorithm:MLModel' :: MLModel -> Maybe Algorithm
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Algorithm
algorithm
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
computeTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
createdAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
createdByIamUser
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe RealtimeEndpointInfo
endpointInfo
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
finishedAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
inputDataLocationS3
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastUpdatedAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
mLModelId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MLModelType
mLModelType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
message
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
scoreThreshold
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
scoreThresholdLastUpdatedAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
sizeInBytes
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
startedAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe EntityStatus
status
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
trainingDataSourceId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
trainingParameters