Cryptocurrency Price Prediction Using Deep Learning te TensorFlow – nicholastsmith

Te this postbode, deep learning neural networks are applied to the problem of predicting Bitcoin and other cryptocurrency prices. A chartist treatment is taken to predict future values, the network makes predictions based on historical trends te the price and trading volume. A 1D convolutional neural network (CNN) converts an input volume consisting of historical prices from several major cryptocurrencies into future price information.

To facilitate rapid prediction, pricing information is queried using the web API of Poloniex. A URL is provided to the API and a JSON containing the historical price information of a specified cryptocurrency is returned.

After execution, D[i] is a pandas Dataframe containing historical price gegevens for the cryptocurrency cl[i].

Fresh samples are constructed that pair sequences of samples with the subsequent samples. Ter this way, a regression proefje can be gezond which predicts time periods into the future given gegevens from the past . A helper class which accomplishes this goes after.

The above class is applied to the llamativo time sequence gegevens to obtain the desired sample and target matrices.

Ter the above code, the shapes of and are spil . A holdout period is maintained to access the voorstelling of the network. The number of time units ter the period is managed by HP.

Related movie: How to Place a Zekering Loss On Poloniex

The TFANN module is used to create an industrial neural network. TFANN can be installed using pip with the following guideline.

Related movie: How to transfer bitcoin from Gdax to Poloniex

A 1D convolution neural network is constructed which converts the input volume of historical gegevens into predictions. The past NPS samples are transformed into a prediction about the next NFS samples. The C1d option ter the network architecture specification indicates 1-dimensional convolution.

The architecture of the CNN is shown below ter Figure 1. The top set of parenthesized values indicate the filterzakje dimension while the bottom denote the stride.

Figure 1: 1D CNN Architecture

Related movie: How to Trade Pascalcoin on Poloniex for profit

More information and the source code for the ANNR class are available on GitHub.

Using the above network, the next NFS time steps can be predicted. Thesis predictions can te turn be used for subsequent predictions so that prediction can be made an arbitrary amount into the future. Code to accomplish this goes after.

Using PredictFull, the outputs of intermediate layers ter the network can be visualized. Figure Two shows an input sample spil it is transformed by subsequent layers of the network.

Figure Two: Intermediate Layer Outputs

Related movie: How to Place a Zekering Loss On Poloniex

Notice how te subsequent layers the input gegevens is diminished from NPS to NFS time units.

Related movie: Everything You Need To Know About The Fresh Poloniex Verification Policy

The result of the predictions can be visualized using matplotlib.

Related movie: Trading Cryptocurrencies with my bot on Poloniex

The resulting plot is shown below ter Figure Three.

Leave a Reply

Your email address will not be published. Required fields are marked *