DeepDarkFantasy-0.2017.8.4: A DSL for creating neural network.
DDF.Eval
Contents
comb :: x -> Eval h x Source #
Methods
z :: Eval (a, h) a Source #
s :: Eval h b -> Eval (a, h) b Source #
abs :: Eval (a, h) b -> Eval h (a -> b) Source #
app :: Eval h (a -> b) -> Eval h a -> Eval h b Source #
hoas :: (Eval (a, h) a -> Eval (a, h) b) -> Eval h (a -> b) Source #
com :: Eval h ((b -> c) -> (a -> b) -> a -> c) Source #
flip :: Eval h ((a -> b -> c) -> b -> a -> c) Source #
id :: Eval h (a -> a) Source #
const :: Eval h (a -> b -> a) Source #
scomb :: Eval h ((a -> b -> c) -> (a -> b) -> a -> c) Source #
dup :: Eval h ((a -> a -> b) -> a -> b) Source #
let_ :: Eval h (a -> (a -> b) -> b) Source #
fix :: Eval h (f (Fix f) -> Fix f) Source #
runFix :: Eval h (Fix f -> f (Fix f)) Source #
float :: Float -> Eval h Float Source #
floatZero :: Eval h Float Source #
floatOne :: Eval h Float Source #
floatPlus :: Eval h (Float -> Float -> Float) Source #
floatMinus :: Eval h (Float -> Float -> Float) Source #
floatMult :: Eval h (Float -> Float -> Float) Source #
floatDivide :: Eval h (Float -> Float -> Float) Source #
floatExp :: Eval h (Float -> Float) Source #
freeVector :: Eval h ((b -> d) -> FreeVector b d) Source #
runFreeVector :: Eval h (FreeVector b d -> b -> d) Source #
nothing :: Eval h (Maybe a) Source #
just :: Eval h (a -> Maybe a) Source #
optionMatch :: Eval h (b -> (a -> b) -> Maybe a -> b) Source #
mkProd :: Eval h (a -> b -> (a, b)) Source #
zro :: Eval h ((a, b) -> a) Source #
fst :: Eval h ((a, b) -> b) Source #
swap :: Eval h ((x, y) -> (y, x)) Source #
curry :: Eval h (((a, b) -> c) -> a -> b -> c) Source #
uncurry :: Eval h ((a -> b -> c) -> (a, b) -> c) Source #
dual :: Eval h ((x, y) -> Dual x y) Source #
runDual :: Eval h (Dual x y -> (x, y)) Source #
mkDual :: Eval h (x -> y -> Dual x y) Source #
dualOrig :: Eval h (Dual x y -> x) Source #
dualDiff :: Eval h (Dual x y -> y) Source #
left :: Eval h (a -> Either a b) Source #
right :: Eval h (b -> Either a b) Source #
sumMatch :: Eval h ((a -> c) -> (b -> c) -> Either a b -> c) Source #
unit :: Eval h () Source #
y :: Eval h ((a -> a) -> a) Source #
undefined :: Eval h a Source #
nil :: Eval h [a] Source #
cons :: Eval h (a -> [a] -> [a]) Source #
listMatch :: Eval h (b -> (a -> [a] -> b) -> [a] -> b) Source #
listAppend :: Eval h ([a] -> [a] -> [a]) Source #
char :: Char -> Eval h Char Source #
putStrLn :: Eval h (String -> IO ()) Source #
bool :: Bool -> Eval h Bool Source #
ite :: Eval h (a -> a -> Bool -> a) Source #
double :: Double -> Eval h Double Source #
doubleZero :: Eval h Double Source #
doubleOne :: Eval h Double Source #
doublePlus :: Eval h (Double -> Double -> Double) Source #
doubleMinus :: Eval h (Double -> Double -> Double) Source #
doubleMult :: Eval h (Double -> Double -> Double) Source #
doubleDivide :: Eval h (Double -> Double -> Double) Source #
doubleExp :: Eval h (Double -> Double) Source #
doubleEq :: Eval h (Double -> Double -> Bool) Source #
empty :: Eval h (Map k a) Source #
singleton :: Eval h (k -> a -> Map k a) Source #
lookup :: Ord k => Eval h (Map k a -> k -> Maybe a) Source #
alter :: Ord k => Eval h ((Maybe a -> Maybe a) -> k -> Map k a -> Map k a) Source #
mapMap :: Eval h ((a -> b) -> Map k a -> Map k b) Source #
unionWith :: Ord k => Eval h ((a -> a -> a) -> Map k a -> Map k a -> Map k a) Source #
insert :: Ord k => Eval h (k -> a -> Map k a -> Map k a) Source #
diffWrapper :: Eval h (FDiffType a x -> DiffWrapper a x) Source #
runDiffWrapper :: Eval h (DiffWrapper a x -> FDiffType a x) Source #
zero :: Eval h (VectorTF t f) Source #
basis :: Eval h (t -> VectorTF t f) Source #
plus :: Eval h (f -> f -> VectorTF t f) Source #
mult :: Eval h (Double -> f -> VectorTF t f) Source #
vtfMatch :: Eval h (a -> (t -> a) -> (f -> f -> a) -> (Double -> f -> a) -> VectorTF t f -> a) Source #
int :: Int -> Eval h Int Source #
pred :: Eval h (Int -> Int) Source #
isZero :: Eval h (Int -> Bool) Source #
size :: Eval h (Bimap a b -> Int) Source #
lookupL :: (Ord a, Ord b) => Eval h (Bimap a b -> a -> Maybe b) Source #
lookupR :: (Ord a, Ord b) => Eval h (Bimap a b -> b -> Maybe a) Source #
empty :: Eval h (Bimap a b) Source #
singleton :: Eval h ((a, b) -> Bimap a b) Source #
toMapL :: Eval h (Bimap a b -> Map a b) Source #
toMapR :: Eval h (Bimap a b -> Map b a) Source #
insert :: (Ord a, Ord b) => Eval h ((a, b) -> Bimap a b -> Bimap a b) Source #
updateL :: (Ord a, Ord b) => Eval h ((b -> Maybe b) -> a -> Bimap a b -> Bimap a b) Source #
updateR :: (Ord a, Ord b) => Eval h ((a -> Maybe a) -> b -> Bimap a b -> Bimap a b) Source #
exfalso :: Eval h (Void -> a) Source #
writer :: Eval h ((a, w) -> Writer w a) Source #
runWriter :: Eval h (Writer w a -> (a, w)) Source #
float2Double :: Eval h (Float -> Double) Source #
double2Float :: Eval h (Double -> Float) Source #
state :: Eval h ((x -> (y, x)) -> State x y) Source #
runState :: Eval h (State x y -> x -> (y, x)) Source #
iterate :: Eval h ((x -> x) -> x -> [x]) Source #
buildFreeVector :: Ord b => Eval h (FreeVectorBuilder b -> FreeVector b Double) Source #
toSVTFBuilder :: Ord b => Eval h (VectorTF b Int -> SVTFBuilder b) Source #
get :: Eval h (Maybe a -> a) Source #
getVar :: Eval h (State x x) Source #
update :: Eval h ((x -> x) -> State x ()) Source #
updateWengert :: Eval h (Int -> Double -> Map Int Double -> Map Int Double) Source #
vtfCata :: Eval h ((VectorTF a b -> b) -> Fix (VectorTF a) -> b) Source #
bind :: Eval h (IO a -> (a -> IO b) -> IO b) Source #
join :: Eval h (IO (IO a) -> IO a) Source #
pure :: Eval h (x -> IO x) Source #
ap :: Eval h (IO (x -> y) -> IO x -> IO y) Source #
map :: Eval h ((a -> b) -> IO a -> IO b) Source #