acid-0.1.0.0: Artificial Circuit Designer
Safe HaskellNone
LanguageHaskell2010

CKT

Description

Circuis REST API Communication

Synopsis

Documentation

data Circuit Source #

Available Circuits

Constructors

OP1

Miller Amplifier (op1)

OP2

Symmetrical Amplifier (op2)

OP8

Folded Cascode (op8)

Instances

Instances details
Eq Circuit Source # 
Instance details

Defined in CKT

Methods

(==) :: Circuit -> Circuit -> Bool #

(/=) :: Circuit -> Circuit -> Bool #

Read Circuit Source # 
Instance details

Defined in CKT

Show Circuit Source # 
Instance details

Defined in CKT

Generic Circuit Source # 
Instance details

Defined in CKT

Associated Types

type Rep Circuit :: Type -> Type #

Methods

from :: Circuit -> Rep Circuit x #

to :: Rep Circuit x -> Circuit #

ToJSON Circuit Source # 
Instance details

Defined in CKT

FromJSON Circuit Source # 
Instance details

Defined in CKT

type Rep Circuit Source # 
Instance details

Defined in CKT

type Rep Circuit = D1 ('MetaData "Circuit" "CKT" "acid-0.1.0.0-Kasfqr97FKi1MHFsFLmEZd" 'False) (C1 ('MetaCons "OP1" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "OP2" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OP8" 'PrefixI 'False) (U1 :: Type -> Type)))

data PDK Source #

Available PDKs

Constructors

XH035

X-Fab XH035 350nm Process

XH018

X-Fab XH018 180nm Process

Instances

Instances details
Eq PDK Source # 
Instance details

Defined in CKT

Methods

(==) :: PDK -> PDK -> Bool #

(/=) :: PDK -> PDK -> Bool #

Read PDK Source # 
Instance details

Defined in CKT

Show PDK Source # 
Instance details

Defined in CKT

Methods

showsPrec :: Int -> PDK -> ShowS #

show :: PDK -> String #

showList :: [PDK] -> ShowS #

Generic PDK Source # 
Instance details

Defined in CKT

Associated Types

type Rep PDK :: Type -> Type #

Methods

from :: PDK -> Rep PDK x #

to :: Rep PDK x -> PDK #

ToJSON PDK Source # 
Instance details

Defined in CKT

FromJSON PDK Source # 
Instance details

Defined in CKT

type Rep PDK Source # 
Instance details

Defined in CKT

type Rep PDK = D1 ('MetaData "PDK" "CKT" "acid-0.1.0.0-Kasfqr97FKi1MHFsFLmEZd" 'False) (C1 ('MetaCons "XH035" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "XH018" 'PrefixI 'False) (U1 :: Type -> Type))

data Space Source #

Available Design / Action Spaces

Constructors

Electric

Electric Design Space

Geometric

Geometric Design Space

Instances

Instances details
Eq Space Source # 
Instance details

Defined in CKT

Methods

(==) :: Space -> Space -> Bool #

(/=) :: Space -> Space -> Bool #

Read Space Source # 
Instance details

Defined in CKT

Show Space Source # 
Instance details

Defined in CKT

Methods

showsPrec :: Int -> Space -> ShowS #

show :: Space -> String #

showList :: [Space] -> ShowS #

Generic Space Source # 
Instance details

Defined in CKT

Associated Types

type Rep Space :: Type -> Type #

Methods

from :: Space -> Rep Space x #

to :: Rep Space x -> Space #

ToJSON Space Source # 
Instance details

Defined in CKT

FromJSON Space Source # 
Instance details

Defined in CKT

type Rep Space Source # 
Instance details

Defined in CKT

type Rep Space = D1 ('MetaData "Space" "CKT" "acid-0.1.0.0-Kasfqr97FKi1MHFsFLmEZd" 'False) (C1 ('MetaCons "Electric" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Geometric" 'PrefixI 'False) (U1 :: Type -> Type))

type CircusUrl = String Source #

Base Route to Cricus Server

url :: String -> String -> String -> String -> String -> String -> CircusUrl Source #

Generate URL to a Circuit server from meta information

numEnvs :: CircusUrl -> IO Int Source #

Get the number of Environments from the given Circus Server instance

actionSpace :: CircusUrl -> IO Int Source #

Get the number of Environments from the given Circus Server instance

observationSpace :: CircusUrl -> IO (Int, Int, Int) Source #

Get the number of Environments from the given Circus Server instance

reset :: CircusUrl -> IO (Tensor, Tensor, Tensor) Source #

Reset Environments and get (observation, achieved_goal, desired_goal)

reset' :: CircusUrl -> Tensor -> IO (Tensor, Tensor, Tensor) Source #

Reset subset of environments with given mask

step :: CircusUrl -> Tensor -> IO (Tensor, Tensor, Tensor, Tensor, Tensor) Source #

Shorthand for taking a Tensor action and returning Tensors

randomAction :: CircusUrl -> IO Tensor Source #

Shorthand for getting Tensors

calculateReward :: CircusUrl -> Tensor -> Tensor -> IO Tensor Source #

Shorthand for calculating reward given Tensors

data Observation a Source #

Observation returned from Stepping / Resetting Environment

Constructors

Observation 

Fields

Instances

Instances details
Functor Observation Source # 
Instance details

Defined in CKT

Methods

fmap :: (a -> b) -> Observation a -> Observation b #

(<$) :: a -> Observation b -> Observation a #

Show a => Show (Observation a) Source # 
Instance details

Defined in CKT

Generic (Observation a) Source # 
Instance details

Defined in CKT

Associated Types

type Rep (Observation a) :: Type -> Type #

Methods

from :: Observation a -> Rep (Observation a) x #

to :: Rep (Observation a) x -> Observation a #

ToJSON (Observation [[Float]]) Source # 
Instance details

Defined in CKT

FromJSON (Observation [[Float]]) Source # 
Instance details

Defined in CKT

type Rep (Observation a) Source # 
Instance details

Defined in CKT

data Info Source #

Info Dict returned from Environment

Constructors

Info 

Fields

Instances

Instances details
Show Info Source # 
Instance details

Defined in CKT

Methods

showsPrec :: Int -> Info -> ShowS #

show :: Info -> String #

showList :: [Info] -> ShowS #

Generic Info Source # 
Instance details

Defined in CKT

Associated Types

type Rep Info :: Type -> Type #

Methods

from :: Info -> Rep Info x #

to :: Rep Info x -> Info #

ToJSON Info Source # 
Instance details

Defined in CKT

FromJSON Info Source # 
Instance details

Defined in CKT

type Rep Info Source # 
Instance details

Defined in CKT

type Rep Info = D1 ('MetaData "Info" "CKT" "acid-0.1.0.0-Kasfqr97FKi1MHFsFLmEZd" 'False) (C1 ('MetaCons "Info" 'PrefixI 'True) (S1 ('MetaSel ('Just "goal") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [String]) :*: (S1 ('MetaSel ('Just "inputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [String]) :*: S1 ('MetaSel ('Just "outputs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [String]))))

newtype Action a Source #

Action passed to Environment

Constructors

Action 

Fields

Instances

Instances details
Functor Action Source # 
Instance details

Defined in CKT

Methods

fmap :: (a -> b) -> Action a -> Action b #

(<$) :: a -> Action b -> Action a #

Show a => Show (Action a) Source # 
Instance details

Defined in CKT

Methods

showsPrec :: Int -> Action a -> ShowS #

show :: Action a -> String #

showList :: [Action a] -> ShowS #

Generic (Action a) Source # 
Instance details

Defined in CKT

Associated Types

type Rep (Action a) :: Type -> Type #

Methods

from :: Action a -> Rep (Action a) x #

to :: Rep (Action a) x -> Action a #

ToJSON (Action [[Float]]) Source # 
Instance details

Defined in CKT

FromJSON (Action [[Float]]) Source # 
Instance details

Defined in CKT

type Rep (Action a) Source # 
Instance details

Defined in CKT

type Rep (Action a) = D1 ('MetaData "Action" "CKT" "acid-0.1.0.0-Kasfqr97FKi1MHFsFLmEZd" 'True) (C1 ('MetaCons "Action" 'PrefixI 'True) (S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)))

currentPerformance :: CircusUrl -> IO (Map Int (Map String Float)) Source #

Get current State of the Environment currentState :: CircusUrl -> String -> IO (M.Map Int (M.Map String Float)) currentState addr route = fromJust . decodeStrict $ get addr route

Shorthand for getting Performance

currentGoal :: CircusUrl -> IO (Map Int (Map String Float)) Source #

Shorthand for getting Goal

currentSizing :: CircusUrl -> IO (Map Int (Map String Float)) Source #

Shorthand for getting Sizing

lastAction :: CircusUrl -> IO (Map Int (Map String Float)) Source #

Shorthand for getting last Action

numSteps :: CircusUrl -> IO (Map Int Float) Source #

Get the number of steps