{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

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

-- |
-- Module      : Amazonka.SageMaker.Types.AutoMLMetricEnum
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SageMaker.Types.AutoMLMetricEnum
  ( AutoMLMetricEnum
      ( ..,
        AutoMLMetricEnum_AUC,
        AutoMLMetricEnum_Accuracy,
        AutoMLMetricEnum_F1,
        AutoMLMetricEnum_F1macro,
        AutoMLMetricEnum_MSE
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype AutoMLMetricEnum = AutoMLMetricEnum'
  { AutoMLMetricEnum -> Text
fromAutoMLMetricEnum ::
      Core.Text
  }
  deriving stock
    ( Int -> AutoMLMetricEnum -> ShowS
[AutoMLMetricEnum] -> ShowS
AutoMLMetricEnum -> String
(Int -> AutoMLMetricEnum -> ShowS)
-> (AutoMLMetricEnum -> String)
-> ([AutoMLMetricEnum] -> ShowS)
-> Show AutoMLMetricEnum
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AutoMLMetricEnum] -> ShowS
$cshowList :: [AutoMLMetricEnum] -> ShowS
show :: AutoMLMetricEnum -> String
$cshow :: AutoMLMetricEnum -> String
showsPrec :: Int -> AutoMLMetricEnum -> ShowS
$cshowsPrec :: Int -> AutoMLMetricEnum -> ShowS
Prelude.Show,
      ReadPrec [AutoMLMetricEnum]
ReadPrec AutoMLMetricEnum
Int -> ReadS AutoMLMetricEnum
ReadS [AutoMLMetricEnum]
(Int -> ReadS AutoMLMetricEnum)
-> ReadS [AutoMLMetricEnum]
-> ReadPrec AutoMLMetricEnum
-> ReadPrec [AutoMLMetricEnum]
-> Read AutoMLMetricEnum
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AutoMLMetricEnum]
$creadListPrec :: ReadPrec [AutoMLMetricEnum]
readPrec :: ReadPrec AutoMLMetricEnum
$creadPrec :: ReadPrec AutoMLMetricEnum
readList :: ReadS [AutoMLMetricEnum]
$creadList :: ReadS [AutoMLMetricEnum]
readsPrec :: Int -> ReadS AutoMLMetricEnum
$creadsPrec :: Int -> ReadS AutoMLMetricEnum
Prelude.Read,
      AutoMLMetricEnum -> AutoMLMetricEnum -> Bool
(AutoMLMetricEnum -> AutoMLMetricEnum -> Bool)
-> (AutoMLMetricEnum -> AutoMLMetricEnum -> Bool)
-> Eq AutoMLMetricEnum
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AutoMLMetricEnum -> AutoMLMetricEnum -> Bool
$c/= :: AutoMLMetricEnum -> AutoMLMetricEnum -> Bool
== :: AutoMLMetricEnum -> AutoMLMetricEnum -> Bool
$c== :: AutoMLMetricEnum -> AutoMLMetricEnum -> Bool
Prelude.Eq,
      Eq AutoMLMetricEnum
Eq AutoMLMetricEnum
-> (AutoMLMetricEnum -> AutoMLMetricEnum -> Ordering)
-> (AutoMLMetricEnum -> AutoMLMetricEnum -> Bool)
-> (AutoMLMetricEnum -> AutoMLMetricEnum -> Bool)
-> (AutoMLMetricEnum -> AutoMLMetricEnum -> Bool)
-> (AutoMLMetricEnum -> AutoMLMetricEnum -> Bool)
-> (AutoMLMetricEnum -> AutoMLMetricEnum -> AutoMLMetricEnum)
-> (AutoMLMetricEnum -> AutoMLMetricEnum -> AutoMLMetricEnum)
-> Ord AutoMLMetricEnum
AutoMLMetricEnum -> AutoMLMetricEnum -> Bool
AutoMLMetricEnum -> AutoMLMetricEnum -> Ordering
AutoMLMetricEnum -> AutoMLMetricEnum -> AutoMLMetricEnum
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 :: AutoMLMetricEnum -> AutoMLMetricEnum -> AutoMLMetricEnum
$cmin :: AutoMLMetricEnum -> AutoMLMetricEnum -> AutoMLMetricEnum
max :: AutoMLMetricEnum -> AutoMLMetricEnum -> AutoMLMetricEnum
$cmax :: AutoMLMetricEnum -> AutoMLMetricEnum -> AutoMLMetricEnum
>= :: AutoMLMetricEnum -> AutoMLMetricEnum -> Bool
$c>= :: AutoMLMetricEnum -> AutoMLMetricEnum -> Bool
> :: AutoMLMetricEnum -> AutoMLMetricEnum -> Bool
$c> :: AutoMLMetricEnum -> AutoMLMetricEnum -> Bool
<= :: AutoMLMetricEnum -> AutoMLMetricEnum -> Bool
$c<= :: AutoMLMetricEnum -> AutoMLMetricEnum -> Bool
< :: AutoMLMetricEnum -> AutoMLMetricEnum -> Bool
$c< :: AutoMLMetricEnum -> AutoMLMetricEnum -> Bool
compare :: AutoMLMetricEnum -> AutoMLMetricEnum -> Ordering
$ccompare :: AutoMLMetricEnum -> AutoMLMetricEnum -> Ordering
$cp1Ord :: Eq AutoMLMetricEnum
Prelude.Ord,
      (forall x. AutoMLMetricEnum -> Rep AutoMLMetricEnum x)
-> (forall x. Rep AutoMLMetricEnum x -> AutoMLMetricEnum)
-> Generic AutoMLMetricEnum
forall x. Rep AutoMLMetricEnum x -> AutoMLMetricEnum
forall x. AutoMLMetricEnum -> Rep AutoMLMetricEnum x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AutoMLMetricEnum x -> AutoMLMetricEnum
$cfrom :: forall x. AutoMLMetricEnum -> Rep AutoMLMetricEnum x
Prelude.Generic
    )
  deriving newtype
    ( Int -> AutoMLMetricEnum -> Int
AutoMLMetricEnum -> Int
(Int -> AutoMLMetricEnum -> Int)
-> (AutoMLMetricEnum -> Int) -> Hashable AutoMLMetricEnum
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AutoMLMetricEnum -> Int
$chash :: AutoMLMetricEnum -> Int
hashWithSalt :: Int -> AutoMLMetricEnum -> Int
$chashWithSalt :: Int -> AutoMLMetricEnum -> Int
Prelude.Hashable,
      AutoMLMetricEnum -> ()
(AutoMLMetricEnum -> ()) -> NFData AutoMLMetricEnum
forall a. (a -> ()) -> NFData a
rnf :: AutoMLMetricEnum -> ()
$crnf :: AutoMLMetricEnum -> ()
Prelude.NFData,
      Text -> Either String AutoMLMetricEnum
(Text -> Either String AutoMLMetricEnum)
-> FromText AutoMLMetricEnum
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AutoMLMetricEnum
$cfromText :: Text -> Either String AutoMLMetricEnum
Core.FromText,
      AutoMLMetricEnum -> Text
(AutoMLMetricEnum -> Text) -> ToText AutoMLMetricEnum
forall a. (a -> Text) -> ToText a
toText :: AutoMLMetricEnum -> Text
$ctoText :: AutoMLMetricEnum -> Text
Core.ToText,
      AutoMLMetricEnum -> ByteString
(AutoMLMetricEnum -> ByteString) -> ToByteString AutoMLMetricEnum
forall a. (a -> ByteString) -> ToByteString a
toBS :: AutoMLMetricEnum -> ByteString
$ctoBS :: AutoMLMetricEnum -> ByteString
Core.ToByteString,
      AutoMLMetricEnum -> ByteStringBuilder
(AutoMLMetricEnum -> ByteStringBuilder) -> ToLog AutoMLMetricEnum
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AutoMLMetricEnum -> ByteStringBuilder
$cbuild :: AutoMLMetricEnum -> ByteStringBuilder
Core.ToLog,
      HeaderName -> AutoMLMetricEnum -> [Header]
(HeaderName -> AutoMLMetricEnum -> [Header])
-> ToHeader AutoMLMetricEnum
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AutoMLMetricEnum -> [Header]
$ctoHeader :: HeaderName -> AutoMLMetricEnum -> [Header]
Core.ToHeader,
      AutoMLMetricEnum -> QueryString
(AutoMLMetricEnum -> QueryString) -> ToQuery AutoMLMetricEnum
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AutoMLMetricEnum -> QueryString
$ctoQuery :: AutoMLMetricEnum -> QueryString
Core.ToQuery,
      Value -> Parser [AutoMLMetricEnum]
Value -> Parser AutoMLMetricEnum
(Value -> Parser AutoMLMetricEnum)
-> (Value -> Parser [AutoMLMetricEnum])
-> FromJSON AutoMLMetricEnum
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AutoMLMetricEnum]
$cparseJSONList :: Value -> Parser [AutoMLMetricEnum]
parseJSON :: Value -> Parser AutoMLMetricEnum
$cparseJSON :: Value -> Parser AutoMLMetricEnum
Core.FromJSON,
      FromJSONKeyFunction [AutoMLMetricEnum]
FromJSONKeyFunction AutoMLMetricEnum
FromJSONKeyFunction AutoMLMetricEnum
-> FromJSONKeyFunction [AutoMLMetricEnum]
-> FromJSONKey AutoMLMetricEnum
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AutoMLMetricEnum]
$cfromJSONKeyList :: FromJSONKeyFunction [AutoMLMetricEnum]
fromJSONKey :: FromJSONKeyFunction AutoMLMetricEnum
$cfromJSONKey :: FromJSONKeyFunction AutoMLMetricEnum
Core.FromJSONKey,
      [AutoMLMetricEnum] -> Encoding
[AutoMLMetricEnum] -> Value
AutoMLMetricEnum -> Encoding
AutoMLMetricEnum -> Value
(AutoMLMetricEnum -> Value)
-> (AutoMLMetricEnum -> Encoding)
-> ([AutoMLMetricEnum] -> Value)
-> ([AutoMLMetricEnum] -> Encoding)
-> ToJSON AutoMLMetricEnum
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AutoMLMetricEnum] -> Encoding
$ctoEncodingList :: [AutoMLMetricEnum] -> Encoding
toJSONList :: [AutoMLMetricEnum] -> Value
$ctoJSONList :: [AutoMLMetricEnum] -> Value
toEncoding :: AutoMLMetricEnum -> Encoding
$ctoEncoding :: AutoMLMetricEnum -> Encoding
toJSON :: AutoMLMetricEnum -> Value
$ctoJSON :: AutoMLMetricEnum -> Value
Core.ToJSON,
      ToJSONKeyFunction [AutoMLMetricEnum]
ToJSONKeyFunction AutoMLMetricEnum
ToJSONKeyFunction AutoMLMetricEnum
-> ToJSONKeyFunction [AutoMLMetricEnum]
-> ToJSONKey AutoMLMetricEnum
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AutoMLMetricEnum]
$ctoJSONKeyList :: ToJSONKeyFunction [AutoMLMetricEnum]
toJSONKey :: ToJSONKeyFunction AutoMLMetricEnum
$ctoJSONKey :: ToJSONKeyFunction AutoMLMetricEnum
Core.ToJSONKey,
      [Node] -> Either String AutoMLMetricEnum
([Node] -> Either String AutoMLMetricEnum)
-> FromXML AutoMLMetricEnum
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AutoMLMetricEnum
$cparseXML :: [Node] -> Either String AutoMLMetricEnum
Core.FromXML,
      AutoMLMetricEnum -> XML
(AutoMLMetricEnum -> XML) -> ToXML AutoMLMetricEnum
forall a. (a -> XML) -> ToXML a
toXML :: AutoMLMetricEnum -> XML
$ctoXML :: AutoMLMetricEnum -> XML
Core.ToXML
    )

pattern AutoMLMetricEnum_AUC :: AutoMLMetricEnum
pattern $bAutoMLMetricEnum_AUC :: AutoMLMetricEnum
$mAutoMLMetricEnum_AUC :: forall r. AutoMLMetricEnum -> (Void# -> r) -> (Void# -> r) -> r
AutoMLMetricEnum_AUC = AutoMLMetricEnum' "AUC"

pattern AutoMLMetricEnum_Accuracy :: AutoMLMetricEnum
pattern $bAutoMLMetricEnum_Accuracy :: AutoMLMetricEnum
$mAutoMLMetricEnum_Accuracy :: forall r. AutoMLMetricEnum -> (Void# -> r) -> (Void# -> r) -> r
AutoMLMetricEnum_Accuracy = AutoMLMetricEnum' "Accuracy"

pattern AutoMLMetricEnum_F1 :: AutoMLMetricEnum
pattern $bAutoMLMetricEnum_F1 :: AutoMLMetricEnum
$mAutoMLMetricEnum_F1 :: forall r. AutoMLMetricEnum -> (Void# -> r) -> (Void# -> r) -> r
AutoMLMetricEnum_F1 = AutoMLMetricEnum' "F1"

pattern AutoMLMetricEnum_F1macro :: AutoMLMetricEnum
pattern $bAutoMLMetricEnum_F1macro :: AutoMLMetricEnum
$mAutoMLMetricEnum_F1macro :: forall r. AutoMLMetricEnum -> (Void# -> r) -> (Void# -> r) -> r
AutoMLMetricEnum_F1macro = AutoMLMetricEnum' "F1macro"

pattern AutoMLMetricEnum_MSE :: AutoMLMetricEnum
pattern $bAutoMLMetricEnum_MSE :: AutoMLMetricEnum
$mAutoMLMetricEnum_MSE :: forall r. AutoMLMetricEnum -> (Void# -> r) -> (Void# -> r) -> r
AutoMLMetricEnum_MSE = AutoMLMetricEnum' "MSE"

{-# COMPLETE
  AutoMLMetricEnum_AUC,
  AutoMLMetricEnum_Accuracy,
  AutoMLMetricEnum_F1,
  AutoMLMetricEnum_F1macro,
  AutoMLMetricEnum_MSE,
  AutoMLMetricEnum'
  #-}