FeatureLayers
Installation
pip install featurelayers
Usage
LBC Layers
import numpy as np
from keras.models import Sequential
from keras.layers import Dense, Flatten
from featurelayers.layers.LBC import LBC
# Create a simple Keras model
model = Sequential()
# Add the LBC layer as the first layer in the model
model.add(LBC(filters=32, kernel_size=3, stride=1, padding='same', activation='relu', sparsity=0.9, name='lbc_layer'))
# Add a Flatten layer to convert the output to 1D
model.add(Flatten())
# Add a Dense layer for classification
model.add(Dense(units=10, activation='softmax'))
# Compile the model
model.compile(optimizer='adam', loss='categorical_crossentropy', metrics=['accuracy'])
# Generate some dummy data
x_train = np.random.rand(100, 28, 28, 1)
y_train = np.random.randint(0, 10, size=(100,))
# Convert the labels to one-hot encoding
y_train = keras.utils.to_categorical(y_train, num_classes=10)
# Train the model
model.fit(x_train, y_train, epochs=10, batch_size=32)
version = ""1.5.6""
Metadata
Release files for featurelayers 1.5.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| featurelayers-1.5.6.tar.gz | 8.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| featurelayers-1.5.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.0 kB
Release files / featurelayers-1.5.6.tar.gz
| Download URL | featurelayers-1.5.6.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f0505c06eeb8b8dfaba3c535add6f451cf7e298425cdbaadad1a291b9ef484b
|
|
BLAKE2b-256 checksum How to use checksums |
f1babf4e0f1cf2b84ac1d20a8445c85b0c544732e973aef29eace465bf2a4062
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / featurelayers-1.5.6-py3-none-any.whl
| Download URL | featurelayers-1.5.6-py3-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7d59cfb02a11e7477b063e1971a33a0dfabef8e16da9ad84d9f7bcc4f011036
|
|
BLAKE2b-256 checksum How to use checksums |
04d336ea7f9813b3d121497d2a1ef5de008e4c91601ce3302f4c6a6d68744e39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for featurelayers 1.5.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.