SYMBOL INDEX (314 symbols across 37 files) FILE: Tutorials/MNIST-Quickstart/mnist_quickstart.py function order (line 8) | def order(model, data, c=10, n=5): function visualize_weights (line 31) | def visualize_weights(model): FILE: arghandle/core.py function arghandle (line 6) | def arghandle(fn): function args (line 17) | def args(): function __get_handler (line 31) | def __get_handler(fn): FILE: arghandle/handlers.py function checkif (line 1) | def checkif(arg, types, exclude=False, name=None): function typecheck (line 27) | def typecheck(include=None, exclude=None, **kwargs): FILE: magnet/__init__.py function __print_init_message (line 3) | def __print_init_message(): FILE: magnet/_autograd.py function eval (line 10) | def eval(*modules): function _eval_context_manager (line 74) | def _eval_context_manager(*modules): FILE: magnet/data/core.py function MNIST (line 4) | def MNIST(val_split=0.2, path=None, **kwargs): FILE: magnet/data/data.py function _get_data_dir (line 1) | def _get_data_dir(): class Data (line 19) | class Data: method __init__ (line 55) | def __init__(self, train, val=None, test=None, val_split=0.2, **kwargs): method __getitem__ (line 72) | def __getitem__(self, args): method __setitem__ (line 87) | def __setitem__(self, mode, dataset): method __len__ (line 90) | def __len__(self): method _split_val (line 93) | def _split_val(self, val_split): method __call__ (line 116) | def __call__(self, batch_size=1, shuffle=False, replace=False, probabi... method get (line 151) | def get(name): FILE: magnet/data/dataloader.py class TransformedDataset (line 10) | class TransformedDataset(Dataset): method __init__ (line 11) | def __init__(self, dataset, transforms=None, fetch_fn=None): method __getitem__ (line 16) | def __getitem__(self, index): method __len__ (line 22) | def __len__(self): method _apply_transforms (line 25) | def _apply_transforms(self, x): class DataLoader (line 45) | class DataLoader(DataLoaderPyTorch): method __init__ (line 46) | def __init__(self, dataset, batch_size=1, shuffle=False, sampler=None, method state_dict (line 60) | def state_dict(self): method save_state_dict (line 71) | def save_state_dict(self, path): method load_state_dict (line 76) | def load_state_dict(self, state_dict): method compatible_with (line 90) | def compatible_with(self, state_dict): method __next__ (line 94) | def __next__(self): method __len__ (line 97) | def __len__(self): function pack_collate (line 100) | def pack_collate(batch, pack_dims=None): FILE: magnet/data/sampler.py class OmniSampler (line 5) | class OmniSampler(Sampler): method __init__ (line 6) | def __init__(self, dataset, shuffle=False, replace=False, probabilitie... method _begin (line 15) | def _begin(self, pos): method __next__ (line 30) | def __next__(self): method __iter__ (line 36) | def __iter__(self): method __len__ (line 39) | def __len__(self): FILE: magnet/data/transforms.py function augmented_image_transforms (line 1) | def augmented_image_transforms(d=0, t=0, s=0, sh=0, ph=0, pv=0, resample... function image_transforms (line 31) | def image_transforms(augmentation=0, direction='horizontal'): FILE: magnet/debug.py function overfit (line 4) | def overfit(trainer, data, batch_size, epochs=1, metric='loss', **kwargs): function check_flow (line 96) | def check_flow(trainer, data): class Babysitter (line 123) | class Babysitter: method __init__ (line 134) | def __init__(self, frequency=10, **kwargs): method __call__ (line 142) | def __call__(self, trainer, signal, **kwargs): method append (line 165) | def append(self, trainer, models): method load (line 174) | def load(self, path): method save (line 178) | def save(self, path): function shape (line 183) | def shape(debug=True): class _SetTrace (line 197) | class _SetTrace(object): method __init__ (line 198) | def __init__(self, func): method __enter__ (line 201) | def __enter__(self): method __exit__ (line 206) | def __exit__(self, ext_type, exc_value, traceback): class _Monitor (line 209) | class _Monitor: method __init__ (line 210) | def __init__(self, names=True): method init (line 215) | def init(self, frameinfo): method is_same (line 220) | def is_same(self, frame): method __call__ (line 224) | def __call__(self, frame, event, arg): FILE: magnet/nodes/core.py class Lambda (line 8) | class Lambda(Node): method __init__ (line 34) | def __init__(self, fn, **kwargs): method forward (line 42) | def forward(self, *args, **kwargs): class Conv (line 45) | class Conv(Node): method __init__ (line 151) | def __init__(self, c=None, k=3, p='half', s=1, d=1, g=1, b=True, ic=No... method build (line 154) | def build(self, x): method forward (line 173) | def forward(self, x): method _find_layer (line 183) | def _find_layer(x): method _set_padding (line 188) | def _set_padding(self, x): method _mul_list (line 210) | def _mul_list(self, n): class Linear (line 220) | class Linear(Node): method __init__ (line 318) | def __init__(self, o=1, b=True, flat=True, i=None, act='relu', bn=Fals... method build (line 321) | def build(self, x): method forward (line 343) | def forward(self, x): method _mul_list (line 354) | def _mul_list(self, n): class _RNNBase (line 364) | class _RNNBase(Node): method __init__ (line 365) | def __init__(self, mode, h, n=1, b=False, bi=False, act='tanh', d=0, b... method build (line 369) | def build(self, x, h=None): method forward (line 386) | def forward(self, x, h=None): method _mul_list (line 389) | def _mul_list(self, n): class RNN (line 400) | class RNN(_RNNBase): method __init__ (line 454) | def __init__(self, h, n=1, b=False, bi=False, act='tanh', d=0, batch_f... class LSTM (line 458) | class LSTM(_RNNBase): method __init__ (line 463) | def __init__(self, h, n=1, b=False, bi=False, d=0, batch_first=False, ... class GRU (line 468) | class GRU(_RNNBase): method __init__ (line 473) | def __init__(self, h, n=1, b=False, bi=False, d=0, batch_first=False, ... class BatchNorm (line 478) | class BatchNorm(Node): method __init__ (line 563) | def __init__(self, e=1e-05, m=0.1, a=True, track=True, i=None, **kwargs): method build (line 566) | def build(self, x): method forward (line 575) | def forward(self, x): method _find_layer (line 579) | def _find_layer(x): FILE: magnet/nodes/functional/metrics.py function accuracy (line 1) | def accuracy(scores, y): FILE: magnet/nodes/nodes.py class Node (line 9) | class Node(nn.Module): method __init__ (line 34) | def __init__(self, *args, **kwargs): method build (line 39) | def build(self, *args, **kwargs): method __call__ (line 48) | def __call__(self, *args, **kwargs): method _parse_args (line 52) | def _parse_args(self): method get_args (line 72) | def get_args(self): method to (line 77) | def to(self, *args, **kwargs): method load_state_dict (line 87) | def load_state_dict(self, f): method _mul_int (line 100) | def _mul_int(self, n): method _mul_list (line 103) | def _mul_list(self, n): method __mul__ (line 118) | def __mul__(self, n): FILE: magnet/training/callbacks.py class Monitor (line 6) | class Monitor: method __init__ (line 44) | def __init__(self, frequency=10, show_progress=True, **kwargs): method __call__ (line 53) | def __call__(self, trainer, signal, **kwargs): method show (line 116) | def show(self, metric=None, log=False, x_key='epochs', **kwargs): method __repr__ (line 121) | def __repr__(self): method load_state (line 125) | def load_state(self, path): method save_state (line 129) | def save_state(self, path): class Validate (line 133) | class Validate: method __init__ (line 173) | def __init__(self, dataloader, validate, frequency=10, batches=None, d... method __call__ (line 181) | def __call__(self, trainer, signal, **kwargs): method validate_batch (line 214) | def validate_batch(self, trainer): method load_state (line 218) | def load_state(self, path): method save_state (line 223) | def save_state(self, path): class Checkpoint (line 227) | class Checkpoint: method __init__ (line 250) | def __init__(self, path, interval='5 m', **kwargs): method parse_duration (line 256) | def parse_duration(interval): method __call__ (line 263) | def __call__(self, trainer, signal, **kwargs): method clear_state (line 299) | def clear_state(self): method load_state (line 303) | def load_state(self, trainer, path): method save_state (line 308) | def save_state(self, trainer, path): class ColdStart (line 312) | class ColdStart: method __init__ (line 325) | def __init__(self, epochs=0.1, **kwargs): method __call__ (line 330) | def __call__(self, trainer, signal, **kwargs): class LRScheduler (line 352) | class LRScheduler: method __init__ (line 361) | def __init__(self, scheduler, **kwargs): method __call__ (line 365) | def __call__(self, trainer, signal, **kwargs): method load_state (line 380) | def load_state(self, path): method save_state (line 384) | def save_state(self, path): class CallbackQueue (line 388) | class CallbackQueue(list): method append (line 397) | def append(self, callback): method extend (line 400) | def extend(self, callbacks): method find (line 403) | def find(self, name): method exists (line 417) | def exists(self, name): method __call__ (line 420) | def __call__(self, signal, *args, **kwargs): FILE: magnet/training/history.py class History (line 3) | class History(dict): method find (line 36) | def find(self, key): method append (line 53) | def append(self, key, value, validation=False, buffer_size=None, **sta... method show (line 88) | def show(self, key=None, log=False, x_key=None, validation=True, legen... method flush (line 153) | def flush(self, key=None, **stamps): class SnapShot (line 172) | class SnapShot: method __init__ (line 183) | def __init__(self, buffer_size=-1): method append (line 189) | def append(self, value, buffer=False, **stamps): method flush (line 211) | def flush(self, **stamps): method _retrieve (line 229) | def _retrieve(self, key='val', stamp=None): method _pop (line 233) | def _pop(self, index): method _clear (line 236) | def _clear(self): method __len__ (line 239) | def __len__(self): method __getitem__ (line 242) | def __getitem__(self, index): method __repr__ (line 245) | def __repr__(self): method show (line 248) | def show(self, ax, x=None, label=None, **kwargs): FILE: magnet/training/train.py class Trainer (line 4) | class Trainer: method __init__ (line 28) | def __init__(self, models, optimizers): method optimize (line 35) | def optimize(self): method train (line 57) | def train(self, dataloader, epochs=1, callbacks=None, **kwargs): method __iter__ (line 88) | def __iter__(self): method __next__ (line 91) | def __next__(self): method mock (line 97) | def mock(self, path=None): method epochs (line 124) | def epochs(self, mode=None): method is_training (line 138) | def is_training(self): method load_state (line 141) | def load_state(self, path): method save_state (line 156) | def save_state(self, path): method register_parameter (line 171) | def register_parameter(self, name, value): class SupervisedTrainer (line 177) | class SupervisedTrainer(Trainer): method __init__ (line 230) | def __init__(self, model, optimizer='adam', loss='cross_entropy', metr... method optimize (line 246) | def optimize(self): method validate (line 263) | def validate(trainer, dataloader): method get_loss (line 271) | def get_loss(self, dataloader, validation=False): function finish_training (line 290) | def finish_training(path, names=None): FILE: magnet/training/utils.py function load_state (line 5) | def load_state(module, path, alternative_name=None): function save_state (line 35) | def save_state(module, path, alternative_name=None): function load_object (line 56) | def load_object(path, **kwargs): function save_object (line 77) | def save_object(obj, path): FILE: magnet/utils/__arghandle__/images.py function show_images (line 9) | def show_images(images, titles=None, pixel_range='auto', cmap='gray', sh... function _show_image (line 32) | def _show_image(image, title=None, cmap='gray', ax=None, pixel_range='au... function __handle_shape (line 38) | def __handle_shape(n_images, shape): function __handle_string_shape (line 59) | def __handle_string_shape(n_images, shape): function __handle_resize (line 66) | def __handle_resize(images, size='smean'): function __square_factors (line 82) | def __square_factors(x): function __handle_image_dimensions (line 93) | def __handle_image_dimensions(images, stacked=True): function __handle_image_type (line 109) | def __handle_image_type(image): function __is_generator (line 126) | def __is_generator(iterable): FILE: magnet/utils/_node.py function summarize (line 3) | def summarize(module, x, parameters='trainable', arguments=False, batch=... FILE: magnet/utils/images.py function show_images (line 8) | def show_images(images, **kwargs): function _resize (line 71) | def _resize(images, size='smean'): function _merge (line 76) | def _merge(images, shape): function _show_image (line 82) | def _show_image(image, title=None, cmap='gray', ax=None, pixel_range='au... FILE: magnet/utils/misc.py function caller_locals (line 5) | def caller_locals(ancestor=False): function num_params (line 31) | def num_params(module): function get_tqdm (line 44) | def get_tqdm(): FILE: magnet/utils/plot.py function smooth_plot (line 6) | def smooth_plot(*args, **kwargs): FILE: magnet/utils/statistical.py function find_outliers (line 7) | def find_outliers(data, threshold=3.5, window_fraction=0.15): function smoothen (line 65) | def smoothen(data, window_fraction=0.3, **kwargs): function _spline_interpolate (line 120) | def _spline_interpolate(x, y, x_new, **kwargs): FILE: magnet/utils/varseq.py function pack (line 5) | def pack(sequences, lengths=None): function unpack (line 50) | def unpack(sequence, as_list=False): function sort (line 72) | def sort(sequences, order, dim=0): function unsort (line 82) | def unsort(sequences, order, dim=0): FILE: tests/data/test_dataloader.py class TestDataLoader (line 5) | class TestDataLoader: method test_batch_size_cannnot_be_too_high (line 6) | def test_batch_size_cannnot_be_too_high(self): FILE: tests/nodes/test_core.py class TestLambda (line 10) | class TestLambda: method test_lambda_function_has_name_lambda (line 11) | def test_lambda_function_has_name_lambda(self): method test_function_name_transferred (line 16) | def test_function_name_transferred(self): method test_square (line 23) | def test_square(self): class TestConv (line 30) | class TestConv: method test_half_padding_args (line 31) | def test_half_padding_args(self): method test_half_padding (line 42) | def test_half_padding(self): method test_same_padding (line 46) | def test_same_padding(self): method test_double_padding (line 50) | def test_double_padding(self): method test_conv_1d (line 54) | def test_conv_1d(self): method test_conv_2d (line 59) | def test_conv_2d(self): method test_conv_3d (line 64) | def test_conv_3d(self): method test_mul_list (line 69) | def test_mul_list(self): class TestLinear (line 80) | class TestLinear: method test_flatten (line 81) | def test_flatten(self): method test_inflate (line 87) | def test_inflate(self): method test_mul_list (line 93) | def test_mul_list(self): class TestRNN (line 104) | class TestRNN: method test_shape (line 107) | def test_shape(self): method test_mul_list (line 115) | def test_mul_list(self): class TestLSTM (line 126) | class TestLSTM(TestRNN): class TestGRU (line 129) | class TestGRU(TestRNN): class TestBatchNorm (line 132) | class TestBatchNorm: method test_bn_1d (line 133) | def test_bn_1d(self): method test_bn_2d (line 140) | def test_bn_2d(self): method test_bn_3d (line 145) | def test_bn_3d(self): FILE: tests/nodes/test_nodes.py class TestNode (line 5) | class TestNode: method test_not_built (line 6) | def test_not_built(self): method test_store_arguments (line 10) | def test_store_arguments(self): method test_name_is_not_senseless (line 20) | def test_name_is_not_senseless(self): method test_mul_int (line 25) | def test_mul_int(self): method test_print_args (line 33) | def test_print_args(self): method test_cannot_mul_list (line 37) | def test_cannot_mul_list(self): FILE: tests/test_debug.py function test_overfit (line 14) | def test_overfit(): class TestFlow (line 18) | class TestFlow: method test_ok (line 19) | def test_ok(self): method test_broken (line 23) | def test_broken(self): class TestBabysitter (line 28) | class TestBabysitter: method test_accumulating (line 29) | def test_accumulating(self): function get_obj (line 38) | def get_obj(broken=False): class BrokenModel (line 49) | class BrokenModel(nn.Module): method __init__ (line 50) | def __init__(self): method forward (line 55) | def forward(self, x): method sample (line 60) | def sample(self, x): FILE: tests/training/test_callbacks.py class TestCheckpoint (line 17) | class TestCheckpoint: method get_callbacks (line 19) | def get_callbacks(data, trainer, path): method test_start_from_checkpoint (line 27) | def test_start_from_checkpoint(self): class TestColdStart (line 45) | class TestColdStart: method test_not_trained (line 46) | def test_not_trained(self): class TestLRScheduler (line 56) | class TestLRScheduler: method test_lr_decay (line 57) | def test_lr_decay(self): class TestCallbackQueue (line 67) | class TestCallbackQueue: method test_exists (line 68) | def test_exists(self): method test_multiple_callbacks_error (line 73) | def test_multiple_callbacks_error(self): method test_cannot_add_same_name (line 78) | def test_cannot_add_same_name(self): function get_obj (line 86) | def get_obj(): function copy_tensor (line 94) | def copy_tensor(x): FILE: tests/training/test_history.py class TestHistory (line 5) | class TestHistory: method test_can_show (line 6) | def test_can_show(self): FILE: tests/training/test_train.py class TestTrainer (line 15) | class TestTrainer: method test_cannot_call (line 16) | def test_cannot_call(self): class TestSupervisedTrainer (line 23) | class TestSupervisedTrainer: method test_iterations (line 24) | def test_iterations(self): method test_epochs (line 30) | def test_epochs(self): method test_epoch_start (line 36) | def test_epoch_start(self): method test_epoch_end (line 42) | def test_epoch_end(self): method test_less_loss (line 48) | def test_less_loss(self): method test_not_training_when_eval (line 61) | def test_not_training_when_eval(self): method test_mocking (line 71) | def test_mocking(self): method test_change_batch_size (line 79) | def test_change_batch_size(self): function test_finish_training (line 90) | def test_finish_training(): function get_obj (line 106) | def get_obj(): function copy_tensor (line 114) | def copy_tensor(x): FILE: tests/utils/test__node.py function test_summarize_node (line 8) | def test_summarize_node(): function test_summarize_module (line 12) | def test_summarize_module(): FILE: tests/utils/test_images.py class TestShowImages (line 9) | class TestShowImages: method test_pass_numpy_array (line 10) | def test_pass_numpy_array(self): method test_torch_tensor (line 15) | def test_torch_tensor(self): method test_cannot_mix_inputs (line 18) | def test_cannot_mix_inputs(self): method test_pixel_range_string (line 22) | def test_pixel_range_string(self): method test_pixel_range_integer (line 26) | def test_pixel_range_integer(self): method test_bad_merge_shape (line 30) | def test_bad_merge_shape(self): method test_shape_negative (line 34) | def test_shape_negative(self): method test_shape_row_column (line 38) | def test_shape_row_column(self): method test_shape_dict (line 42) | def test_shape_dict(self): method test_shape_evil (line 46) | def test_shape_evil(self): method test_resize_negative (line 50) | def test_resize_negative(self): method test_savepath_not_string (line 54) | def test_savepath_not_string(self): method test_can_plot_seperately (line 58) | def test_can_plot_seperately(self): FILE: tests/utils/test_plot.py class TestSmoothenPlot (line 6) | class TestSmoothenPlot: method test_get_gained_points_back (line 7) | def test_get_gained_points_back(self): FILE: tests/utils/test_statistical.py class TestRemoveOutlier (line 9) | class TestRemoveOutlier: method test_data_can_be_1d (line 10) | def test_data_can_be_1d(self): method test_data_can_be_linear (line 13) | def test_data_can_be_linear(self): method test_cannot_send_none (line 16) | def test_cannot_send_none(self): method test_cannot_send_empty (line 20) | def test_cannot_send_empty(self): method test_threshold_not_negative (line 27) | def test_threshold_not_negative(self): method test_threshold_not_none (line 31) | def test_threshold_not_none(self): method test_threshold_not_inf (line 35) | def test_threshold_not_inf(self): method test_window_fraction_is_fraction (line 39) | def test_window_fraction_is_fraction(self): class TestSmoothen (line 46) | class TestSmoothen: method test_cannot_send_none (line 47) | def test_cannot_send_none(self): method test_cannot_send_empty (line 57) | def test_cannot_send_empty(self): method test_cannot_send_2d (line 64) | def test_cannot_send_2d(self): method test_cannot_send_illegal (line 68) | def test_cannot_send_illegal(self): method test_window_fraction_is_fraction (line 79) | def test_window_fraction_is_fraction(self): method test_window_fraction_too_low_warning (line 85) | def test_window_fraction_too_low_warning(self): method test_order_cannot_be_negative (line 89) | def test_order_cannot_be_negative(self): method test_interpolate_fn_cannot_be_none (line 93) | def test_interpolate_fn_cannot_be_none(self): method test_returns_same_shape (line 97) | def test_returns_same_shape(self): FILE: tests/utils/test_varseq.py function test_pack_unpack (line 6) | def test_pack_unpack(): function test_pack_padded (line 16) | def test_pack_padded():