ganarchist-0.1.0.0: Switching loss prediction of High-Voltage GaN Half-Bridges
Safe HaskellSafe-Inferred
LanguageHaskell2010

Lib

Description

Utilies for Training Transistor Models

Synopsis

Documentation

liftState :: forall m s a. Monad m => State s a -> StateT s m a Source #

Lift State into StateT

splitBatches :: Int -> Tensor -> [Tensor] Source #

Split Tensor into List of GPU Tensors

readCSV :: FilePath -> IO ([String], Tensor) Source #

loadCSVs :: FilePath -> IO ([String], Tensor) Source #

Load all Transistor CSVs from a file path and concatenate them

readTSV :: FilePath -> IO ([String], Tensor) Source #

Read data from TXT file

data Transistor Source #

Available Transistors

Constructors

GS66502B

GaN Systems GS66502B

GS66504B

GaN Systems GS66504B

GS66506T

GaN Systems GS66506T

GS66508T

GaN Systems GS66508T

GS66516T

GaN Systems GS66516T

cpu :: Device Source #

Default CPU Device

gpu :: Device Source #

Default GPU Device

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

scale Source #

Arguments

:: Tensor

min

-> Tensor

max

-> Tensor

un-scaled input

-> Tensor

scaled output

Scale Torch.Tensor to [0,1] given a min and max

scale' Source #

Arguments

:: Tensor

min

-> Tensor

max

-> Tensor

scaled input

-> Tensor

un-scaled output

Un-Scale Torch.Tensor from [0,1] given a min and max

createModelDir :: String -> IO String Source #

Create a model archive directory with time stamp and return path