aarivan / Bayesian-Regression-to-Predict-Bitcoin-Price-Variations

predicting the price variations of bitcoin, a virtual cryptographic currency. These predictions could be used as the foundation of a bitcoin trading strategy. To make these predictions, you will have to familiarize yourself with a machine learning technique, Bayesian Regression, and implement this technique in Python
25 stars 13 forks source link

Running in Spyder. Please Help! #2

Open Akashgarg08 opened 6 years ago

Akashgarg08 commented 6 years ago

Error - print "The MSE is %f" % (MSE) File "", line 154 print "The MSE is %f" % (MSE) ^ SyntaxError: invalid syntax

Tried Solution :-

if done this - print ("The MSE is %f" % MSE) then error -

( for i in xrange(0,len(train1_90.index)) : trainDeltaP90 = np.append(trainDeltaP90, computeDelta(weight,train2_90.iloc[i],train1_90)) Traceback (most recent call last):

File "", line 1, in for i in xrange(0,len(train1_90.index)) :

NameError: name 'xrange' is not defined )

Please Help!

esquire900 commented 6 years ago

This script is python2, to convert it to python3, run this in your commandline:

2to3 bitcoin_ab.py -w