Skip to main content

Framework for the automatic creation of CNN architectures

Project description

TorchCNNBuilder


TorchCNNBuilder is an open-source framework for the automatic creation of CNN architectures. This framework should first of all help researchers in the applicability of CNN models for a huge range of tasks, taking over most of the writing of the architecture code. This framework is distributed under the 3-Clause BSD license. All the functionality is written only using pytorch (no third-party dependencies).

Installation


The simplest way to install framework is using pip:

pip install torchcnnbuilder

Usage examples


The basic structure of the framework is presented below. Each subdirectory has its own example of using the appropriate available functionality. You can check examples files in order to see the ways to use the proposed toolkit. In short, there is the following functionality:

  • the ability to calculate the size of tensors after (transposed) convolutional layers
  • preprocessing an n-dimensional time series in TensorDataset
  • automatic creation of (transposed) convolutional sequences
  • automatic creation of (transposed) convolutional layers and (transposed) blocks from convolutional layers

The structure of the main part of the package:

├── examples
│ ├── examples.ipynb
│ ├── builder_examples.ipynb
│ ├── preprocess_examples.ipynb
│ └── models_examples.ipynb
└── torchcnnbuilder
    ├── preprocess
    │ └── time_series.py
    ├── builder.py
    └── models.py

Initially, the library was created to help predict n-dimensional time series (geodata), so there is a corresponding functionality and templates of predictive models (like ForecasterBase).

Sources


Development


We try to maintain good practices of readable open source code. Therefore, if you want to participate in the development and open your pool request, pay attention to the following points:

  • Every push is checked by the flake8 job. It will show you PEP8 errors or possible code improvements.
  • Use this linter script after your code:
bash lint_and_check.sh

You can mark function docstrings using #noqa, in order for flake8 not to pay attention to them.

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

torchcnnbuilder-0.1.3.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

torchcnnbuilder-0.1.3-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file torchcnnbuilder-0.1.3.tar.gz.

File metadata

  • Download URL: torchcnnbuilder-0.1.3.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for torchcnnbuilder-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2c67244795d55bdbb0238317d70e86f7226f9ffda309f3fdc840b747a7301198
MD5 16e445215738ad9e27b130b046254089
BLAKE2b-256 1d4b9e31b0162d255e970362b35c1f6c2dff033e62658e02c74b1301a03cc172

See more details on using hashes here.

Provenance

File details

Details for the file torchcnnbuilder-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for torchcnnbuilder-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6f844ed57fbc8864779cf8a9d968a0ac953994d33677ff893938e39d6b5db971
MD5 918e458c55fd8126a8eb552c9101a137
BLAKE2b-256 093f85185f0b61d44fbe3e90406240897f367a2c7dc385930cfd08311c0fb9f8

See more details on using hashes here.

Provenance

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