Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Utilies for Training Transistor Models
Synopsis
- liftState :: forall m s a. Monad m => State s a -> StateT s m a
- splitBatches :: Int -> Tensor -> [Tensor]
- readCSV :: FilePath -> IO ([String], Tensor)
- loadCSVs :: FilePath -> IO ([String], Tensor)
- readTSV :: FilePath -> IO ([String], Tensor)
- data Transistor
- cpu :: Device
- gpu :: Device
- maskSelect :: Int -> Tensor -> Tensor -> Tensor
- maskSelect' :: Int -> [Bool] -> Tensor -> Tensor
- headerSelect :: [String] -> [String] -> Tensor -> Tensor
- scale :: Tensor -> Tensor -> Tensor -> Tensor
- scale' :: Tensor -> Tensor -> Tensor -> Tensor
- createModelDir :: String -> IO String
Documentation
splitBatches :: Int -> Tensor -> [Tensor] Source #
Split Tensor into List of GPU Tensors
loadCSVs :: FilePath -> IO ([String], Tensor) Source #
Load all Transistor CSVs from a file path and concatenate them
data Transistor Source #
Available Transistors
GS66502B | GaN Systems GS66502B |
GS66504B | GaN Systems GS66504B |
GS66506T | GaN Systems GS66506T |
GS66508T | GaN Systems GS66508T |
GS66516T | GaN Systems GS66516T |
Instances
Bounded Transistor Source # | |
Defined in Lib minBound :: Transistor # maxBound :: Transistor # | |
Enum Transistor Source # | |
Defined in Lib succ :: Transistor -> Transistor # pred :: Transistor -> Transistor # toEnum :: Int -> Transistor # fromEnum :: Transistor -> Int # enumFrom :: Transistor -> [Transistor] # enumFromThen :: Transistor -> Transistor -> [Transistor] # enumFromTo :: Transistor -> Transistor -> [Transistor] # enumFromThenTo :: Transistor -> Transistor -> Transistor -> [Transistor] # | |
Read Transistor Source # | |
Defined in Lib readsPrec :: Int -> ReadS Transistor # readList :: ReadS [Transistor] # readPrec :: ReadPrec Transistor # readListPrec :: ReadPrec [Transistor] # | |
Show Transistor Source # | |
Defined in Lib showsPrec :: Int -> Transistor -> ShowS # show :: Transistor -> String # showList :: [Transistor] -> ShowS # | |
Eq Transistor Source # | |
Defined in Lib (==) :: Transistor -> Transistor -> Bool # (/=) :: Transistor -> Transistor -> Bool # |
maskSelect :: Int -> Tensor -> Tensor -> Tensor Source #
Torch.indexSelect but with a boolean mask
maskSelect' :: Int -> [Bool] -> Tensor -> Tensor Source #
Torch.indexSelect' but with a boolean mask
headerSelect :: [String] -> [String] -> Tensor -> Tensor Source #
Select columns based in strings in string list
:: Tensor | min |
-> Tensor | max |
-> Tensor | un-scaled input |
-> Tensor | scaled output |
Scale Torch.Tensor to [0,1] given a min and max
:: Tensor | min |
-> Tensor | max |
-> Tensor | scaled input |
-> Tensor | un-scaled output |
Un-Scale Torch.Tensor from [0,1] given a min and max