# 路透社新聞主題分類(reuters)
數據集來源于路透社的 11,228 條新聞文本,總共分為 46 個主題。與 IMDB 數據集一樣,每條新聞都被編碼為一個詞索引的序列(相同的約定)。
## 用法:
~~~
from AADeepLearning.datasets import reuters
(x_train, y_train), (x_test, y_test) = reuters.load_data(path="reuters.npz",
num_words=None,
skip_top=0,
maxlen=None,
test_split=0.2,
seed=113,
start_char=1,
oov_char=2,
index_from=3)
~~~
* **返回:**一個字典,其中鍵是單詞(字符串),值是索引(整數)。 例如,`word_index["giraffe"]`可能會返回`1234`。
* **參數:**
* **path**: 如果在本地沒有索引文件 (at`'~/.aadeeplearning/datasets/' + path`), 它將被下載到該目錄。
- 序言
- 安裝
- 快速體驗
- 配置
- 層(layer)
- 展平(flatten)
- 全連接(fully connected)
- 卷積(convolutional)
- 池化(pooling)
- 標準化(batch normalization)
- 失活(dropout)
- 循環(RNN)
- 長短期記憶(LSTM)
- 激活函數(activation)
- relu
- sigmoid
- tanh
- 損失(loss)
- 交叉熵損失(softmax)
- 折頁損失(SVM或Hinge)
- 優化器(optimizer)
- 帶動量學習率自適應(adam)
- 動量(momentum)
- 學習率自適應(rmsprop)
- 隨機梯度下降(sgd)
- 模型(model)
- 保存(save)
- 載入(reload)
- 繼續訓練(continue train)
- 數據集(datasets)
- 手寫數字(mnist)
- 時尚物品(Fashion-MNIST)
- 10種物體分類(cifar10)
- 100種物體分類(cifar100)
- 電影評論情感分類(imdb)
- 路透社新聞主題分類(reuters)
- 可視化(visualization)
- 損失曲線(loss)
- 準確率曲線(accuracy)