5b8864d1863ac0474db8b657f023341686f4b1fb,benchmark/imdb.py,,imdb_raw,#,9
Before Change
def imdb_raw():
index_offset = 3 // word index offset
( x_train, y_train), (x_test, y_test) = imdb.load_data(index_from=index_offset)
word_to_id = imdb.get_word_index()
word_to_id = {k: (v + index_offset) for k, v in word_to_id.items()}
After Change
def imdb_raw():
dataset = tf.keras.utils.get_file(
fname="aclImdb.tar.gz",
origin="http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz",
extract=True,
)
// set path to dataset
IMDB_DATADIR = os.path.join(os.path.dirname(dataset), "aclImdb")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: jhfjhfj1/autokeras
Commit Name: 5b8864d1863ac0474db8b657f023341686f4b1fb
Time: 2020-09-24
Author: jhfjhfj1@gmail.com
File Name: benchmark/imdb.py
Class Name:
Method Name: imdb_raw
Project Name: jhfjhfj1/autokeras
Commit Name: 597ed326b9a3efa4f7b546b9d2152e4dd2800b3a
Time: 2020-06-09
Author: jhfjhfj1@gmail.com
File Name: docs/py/structured_data_classification.py
Class Name:
Method Name: