Live Bitcoin MINING Session +8% In 30 Minutes ⇐ – Sentdex

Linear Regression following Sentdex's tutorials

Hello. I am trying to do some machine learning on some bitcoin data, specifically linear regression. The full code is here, but in order to plot it on a graph, I want to use the values of y (which is the values of x in 14.5 days time, so price in 14.5 days time) where I use the old actual values of y followed by the new values of y which are the predictions. In order to do this I need to find the values of X which have values for y (the predictions) and the values for x which already have the price in 14.5 days time. I performed a shift on the data, meaning some Xs have values for Y in 14.5 days time and some don't.
Why 14.5 days? As the data set is 1450 days long and I did a 0.01 negative shift. Hopefully I communicated what I was trying to say alright.
import pandas as pd import math import numpy as np from sklearn import preprocessing, svm from sklearn.model_selection import cross_validate from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression from statistics import mean import matplotlib.pyplot as plt from matplotlib import style df = pd.read_csv("coinbaseUSD_1-min_data_2014-12-01_to_2019-01-09.csv") df['date'] = pd.to_datetime(df['Timestamp'],unit='s').dt.date print("calculating...") forecast_col = 'Weighted_Price' forecast_out = int(math.ceil(0.01*len(df))) #forecast_out = 20998 = 20998 minutes = 14.5 days df['label'] = df[forecast_col].shift(-forecast_out) df = df[['date', 'Weighted_Price', 'label']] df.dropna(inplace=True) X = np.array(df['Weighted_Price'], dtype = np.float64) y = np.array(df['label'], dtype=np.float64) X_lately = X[-forecast_out:] X = X[:-forecast_out:] def best_fit_line(X, y): m = (((mean(X) * mean(y)) - mean(X*y)) / ((mean(X) * mean(X)) - mean(X*X))) c = mean(y) - (m * (mean(X))) return m, c m, c = best_fit_line(X, y) print(m, c) regression_line = [(m*values) for values in X] plt.scatter(X, y) plt.plot(X, regression_line) plt.show()

So what have I tried? The offender is this line here:
X_lately = X[-forecast_out:] X = X[:-forecast_out:]
That is what sentdex did in the video series, but I get the error: ValueError: operands could not be broadcast together with shapes (1871868,) (1892866,)
This doesn't work with:
m = (((mean(X) * mean(y)) - mean(X*y)) / ((mean(X) * mean(X)) - mean(X*X)))
due to this making the X and Ys different lengths? I'm not sure.
What am I doing wrong?
submitted by EnvironmentalPause5 to learnpython [link] [comments]

Bitcoin BTCUSD sentiment analysis graph

Thought I'd share some of the sentiment analysis compared to price that I've done on Bitcoin over the past few months.
I do this mostly for stocks, but started doing it for bitcoin a bit ago out of fun/curiosity. I am pretty happy with how well it has turned out so far. Edit: Fixed the bad price glitches from BTC-e.
It also takes a bit to load. It's a lot of data. Expect to wait about a minute for it to load the actual chart.
http://sentdex.com/bitcoin/
To save loading if you'd like, here's just an image of the current graph: http://imgur.com/0JrFHOW
submitted by sentdex to BitcoinMarkets [link] [comments]

Bitcoin sentiment analysis + any interest in Geo sentiment?

You all like to talk and opine about bitcoin very much, I like to measure your feelings.
Bitcoin sentiment analysis chart: http://sentdex.com/bitcoin/
Some of you might be familiar with it from before, but we've made some changes, including adding micropayments to view...and then removing them due to glitches as well as "micro" payments not being so micro after all...
The chart still takes a decent while to load, but we've revamped the code quite a bit to help with loading, but it still takes ~45 seconds.
Bitcoin is by far the largest topic Sentdex covers for sentiment analysis. The amount of data we collect on bitcoin is well over 10x our most popular talked about stock, which is Apple.
The goal is to use sentiment to predict price movements in Bitcoin / other stocks. Of course, many times price moves and then people get excited. This can be seen, but we've also been able to precede movements on many occasions.
Bitcoin is still a very new topic for us to cover. We've got a lot of data on it now, but we couldn't really go back in history as far for machine learning like we could with the rest of the stocks. Anyway, thought I'd share.
Curiously, I also wonder if there's any interest for people to see Geographic sentiment analysis for Bitcoin? I do geographic sentiment analysis here: http://sentdex.com/global-sentiment-analysis/
I've got things like Google and Facebook just for kicks. I'm also able to get popular words based on regions. Currently I only do this for the general sentiment chart, but I wonder too about doing this with Bitcoin. Thoughts? Might be pretty cool to see bitcoin sentiment by region.
submitted by sentdex to Bitcoin [link] [comments]

Bitcoin Trading - Relative Strength Index (RSI) Bitcoin - YouTube Bitcoin trading and Investing - Intro Cryptocurrency-predicting RNN intro - Deep Learning w ... Time Traveller's Prediction for Bitcoin Price 2019

As Bitcoin, and other cryptocurrencies gain popularity, more and more people are curious about becoming a part of it. Many people start out curious about mining Bitcoins first, but then begin to wonder about buying into the system or even trading. These first few videos will server as an intro to the possibility of trading Bitcoin. I will eventually cover investing in Bitcoin later. Symbol Instrument Name all Volume of Mentions all Overall Sentiment Recent Sentiment Rising or Falling; SP500: S&P 500 Index: 27008869: good: GME: GameStop Corp. GET NOW: sentdex – Live Bitcoin MINING Session +8% in 30 minutes – sentdex. ===== Live Bitcoin MINING Session +8% in 30 minutes is the procedure through which transactions are validated and contributed to the general public journal, called the block chain, and the means where brand-new bitcoin are launched. Anybody with access to the net as well as suitable equipment could join mining. The ... Bitcoin; London Stocks (LSE) Australian Securities (ASX) 7 Days. 30 Days. 6 months. 1 Year. All-Time. Overlay Sentiment. Volume time frame and overall sentiment time frame is determined by the current time frame of the company you are currently viewing. Change the graph's time frame to change this table's. Symbol Instrument Name ALL Volume of Mentions ALL Overall Sentiment Recent Sentiment ... Like/Comment/Subscribe Sign Up For CryptoWatch! Affiliate Link: https://cryptowat.ch/account/create?t=kevinsvenson&utm_source=kevinsvenson Cryptowatch Trading ...

[index] [47532] [8461] [26438] [15347] [13493] [20008] [26710] [17918] [22499] [14818]

Bitcoin Trading - Relative Strength Index (RSI)

Welcome to part 8 of the Deep Learning with Python, Keras, and Tensorflow series. In this tutorial, we're going to work on using a recurrent neural network t... As Bitcoin, and other cryptocurrencies gain popularity, more and more people are curious about becoming a part of it. Many people start out curious about mining Bitcoins first, but then begin to ... As Bitcoin, and other cryptocurrencies gain popularity, more and more people are curious about becoming a part of it. Many people start out curious about mining Bitcoins first, but then begin to ... Back in 2013, an anonymous figure posted on the r/Bitcoin subreddit claiming to be a time traveller from the year 2025. He made a series of predictions for the price of Bitcoin in future years ... Plotting live bitcoin price data - Tkinter GUI development series p. 9 - Duration: 17 minutes. sentdex . 5 years ago; 31,044 views; In this Python 3 with Tkinter programming tutorial, we cover ...

#