This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Example of text classification using a Convolution1D network with one hot | |
representation. Adapted from the imdb_cnn.py example. | |
Gets to 0.8292 test accuracy after 2 epochs. 153s/epoch on GTX660 GPU. | |
""" | |
from __future__ import print_function | |
import numpy as np |