Skip to main content

Temporal Convolution Network (TCN) based on Keras

Project description

Temporal Convolution Network (TCN)

Description

This is a implement of temporal Convolution Network (TCN) by using keras, and the version uses a dense layer as the output layer instead of fully convolution network (FCN) structure depicted in paper "An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modeling".

Usage

    import keras 
    from tcn import *

    # Build TCN model
    # model is a keras model
    model = tcn(input_shape=(24, 7), n_blocks=3, filters=[16, 32, 64], 
                kernel_size=[24, 24, 24], dropout_rate=[0.1, 0.1, 0.1], 
                n_outputs=6)
    # Plot the structure of model
    keras.utils.plot_model(model, to_file='model.png', show_shapes=True)

References

An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modeling

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pytcn-0.0.2-py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 3

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