llsourcell / predicting_stock_prices Goto Github PK
View Code? Open in Web Editor NEWThis is the coding challenge for "Predicting Stock Prices" by @Sirajology on Youtube
This is the coding challenge for "Predicting Stock Prices" by @Sirajology on Youtube
Does this code support Python3? I'm running on WSL (Ubuntu), and it is stalling at the svr_poly.fit(dates,prices)
line.
It has been sitting here for 4 hours. I have also tried the other issues here, such as chaning the first line in the predict_prices
function to be dates = np.reshape(dates, (-1, 1))
. I inserted print statements after each line, and that's how I know which line it's holding up on.
Traceback (most recent call last):
File "farhaan.py", line 45, in
get_data('aapl.csv')
File "farhaan.py", line 19, in get_data
dates.append(int(row[0].split('-')[0]))
ValueError: invalid literal for int() with base 10: '14:54'
Help pls
predicting_stock_prices git:(master) ✗ python demo.py
Traceback (most recent call last):
File "demo.py", line 7, in <module>
plt.switch_backend('newbackend')
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/pyplot.py", line 122, in switch_backend
matplotlib.use(newbackend, warn=False, force=True)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/__init__.py", line 1149, in use
name = validate_backend(arg)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/rcsetup.py", line 146, in validate_backend
return _validate_standard_backends(s)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/rcsetup.py", line 57, in __call__
% (self.key, s, self.valid.values()))
ValueError: Unrecognized backend string "newbackend": valid strings are ['pdf', 'pgf', 'Qt4Agg', 'GTK', 'GTKAgg', 'ps', 'agg', 'cairo', 'MacOSX', 'GTKCairo', 'WXAgg', 'template', 'TkAgg', 'GTK3Cairo', 'GTK3Agg', 'svg', 'WebAgg', 'CocoaAgg', 'emf', 'gdk', 'WX']
I got no output, no error message running demo.py on Win7/Anaconda even while trying alternative backends. Any suggestions? I'm so disappointed now...deeply depressed.
Hi,
I'm new to python and I have copied and pasted the demo.py code to a software called jupyter notebook.
I downloaded the spreadsheet from apple as demonstrated in the video. However I keep getting an error as such:
No such file or directory: 'aapl.csv'
Is there something wrong?
In '##Overview', the link that is supposed lead to the Google Finance dataset, links to the SVM wikipedia page instead.
I copied the file and run it in the kernel. It is showing error at line 14 that list out of index range. Why that's so?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.