Skip to main content

Fast-Layers is a python library for Keras and Tensorflow users: The fastest way to build complex deep neural network architectures with sequential models

Project description

# Fast-Layers Fast-Layers is a python library for Keras and Tensorflow users: The fastest way to build complex deep neural network architectures with sequential models

## Introduction Tensorflow’s sequential model is a very intuitive way to start learning about Deep Neural Networks. However it is quite hard to dive into more complex networks without learning more about Keras.

Well it won’t be hard anymore with Fast-layers! Define your Connectors and Pipes to start building complex layers in a sequential fashion.

I create fast-layers for beginners who wants to build more advanced networks and for experimented users who wants to quickly build and test complex module architectures.

# Documentation

Please note that eager execution is not supported for the moment

#### class Sequence:
Arguments:

name: str, positional arg inputs: str: name of input pipe/connector | list: names of input pipes/connectors, positional arg sequence=None: list of keras.layers objects, is_output_layer=False, trainable=True,

Attributes:

inputs: str or list of input names. sequence: list of keras.layers objects, is_output_layer: True if this is the output Sequence of a Layer object.

Methods:

call(x, training=False): by calling the sequence through __call__(), computes x. self_build(): build the layers of the sequence into this Sequence object.

#### class Layer:
Arguments:

sequences: list of sequences, trainable=True, n_iteration_error=50: max number of iteration permitted in the computation loop before break

Attributes:

names: list of sequences names trainable: True if the weights of this layer are trainable. sequences: list of sequences first_call=True: False means the Layer object has been called and n_iteration_error: max number of iteration permitted in the computation loop before break

Methods:

init_layer(sequences): Takes a list of sequences and initialize the layer. Is called on __init__() if the layer object has been instantiate with the argument sequences=*List of sequences* call(x, training=False): by calling the layer through __call__(), computes x.

## Fast Layer MNIST tutorial but using Inception modules

TRY IT YOURSELF: https://www.kaggle.com/alexandremahdhaoui/fast-layers-tutorial

original MNIST tutorial: https://www.tensorflow.org/datasets/keras_example Szegedy et al. 2014, Going deeper with convolutions: https://arxiv.org/pdf/1409.4842.pdf

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fast_layers-0.1.2.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file fast_layers-0.1.2.tar.gz.

File metadata

  • Download URL: fast_layers-0.1.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.8

File hashes

Hashes for fast_layers-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bc7efab6b6c3073b99cf2eca98418af9df2c9af3cc1ff01da435dcec1d188dbb
MD5 09d3b5a6888d4b275c89f314dd7702bf
BLAKE2b-256 a9602b57e214b829edd50b785ed366e1cbfacc26be945b4ca32614ebf4fec58f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page