TensorFlow implements a large number of pooling layers and a complete list is available online. ([https://www.tensorflow.org/api_guides/python/nn#Pooling](https://www.tensorflow.org/api_guides/python/nn#Pooling)) In short, all the pooling operations are nothing more than a summary operation on a given region.
@@ -1006,7 +1006,7 @@ Google 于 2014 年训练了神经网络以应对 **ImageNet 大规模视觉识
![](img/cbbf2fe8-00f2-4ee3-b340-050425f20a7c.jpg)
An example of Google Deep Dreams as seen in [https://commons.wikimedia.org/wiki/File:Aurelia-aurita-3-0009.jpg](https://commons.wikimedia.org/wiki/File:Aurelia-aurita-3-0009.jpg)
[如以下所示的 Google Deep Dreams 示例](https://commons.wikimedia.org/wiki/File:Aurelia-aurita-3-0009.jpg)
@@ -152,7 +152,7 @@ An example of model architecture as seen in [https://arxiv.org/pdf/1408.5882.pdf
![](img/75e30d9a-ab59-44ab-918e-5c0dd6dd7c5a.jpg)
An example of American Dipper as seen on [https://commons.wikimedia.org/wiki/File:American_Dipper.jpg](https://commons.wikimedia.org/wiki/File:American_Dipper.jpg)
An example of macaw as seen in [https://commons.wikimedia.org/wiki/File:Blue-and-Yellow-Macaw.jpg](https://commons.wikimedia.org/wiki/File:Blue-and-Yellow-Macaw.jpg)
An example of comic classification as seen in [https://comicvine.gamespot.com/the-incredible-hulk-180-and-the-wind-howls-wendigo/4000-14667/](https://comicvine.gamespot.com/the-incredible-hulk-180-and-the-wind-howls-wendigo/4000-14667/)
For the sake of simplicity, we will use the framework TFLearn ([http://tflearn.org/](http://tflearn.org/)), which runs on top of TensorFlow. This example is part of the standard distribution and it is available at [https://github.com/tflearn/tflearn/blob/master/examples/nlp/lstm_generator_shakespeare.py](https://github.com/tflearn/tflearn/blob/master/examples/nlp/lstm_generator_shakespeare.py) . The model developed one is an RNN character-level language model where the sequences considered are sequences of characters and not words.
在本食谱中,我们将学习如何使用 RNN 预测未来的比特币价值。 关键思想是,过去观察到的值的时间顺序可以很好地预测未来的值。 对于此食谱,我们将使用 MIT 许可下的[这个页面](https://github.com/guillaume-chevalier/seq2seq-signal-prediction)上提供的代码。 给定时间间隔的比特币值通过 API 从[这里](https://www.coindesk.com/api/)下载。 这是 API 文档的一部分:
*We offer historical data from our Bitcoin Price Index through the following endpoint:* *https://api.coindesk.com/v1/bpi/historical/close.json* *By default, this will return the previous 31 days' worth of data. This endpoint accepts the following optional parameters:* *?index=[USD/CNY]The index to return data for. Defaults to USD.* *?currency=<VALUE>The currency to return the data in, specified in ISO 4217 format. Defaults to USD.* *?start=<VALUE>&end=<VALUE> Allows data to be returned for a specific date range. Must be listed as a pair of start and end parameters, with dates supplied in the YYYY-MM-DD format, e.g. 2013-09-01 for September 1st, 2013.* *?for=yesterday Specifying this will return a single value for the previous day. Overrides the start/end parameter.* *Sample Request:* [https://api.coindesk.com/v1/bpi/historical/close.json?start=2013-09-01&end=2013-09-05](https://api.coindesk.com/v1/bpi/historical/close.json?start=2013-09-01&end=2013-09-05) *Sample JSON Response:* {"bpi":{"2013-09-01":128.2597,"2013-09-02":127.3648,"2013-09-03":127.5915,"2013-09-04":120.5738,"2013-09-05":120.5333},"disclaimer":"This data was produced from the CoinDesk Bitcoin Price Index. BPI value data returned as USD.","time":{"updated":"Sep 6, 2013 00:03:00 UTC","updatedISO":"2013-09-06T00:03:00+00:00"}}
```py
We offer historical data from our Bitcoin Price Index through the following endpoint: https://api.coindesk.com/v1/bpi/historical/close.json By default, this will return the previous 31 days' worth of data. This endpoint accepts the following optional parameters: ?index=[USD/CNY]The index to return data for. Defaults to USD. ?currency=<VALUE>The currency to return the data in, specified in ISO 4217 format. Defaults to USD. ?start=<VALUE>&end=<VALUE> Allows data to be returned for a specific date range. Must be listed as a pair of start and end parameters, with dates supplied in the YYYY-MM-DD format, e.g. 2013-09-01 for September 1st, 2013. ?for=yesterday Specifying this will return a single value for the previous day. Overrides the start/end parameter. Sample Request: https://api.coindesk.com/v1/bpi/historical/close.json?start=2013-09-01&end=2013-09-05 Sample JSON Response: {"bpi":{"2013-09-01":128.2597,"2013-09-02":127.3648,"2013-09-03":127.5915,"2013-09-04":120.5738,"2013-09-05":120.5333},"disclaimer":"This data was produced from the CoinDesk Bitcoin Price Index. BPI value data returned as USD.","time":{"updated":"Sep 6, 2013 00:03:00 UTC","updatedISO":"2013-09-06T00:03:00+00:00"}}