Skip to main content

This package contains collection of models

Project description

Model_X

Model_X package is a collection of different NLP architecture models.

Implementation

1. BiLSTM+BiGRU Architectures

a. BiLSTMGRUSpatialDropout1D

from model_X.bilstm_architectures import *
from model_X.dense_architectures import DenseLayerModel
from tensorflow.keras.layers import *
from tensorflow.keras.models import Model

input_shape = (100,)
model_input = Input(shape=input_shape)
bilstm_layers = BiLSTMGRUSpatialDropout1D(10, 100)(model_input)
dense_layers = DenseLayerModel()(bilstm_layers)
output = Dense(3, activation='softmax')(dense_layers)
full_model = Model(inputs=model_input, outputs=output)
print(full_model.summary())

b. BiLSTMGRUSelfAttention

from model_X.bilstm_architectures import *
from model_X.dense_architectures import DenseLayerModel
from tensorflow.keras.layers import *
from tensorflow.keras.models import Model

input_shape = (100,)
model_input = Input(shape=input_shape)
bilstm_layers = BiLSTMGRUSelfAttention(10, 100)(model_input)
dense_layers = DenseLayerModel()(bilstm_layers)
output = Dense(3, activation='softmax')(dense_layers)
full_model = Model(inputs=model_input, outputs=output)
print(full_model.summary())

c. BiLSTMGRUMultiHeadAttention

from model_X.bilstm_architectures import *
from model_X.dense_architectures import DenseLayerModel
from tensorflow.keras.layers import *
from tensorflow.keras.models import Model

input_shape = (100,)
model_input = Input(shape=input_shape)
bilstm_layers = BiLSTMGRUMultiHeadAttention(10, 100)(model_input)
dense_layers = DenseLayerModel()(bilstm_layers)
output = Dense(3, activation='softmax')(dense_layers)
full_model = Model(inputs=model_input, outputs=output)
print(full_model.summary())

d. SplitBiLSTMGRUSpatialDropout1D

from model_X.bilstm_architectures import *
from model_X.dense_architectures import DenseLayerModel
from tensorflow.keras.layers import *
from tensorflow.keras.models import Model

input_shape = (100,)
model_input = Input(shape=input_shape)
bilstm_layers = SplitBiLSTMGRUSpatialDropout1D(10, 100)(model_input)
dense_layers = DenseLayerModel()(bilstm_layers)
output = Dense(3, activation='softmax')(dense_layers)
full_model = Model(inputs=model_input, outputs=output)
print(full_model.summary())

e. SplitBiLSTMGRU

from model_X.bilstm_architectures import *
from model_X.dense_architectures import DenseLayerModel
from tensorflow.keras.layers import *
from tensorflow.keras.models import Model

input_shape = (100,)
model_input = Input(shape=input_shape)
bilstm_layers = SplitBiLSTMGRU(10, 100)(model_input)
dense_layers = DenseLayerModel()(bilstm_layers)
output = Dense(3, activation='softmax')(dense_layers)
full_model = Model(inputs=model_input, outputs=output)
print(full_model.summary())

2. Dense Architectures

a. DenseLayerModel

from model_X.dense_architectures import DenseLayerModel
from tensorflow.keras.layers import *
from tensorflow.keras.models import Model

input_shape = (100,)
model_input = Input(shape=input_shape)
dense_layers = DenseLayerModel()(model_input)
output = Dense(3, activation='softmax')(dense_layers)
full_model = Model(inputs=model_input, outputs=output)
print(full_model.summary())

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

model_X-0.1.3.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

model_X-0.1.3-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: model_X-0.1.3.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for model_X-0.1.3.tar.gz
Algorithm Hash digest
SHA256 cdfc7c90598bd6bc4493059f3d806b2a4a68b9286f2c196525564e541e358a32
MD5 ca9335ccbe1362637971db3e5fb0b148
BLAKE2b-256 4b35795c037543fcd5111d11b9b8078e280bc05920ff7d985b94c2732e569277

See more details on using hashes here.

File details

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

File metadata

  • Download URL: model_X-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for model_X-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 62d711ceb484da76b29ca3314d83b752edc63dbe74886e707dce32d3a2eca676
MD5 ae3adae6aa3258243ea00ba1f035b043
BLAKE2b-256 bba7600ac956bf5ad3c24d2045882d45ea7f08fa3819d51599ad279e8ad9dc05

See more details on using hashes here.

Supported by

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