predictions's People
Forkers
15027668g tmytmy kylewongaihk dovletov rib4n gsbyeon akirannz robindang0573 chaksudacity riviera2015 fdoperezi stjordanis phanirajl pvr1 najah-lshanableh john2912 jgabriellima panamantis dennispiskovatskov lrabbade niranajn006 miaolin coventryresearch markcheno 5ong18 tanglemontree chinmaysoni1999 17bce0860 mwiesenhaan smalllemur maslam misttc pureuniverse anurukn rech zhuzhenping doken-tokuyama urfinorg gitouyou afcarl warlomak atlonxp masoudj ambehata konstantinospapadopoulos darthholi lianqiann vladimat grepfruit pmcbride nmtruong93 mrchaos seanhtchoi pete21 stockscripts pawanrana kossi25 savetherhinos89 sirfragles fagan2888 benwaldner bocinfor danhnguyen123 moudhamam achicha rpatil524 caibaibai jp31415926 chocdoughnut hummans ikonushok peterthomet war3gu hi0ne virtualpeer gfngty dzhlovegithub jobsrvp gerbenvoshol antonyrusso wy6688 thisisnarayan botterbrott bensive chforest xyztlp roshanivijayan freemindtrader jsyzc2019predictions's Issues
why "n_test = 277" ?
Hey Boris,
Might be a stupid question, may I ask why set it as 277, is there any special reason or experienced value?
Thanks and best regards!
Yunfei
Predicting using future data
You have a fundamental issue with your code: you are predicting values by looking at the future!!
Predictors["open_1"] = CNHI["data"].Open.shift(1)
Predictors["open_incr"] = CNHI["data"].Open - CNHI["data"].Open.shift(1)
One of the most salient features is the open_incr
, which is the difference between the open values of the current day and the value of the next row! You are essentially using the future as a predictor for the present: it makes no sense.
methodological error
dataset = read_csv('usdinr_dataset.csv', header=0, index_col=0)
values = dataset.values
values = values.astype('float32')
scaler = MinMaxScaler(feature_range=(0, 1))
scaled = scaler.fit_transform(values)
.....u r scaling the FULL dataset here with minmax scaler instead of splitting dataset and putting away test to later scale using the transform coefficients derived from train set scaling.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.