amazonka-ml-1.5.0: Amazon Machine Learning SDK.

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.MachineLearning.UpdateMLModel

Contents

Description

Updates the MLModelName and the ScoreThreshold of an MLModel .

You can use the GetMLModel operation to view the contents of the updated data element.

Synopsis

Creating a Request

updateMLModel Source #

Creates a value of UpdateMLModel with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • umlmMLModelName - A user-supplied name or description of the MLModel .
  • umlmScoreThreshold - The ScoreThreshold used in binary classification MLModel that marks the boundary between a positive prediction and a negative prediction. Output values greater than or equal to the ScoreThreshold receive a positive result from the MLModel , such as true . Output values less than the ScoreThreshold receive a negative response from the MLModel , such as false .
  • umlmMLModelId - The ID assigned to the MLModel during creation.

data UpdateMLModel Source #

See: updateMLModel smart constructor.

Instances

Eq UpdateMLModel Source # 
Data UpdateMLModel Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateMLModel -> c UpdateMLModel #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateMLModel #

toConstr :: UpdateMLModel -> Constr #

dataTypeOf :: UpdateMLModel -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateMLModel) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateMLModel) #

gmapT :: (forall b. Data b => b -> b) -> UpdateMLModel -> UpdateMLModel #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateMLModel -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateMLModel -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateMLModel -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateMLModel -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateMLModel -> m UpdateMLModel #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateMLModel -> m UpdateMLModel #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateMLModel -> m UpdateMLModel #

Read UpdateMLModel Source # 
Show UpdateMLModel Source # 
Generic UpdateMLModel Source # 

Associated Types

type Rep UpdateMLModel :: * -> * #

Hashable UpdateMLModel Source # 
ToJSON UpdateMLModel Source # 
NFData UpdateMLModel Source # 

Methods

rnf :: UpdateMLModel -> () #

AWSRequest UpdateMLModel Source # 
ToQuery UpdateMLModel Source # 
ToPath UpdateMLModel Source # 
ToHeaders UpdateMLModel Source # 
type Rep UpdateMLModel Source # 
type Rep UpdateMLModel = D1 (MetaData "UpdateMLModel" "Network.AWS.MachineLearning.UpdateMLModel" "amazonka-ml-1.5.0-CbUNVP31vJd1Lf9wTXn86Z" False) (C1 (MetaCons "UpdateMLModel'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_umlmMLModelName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_umlmScoreThreshold") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Double))) (S1 (MetaSel (Just Symbol "_umlmMLModelId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs UpdateMLModel Source # 

Request Lenses

umlmMLModelName :: Lens' UpdateMLModel (Maybe Text) Source #

A user-supplied name or description of the MLModel .

umlmScoreThreshold :: Lens' UpdateMLModel (Maybe Double) Source #

The ScoreThreshold used in binary classification MLModel that marks the boundary between a positive prediction and a negative prediction. Output values greater than or equal to the ScoreThreshold receive a positive result from the MLModel , such as true . Output values less than the ScoreThreshold receive a negative response from the MLModel , such as false .

umlmMLModelId :: Lens' UpdateMLModel Text Source #

The ID assigned to the MLModel during creation.

Destructuring the Response

updateMLModelResponse Source #

Creates a value of UpdateMLModelResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • umlmrsMLModelId - The ID assigned to the MLModel during creation. This value should be identical to the value of the MLModelID in the request.
  • umlmrsResponseStatus - -- | The response status code.

data UpdateMLModelResponse Source #

Represents the output of an UpdateMLModel operation.

You can see the updated content by using the GetMLModel operation.

See: updateMLModelResponse smart constructor.

Instances

Eq UpdateMLModelResponse Source # 
Data UpdateMLModelResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateMLModelResponse -> c UpdateMLModelResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateMLModelResponse #

toConstr :: UpdateMLModelResponse -> Constr #

dataTypeOf :: UpdateMLModelResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateMLModelResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateMLModelResponse) #

gmapT :: (forall b. Data b => b -> b) -> UpdateMLModelResponse -> UpdateMLModelResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateMLModelResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateMLModelResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateMLModelResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateMLModelResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateMLModelResponse -> m UpdateMLModelResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateMLModelResponse -> m UpdateMLModelResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateMLModelResponse -> m UpdateMLModelResponse #

Read UpdateMLModelResponse Source # 
Show UpdateMLModelResponse Source # 
Generic UpdateMLModelResponse Source # 
NFData UpdateMLModelResponse Source # 

Methods

rnf :: UpdateMLModelResponse -> () #

type Rep UpdateMLModelResponse Source # 
type Rep UpdateMLModelResponse = D1 (MetaData "UpdateMLModelResponse" "Network.AWS.MachineLearning.UpdateMLModel" "amazonka-ml-1.5.0-CbUNVP31vJd1Lf9wTXn86Z" False) (C1 (MetaCons "UpdateMLModelResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_umlmrsMLModelId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_umlmrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

umlmrsMLModelId :: Lens' UpdateMLModelResponse (Maybe Text) Source #

The ID assigned to the MLModel during creation. This value should be identical to the value of the MLModelID in the request.