Skip to main content

Convolutional neural network sequence classifier with a scikit-learn interface.

Usage example

Predicting IMDB review sentiments.:

from keras.datasets import imdb
from keras.preprocessing import sequence
from sequence_classifiers import CNNSequenceClassifier

maxlen = 400
(x_train, y_train), (x_test, y_test) = imdb.load_data(num_words=5000)
x_train = sequence.pad_sequences(x_train, maxlen=maxlen)
x_test = sequence.pad_sequences(x_test, maxlen=maxlen)

clf = CNNSequenceClassifier(epochs=2)
clf.fit(x_train, y_train)
print(clf.score(x_test, y_test))

Metadata

Release files for sklearn-sequence-classifiers 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sklearn-sequence-classifiers 0.2
File Size Uploaded
sklearn-sequence-classifiers-0.2.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sklearn-sequence-classifiers 0.2
File Interpreter ABI Platform
sklearn_sequence_classifiers-0.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 14.6 kB

Release files / sklearn-sequence-classifiers-0.2.tar.gz

Download URL sklearn-sequence-classifiers-0.2.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
433ae9b1a1cf3016cc5a7ac1da0e9c0e4852cbe6fb887337e08bc2422ba51a97
BLAKE2b-256 checksum
How to use checksums
4c3f6197bc01c0e9d3d7cf5052d8d6950812deb374bd4aecd8ff86d69d66f8e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / sklearn_sequence_classifiers-0.2-py2.py3-none-any.whl

Download URL sklearn_sequence_classifiers-0.2-py2.py3-none-any.whl
Size 8.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a196f21de1c0de91702ff162869575358075ce2cda37b8f047c054735e6a2807
BLAKE2b-256 checksum
How to use checksums
517e7e02eba2500c723fe5c5c2dca185f2ac63a455aaa319c661608a8624745f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page