SYMBOL INDEX (256 symbols across 24 files) FILE: doc/conf.py function autodoc_skip_member (line 67) | def autodoc_skip_member(app, what, name, obj, skip, options): function setup (line 74) | def setup(app): FILE: layered/__main__.py function main (line 7) | def main(): FILE: layered/activation.py class Activation (line 4) | class Activation: method __call__ (line 6) | def __call__(self, incoming): method delta (line 9) | def delta(self, incoming, outgoing, above): class Identity (line 19) | class Identity(Activation): method __call__ (line 21) | def __call__(self, incoming): method delta (line 24) | def delta(self, incoming, outgoing, above): class Sigmoid (line 29) | class Sigmoid(Activation): method __call__ (line 31) | def __call__(self, incoming): method delta (line 34) | def delta(self, incoming, outgoing, above): class Relu (line 39) | class Relu(Activation): method __call__ (line 41) | def __call__(self, incoming): method delta (line 44) | def delta(self, incoming, outgoing, above): class Softmax (line 49) | class Softmax(Activation): method __call__ (line 51) | def __call__(self, incoming): method delta (line 57) | def delta(self, incoming, outgoing, above): class SparseField (line 64) | class SparseField(Activation): method __init__ (line 66) | def __init__(self, inhibition=0.05, leaking=0.0): method __call__ (line 70) | def __call__(self, incoming): method delta (line 92) | def delta(self, incoming, outgoing, above): class SparseRange (line 97) | class SparseRange(Activation): method __init__ (line 110) | def __init__(self, range_=0.3, function=Sigmoid()): method __call__ (line 115) | def __call__(self, incoming): method delta (line 125) | def delta(self, incoming, outgoing, above): method _threshold (line 129) | def _threshold(self, incoming): FILE: layered/cost.py class Cost (line 4) | class Cost: method __call__ (line 6) | def __call__(self, prediction, target): method delta (line 9) | def delta(self, prediction, target): class SquaredError (line 13) | class SquaredError(Cost): method __call__ (line 18) | def __call__(self, prediction, target): method delta (line 21) | def delta(self, prediction, target): class CrossEntropy (line 25) | class CrossEntropy(Cost): method __init__ (line 33) | def __init__(self, epsilon=1e-11): method __call__ (line 36) | def __call__(self, prediction, target): method delta (line 41) | def delta(self, prediction, target): FILE: layered/dataset.py class Dataset (line 12) | class Dataset: method __init__ (line 17) | def __init__(self): method folder (line 29) | def folder(cls): method parse (line 36) | def parse(self): method dump (line 45) | def dump(self): method load (line 49) | def load(self): method download (line 53) | def download(self, url): method split (line 62) | def split(examples, ratio=0.8): method _is_cached (line 71) | def _is_cached(self): method _training_path (line 78) | def _training_path(self): method _testing_path (line 81) | def _testing_path(self): class Test (line 85) | class Test(Dataset): method __init__ (line 89) | def __init__(self, amount=10): method parse (line 93) | def parse(self): class Regression (line 98) | class Regression(Dataset): method __init__ (line 107) | def __init__(self, amount=10000, inputs=10): method parse (line 112) | def parse(self): class Modulo (line 123) | class Modulo(Dataset): method __init__ (line 131) | def __init__(self, amount=60000, inputs=32, classes=7): method parse (line 137) | def parse(self): class Mnist (line 148) | class Mnist(Dataset): method parse (line 166) | def parse(self, train_x, train_y, test_x, test_y): method read (line 173) | def read(data, labels): FILE: layered/evaluation.py function compute_costs (line 4) | def compute_costs(network, weights, cost, examples): function compute_error (line 10) | def compute_error(network, weights, examples): FILE: layered/example.py class Example (line 4) | class Example: method __init__ (line 11) | def __init__(self, data, target): method data (line 16) | def data(self): method target (line 20) | def target(self): method __getstate__ (line 23) | def __getstate__(self): method __setstate__ (line 26) | def __setstate__(self, state): method __repr__ (line 30) | def __repr__(self): FILE: layered/gradient.py class Gradient (line 9) | class Gradient: method __init__ (line 11) | def __init__(self, network, cost): method __call__ (line 15) | def __call__(self, weights, example): class Backprop (line 19) | class Backprop(Gradient): method __call__ (line 25) | def __call__(self, weights, example): method _delta_output (line 32) | def _delta_output(self, prediction, target): method _delta_layers (line 41) | def _delta_layers(self, weights, delta_output): method _delta_layer (line 53) | def _delta_layer(self, layer, weight, above): method _delta_weights (line 62) | def _delta_weights(self, delta_layers): class NumericalGradient (line 77) | class NumericalGradient(Gradient): method __init__ (line 83) | def __init__(self, network, cost, distance=1e-5): method __call__ (line 87) | def __call__(self, weights, example): method _evaluate (line 111) | def _evaluate(self, weights, example): class CheckedBackprop (line 118) | class CheckedBackprop(Gradient): method __init__ (line 126) | def __init__(self, network, cost, distance=1e-5, tolerance=1e-8): method __call__ (line 132) | def __call__(self, weights, example): class BatchBackprop (line 144) | class BatchBackprop: method __init__ (line 149) | def __init__(self, network, cost): method __call__ (line 152) | def __call__(self, weights, examples): class ParallelBackprop (line 159) | class ParallelBackprop: method __init__ (line 165) | def __init__(self, network, cost, workers=4): method __call__ (line 170) | def __call__(self, weights, examples): FILE: layered/network.py class Layer (line 5) | class Layer: method __init__ (line 7) | def __init__(self, size, activation): method __len__ (line 15) | def __len__(self): method __repr__ (line 19) | def __repr__(self): method __str__ (line 22) | def __str__(self): method apply (line 27) | def apply(self, incoming): method delta (line 38) | def delta(self, above): class Matrices (line 45) | class Matrices: method __init__ (line 47) | def __init__(self, shapes, elements=None): method __len__ (line 57) | def __len__(self): method __getitem__ (line 60) | def __getitem__(self, index): method __setitem__ (line 71) | def __setitem__(self, index, data): method __getattr__ (line 84) | def __getattr__(self, name): method __setattr_ (line 89) | def __setattr_(self, name, value): method copy (line 95) | def copy(self): method __add__ (line 98) | def __add__(self, other): method __sub__ (line 101) | def __sub__(self, other): method __mul__ (line 104) | def __mul__(self, other): method __truediv__ (line 107) | def __truediv__(self, other): method _operation (line 114) | def _operation(self, other, operation): method _locate (line 121) | def _locate(self, index): method _range_from_slice (line 132) | def _range_from_slice(self, slice_): method __str__ (line 138) | def __str__(self): class Network (line 142) | class Network: method __init__ (line 144) | def __init__(self, layers): method feed (line 154) | def feed(self, weights, data): method forward (line 170) | def forward(weight, activations): method backward (line 178) | def backward(weight, activations): FILE: layered/optimization.py class GradientDecent (line 1) | class GradientDecent: method __call__ (line 7) | def __call__(self, weights, gradient, learning_rate=0.1): class Momentum (line 11) | class Momentum: method __init__ (line 17) | def __init__(self): method __call__ (line 20) | def __call__(self, gradient, rate=0.9): class WeightDecay (line 31) | class WeightDecay: method __call__ (line 37) | def __call__(self, weights, rate=1e-4): class WeightTying (line 41) | class WeightTying: method __init__ (line 47) | def __init__(self, *groups): method __call__ (line 54) | def __call__(self, matrices): FILE: layered/plot.py class Interface (line 24) | class Interface: method __init__ (line 26) | def __init__(self, title='', xlabel='', ylabel='', style=None): method style (line 37) | def style(self): method title (line 41) | def title(self): method xlabel (line 45) | def xlabel(self): method ylabel (line 49) | def ylabel(self): class State (line 53) | class State: method __init__ (line 55) | def __init__(self): class Window (line 59) | class Window: method __init__ (line 61) | def __init__(self, refresh=0.5): method register (line 70) | def register(self, position, interface): method start (line 78) | def start(self, work): method stop (line 102) | def stop(self): method update (line 111) | def update(self): class Plot (line 125) | class Plot(Interface): method __init__ (line 127) | def __init__(self, title, xlabel, ylabel, style=None, fixed=None): method __call__ (line 139) | def __call__(self, values): FILE: layered/problem.py class Problem (line 9) | class Problem: method __init__ (line 11) | def __init__(self, content=None): method __str__ (line 23) | def __str__(self): method parse (line 27) | def parse(self, definition): method _load_definition (line 37) | def _load_definition(self, definition): method _load_symbols (line 46) | def _load_symbols(self): method _load_layers (line 51) | def _load_layers(self): method _load_weight_tying (line 57) | def _load_weight_tying(self): method _find_symbol (line 72) | def _find_symbol(self, module, name, fallback=None): method _validate (line 81) | def _validate(self): method _defaults (line 91) | def _defaults(): FILE: layered/trainer.py class Trainer (line 11) | class Trainer: method __init__ (line 14) | def __init__(self, problem, load=None, save=None, method _init_network (line 25) | def _init_network(self): method _init_training (line 39) | def _init_training(self): method _init_visualize (line 52) | def _init_visualize(self): method __call__ (line 64) | def __call__(self): method _train (line 74) | def _train(self, batches): method _train_visual (line 83) | def _train_visual(self, batches, state): method _batch (line 93) | def _batch(self, index, batch): method _visualize (line 107) | def _visualize(self, batch): method _evaluate (line 114) | def _evaluate(self, index): method _every (line 127) | def _every(times, step_size, index): FILE: layered/utility.py function repeated (line 7) | def repeated(iterable, times): function batched (line 12) | def batched(iterable, size): function averaged (line 23) | def averaged(callable_, batch): function listify (line 31) | def listify(fn=None, wrapper=list): function ensure_folder (line 46) | def ensure_folder(path): function hstack_lines (line 55) | def hstack_lines(blocks, sep=' '): function pairwise (line 68) | def pairwise(iterable): FILE: setup.py class TestCommand (line 9) | class TestCommand(test): method __init__ (line 14) | def __init__(self, *args, **kwargs): method finalize_options (line 18) | def finalize_options(self): method run_tests (line 28) | def run_tests(self): method _call (line 35) | def _call(self, command): method _check (line 45) | def _check(self): class BuildExtCommand (line 50) | class BuildExtCommand(build_ext): method finalize_options (line 56) | def finalize_options(self): FILE: test/fixtures.py function random_matrices (line 10) | def random_matrices(shapes): function weights (line 18) | def weights(request): function weights_and_gradient (line 25) | def weights_and_gradient(request): function network_and_weights (line 33) | def network_and_weights(request): function example (line 43) | def example(): function examples (line 50) | def examples(): function cost (line 60) | def cost(request): FILE: test/test_example.py class TestExample (line 6) | class TestExample: method test_representation (line 8) | def test_representation(self): FILE: test/test_gradient.py class TestBackprop (line 9) | class TestBackprop: method test_against_numerical (line 11) | def test_against_numerical(self, network_and_weights, cost, example): class TestBatchBackprop (line 25) | class TestBatchBackprop: method test_calculation (line 27) | def test_calculation(self, network_and_weights, cost, examples): class TestParallelBachprop (line 36) | class TestParallelBachprop: method test_against_batch_backprop (line 38) | def test_against_batch_backprop(self, network_and_weights, cost, examp... FILE: test/test_network.py function matrices (line 8) | def matrices(): class TestMatrices (line 12) | class TestMatrices: method test_initialization (line 14) | def test_initialization(self, matrices): method test_indexing (line 18) | def test_indexing(self, matrices): method test_slicing (line 23) | def test_slicing(self, matrices): method test_negative_indices (line 28) | def test_negative_indices(self, matrices): method test_assignment (line 35) | def test_assignment(self, matrices): method test_matrix_assignment (line 39) | def test_matrix_assignment(self, matrices): method test_sliced_matrix_assignment (line 45) | def test_sliced_matrix_assignment(self, matrices): method test_invalid_matrix_assignment (line 53) | def test_invalid_matrix_assignment(self, matrices): FILE: test/test_optimization.py function weights_and_gradient_and_groups (line 9) | def weights_and_gradient_and_groups(request): class TestGradientDecent (line 19) | class TestGradientDecent: method test_calculation (line 21) | def test_calculation(self, weights_and_gradient): method test_shapes_match (line 28) | def test_shapes_match(self, weights_and_gradient): method test_copy_data (line 34) | def test_copy_data(self, weights_and_gradient): class TestMomentum (line 45) | class TestMomentum: method test_zero_rate (line 47) | def test_zero_rate(self, weights_and_gradient): method test_shapes_match (line 55) | def test_shapes_match(self, weights): method test_copy_data (line 60) | def test_copy_data(self, weights): class TestWeightDecay (line 70) | class TestWeightDecay: method test_calculation (line 72) | def test_calculation(self, weights): method test_shapes_match (line 78) | def test_shapes_match(self, weights): method test_copy_data (line 83) | def test_copy_data(self, weights): class TestWeightTying (line 93) | class TestWeightTying: method test_calculation (line 95) | def test_calculation(self, weights_and_gradient_and_groups): method test_shapes_match (line 101) | def test_shapes_match(self, weights_and_gradient_and_groups): method test_dont_affect_others (line 107) | def test_dont_affect_others(self, weights_and_gradient_and_groups): method test_weights_stay_tied (line 118) | def test_weights_stay_tied(self, weights_and_gradient_and_groups): method test_copy_data (line 126) | def test_copy_data(self, weights_and_gradient_and_groups): method _is_tied (line 136) | def _is_tied(self, matrices, groups): FILE: test/test_plot.py class TestPlot (line 4) | class TestPlot: method test_interactive_backend (line 6) | def test_interactive_backend(self): FILE: test/test_problem.py class TestProblem (line 6) | class TestProblem: method test_unknown_property (line 8) | def test_unknown_property(self): method test_incompatible_type (line 12) | def test_incompatible_type(self): method test_read_value (line 16) | def test_read_value(self): method test_default_value (line 20) | def test_default_value(self): FILE: test/test_trainer.py function problem (line 8) | def problem(): class TestTrainer (line 18) | class TestTrainer: method test_no_crash (line 20) | def test_no_crash(self, problem): FILE: test/test_utility.py class MockGenerator (line 6) | class MockGenerator: method __init__ (line 8) | def __init__(self, data): method __iter__ (line 12) | def __iter__(self): class MockCustomOperators (line 18) | class MockCustomOperators: method __init__ (line 20) | def __init__(self, value): method __add__ (line 23) | def __add__(self, other): method __truediv__ (line 28) | def __truediv__(self, other): class TestRepeated (line 32) | class TestRepeated: method test_result (line 34) | def test_result(self): method test_generator (line 39) | def test_generator(self): class TestBatched (line 47) | class TestBatched: method test_result (line 49) | def test_result(self): method test_generator (line 58) | def test_generator(self): class TestAveraged (line 66) | class TestAveraged: method test_result (line 68) | def test_result(self): method test_custom_operators (line 72) | def test_custom_operators(self): method test_supports_booleans (line 76) | def test_supports_booleans(self):