{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MachineLearning.Types.Algorithm
( Algorithm
( ..,
Algorithm_Sgd
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype Algorithm = Algorithm'
{ Algorithm -> Text
fromAlgorithm ::
Core.Text
}
deriving stock
( Int -> Algorithm -> ShowS
[Algorithm] -> ShowS
Algorithm -> String
(Int -> Algorithm -> ShowS)
-> (Algorithm -> String)
-> ([Algorithm] -> ShowS)
-> Show Algorithm
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Algorithm] -> ShowS
$cshowList :: [Algorithm] -> ShowS
show :: Algorithm -> String
$cshow :: Algorithm -> String
showsPrec :: Int -> Algorithm -> ShowS
$cshowsPrec :: Int -> Algorithm -> ShowS
Prelude.Show,
ReadPrec [Algorithm]
ReadPrec Algorithm
Int -> ReadS Algorithm
ReadS [Algorithm]
(Int -> ReadS Algorithm)
-> ReadS [Algorithm]
-> ReadPrec Algorithm
-> ReadPrec [Algorithm]
-> Read Algorithm
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Algorithm]
$creadListPrec :: ReadPrec [Algorithm]
readPrec :: ReadPrec Algorithm
$creadPrec :: ReadPrec Algorithm
readList :: ReadS [Algorithm]
$creadList :: ReadS [Algorithm]
readsPrec :: Int -> ReadS Algorithm
$creadsPrec :: Int -> ReadS Algorithm
Prelude.Read,
Algorithm -> Algorithm -> Bool
(Algorithm -> Algorithm -> Bool)
-> (Algorithm -> Algorithm -> Bool) -> Eq Algorithm
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Algorithm -> Algorithm -> Bool
$c/= :: Algorithm -> Algorithm -> Bool
== :: Algorithm -> Algorithm -> Bool
$c== :: Algorithm -> Algorithm -> Bool
Prelude.Eq,
Eq Algorithm
Eq Algorithm
-> (Algorithm -> Algorithm -> Ordering)
-> (Algorithm -> Algorithm -> Bool)
-> (Algorithm -> Algorithm -> Bool)
-> (Algorithm -> Algorithm -> Bool)
-> (Algorithm -> Algorithm -> Bool)
-> (Algorithm -> Algorithm -> Algorithm)
-> (Algorithm -> Algorithm -> Algorithm)
-> Ord Algorithm
Algorithm -> Algorithm -> Bool
Algorithm -> Algorithm -> Ordering
Algorithm -> Algorithm -> Algorithm
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: Algorithm -> Algorithm -> Algorithm
$cmin :: Algorithm -> Algorithm -> Algorithm
max :: Algorithm -> Algorithm -> Algorithm
$cmax :: Algorithm -> Algorithm -> Algorithm
>= :: Algorithm -> Algorithm -> Bool
$c>= :: Algorithm -> Algorithm -> Bool
> :: Algorithm -> Algorithm -> Bool
$c> :: Algorithm -> Algorithm -> Bool
<= :: Algorithm -> Algorithm -> Bool
$c<= :: Algorithm -> Algorithm -> Bool
< :: Algorithm -> Algorithm -> Bool
$c< :: Algorithm -> Algorithm -> Bool
compare :: Algorithm -> Algorithm -> Ordering
$ccompare :: Algorithm -> Algorithm -> Ordering
$cp1Ord :: Eq Algorithm
Prelude.Ord,
(forall x. Algorithm -> Rep Algorithm x)
-> (forall x. Rep Algorithm x -> Algorithm) -> Generic Algorithm
forall x. Rep Algorithm x -> Algorithm
forall x. Algorithm -> Rep Algorithm x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Algorithm x -> Algorithm
$cfrom :: forall x. Algorithm -> Rep Algorithm x
Prelude.Generic
)
deriving newtype
( Int -> Algorithm -> Int
Algorithm -> Int
(Int -> Algorithm -> Int)
-> (Algorithm -> Int) -> Hashable Algorithm
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Algorithm -> Int
$chash :: Algorithm -> Int
hashWithSalt :: Int -> Algorithm -> Int
$chashWithSalt :: Int -> Algorithm -> Int
Prelude.Hashable,
Algorithm -> ()
(Algorithm -> ()) -> NFData Algorithm
forall a. (a -> ()) -> NFData a
rnf :: Algorithm -> ()
$crnf :: Algorithm -> ()
Prelude.NFData,
Text -> Either String Algorithm
(Text -> Either String Algorithm) -> FromText Algorithm
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Algorithm
$cfromText :: Text -> Either String Algorithm
Core.FromText,
Algorithm -> Text
(Algorithm -> Text) -> ToText Algorithm
forall a. (a -> Text) -> ToText a
toText :: Algorithm -> Text
$ctoText :: Algorithm -> Text
Core.ToText,
Algorithm -> ByteString
(Algorithm -> ByteString) -> ToByteString Algorithm
forall a. (a -> ByteString) -> ToByteString a
toBS :: Algorithm -> ByteString
$ctoBS :: Algorithm -> ByteString
Core.ToByteString,
Algorithm -> ByteStringBuilder
(Algorithm -> ByteStringBuilder) -> ToLog Algorithm
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Algorithm -> ByteStringBuilder
$cbuild :: Algorithm -> ByteStringBuilder
Core.ToLog,
HeaderName -> Algorithm -> [Header]
(HeaderName -> Algorithm -> [Header]) -> ToHeader Algorithm
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Algorithm -> [Header]
$ctoHeader :: HeaderName -> Algorithm -> [Header]
Core.ToHeader,
Algorithm -> QueryString
(Algorithm -> QueryString) -> ToQuery Algorithm
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Algorithm -> QueryString
$ctoQuery :: Algorithm -> QueryString
Core.ToQuery,
Value -> Parser [Algorithm]
Value -> Parser Algorithm
(Value -> Parser Algorithm)
-> (Value -> Parser [Algorithm]) -> FromJSON Algorithm
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Algorithm]
$cparseJSONList :: Value -> Parser [Algorithm]
parseJSON :: Value -> Parser Algorithm
$cparseJSON :: Value -> Parser Algorithm
Core.FromJSON,
FromJSONKeyFunction [Algorithm]
FromJSONKeyFunction Algorithm
FromJSONKeyFunction Algorithm
-> FromJSONKeyFunction [Algorithm] -> FromJSONKey Algorithm
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Algorithm]
$cfromJSONKeyList :: FromJSONKeyFunction [Algorithm]
fromJSONKey :: FromJSONKeyFunction Algorithm
$cfromJSONKey :: FromJSONKeyFunction Algorithm
Core.FromJSONKey,
[Algorithm] -> Encoding
[Algorithm] -> Value
Algorithm -> Encoding
Algorithm -> Value
(Algorithm -> Value)
-> (Algorithm -> Encoding)
-> ([Algorithm] -> Value)
-> ([Algorithm] -> Encoding)
-> ToJSON Algorithm
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Algorithm] -> Encoding
$ctoEncodingList :: [Algorithm] -> Encoding
toJSONList :: [Algorithm] -> Value
$ctoJSONList :: [Algorithm] -> Value
toEncoding :: Algorithm -> Encoding
$ctoEncoding :: Algorithm -> Encoding
toJSON :: Algorithm -> Value
$ctoJSON :: Algorithm -> Value
Core.ToJSON,
ToJSONKeyFunction [Algorithm]
ToJSONKeyFunction Algorithm
ToJSONKeyFunction Algorithm
-> ToJSONKeyFunction [Algorithm] -> ToJSONKey Algorithm
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Algorithm]
$ctoJSONKeyList :: ToJSONKeyFunction [Algorithm]
toJSONKey :: ToJSONKeyFunction Algorithm
$ctoJSONKey :: ToJSONKeyFunction Algorithm
Core.ToJSONKey,
[Node] -> Either String Algorithm
([Node] -> Either String Algorithm) -> FromXML Algorithm
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Algorithm
$cparseXML :: [Node] -> Either String Algorithm
Core.FromXML,
Algorithm -> XML
(Algorithm -> XML) -> ToXML Algorithm
forall a. (a -> XML) -> ToXML a
toXML :: Algorithm -> XML
$ctoXML :: Algorithm -> XML
Core.ToXML
)
pattern Algorithm_Sgd :: Algorithm
pattern $bAlgorithm_Sgd :: Algorithm
$mAlgorithm_Sgd :: forall r. Algorithm -> (Void# -> r) -> (Void# -> r) -> r
Algorithm_Sgd = Algorithm' "sgd"
{-# COMPLETE
Algorithm_Sgd,
Algorithm'
#-}