Open
Conversation
…t's make this work
… the networks and the actual algo
… the networks and the actual algo
… gaussian. still getting tensor shape mismatch errors..
… in lightninggit status!
…irichlet concentrations in what we pass to the network along with the state
…ake it work unless I reengineer everything, see #65
…t multiprocessing
…any, created portfolio_vs_market reward, cleaned up pgportfolio qvals/adv calc
danielhomola
reviewed
Feb 7, 2021
| s_cols = pd.Series(list(cols)) | ||
| ohlc_cols = s_cols[s_cols.str.contains("open|high|low|close")] | ||
| non_ohlc_cols = list(s_cols[~s_cols.str.contains("open|high|low|close")]) | ||
| vol_cols = list( |
Owner
There was a problem hiding this comment.
AFAIK, in contracts to the OHLC cols, volume cols are always the same for each instrument. OHLC cols can be suffixed with fd_whatever, hence the finicky way of fishing them out, but here we could just simply do
vol_cols = [NBarVars.volume, NBarVars.cum_volume_buy, NBarVars.cum_volume_sell]
vol_quote_cols = [
NBarVars.cum_volume_quote,
NBarVars.cum_volume_quote_buy,
NBarVars.cum_volume_quote_sell,
]
which is admittedly less sexy but reads better.. what do you reckon?
Collaborator
Author
There was a problem hiding this comment.
that's true, i thought in case any of these aren't modelled than this version might fall over in _preprocess_train_dfs(), but why wouldn't we include these - I'll change it , thanks!
Owner
There was a problem hiding this comment.
of course you're totally right! this exact same scenario just happened to me :D sorry for my stupid comment! I think your original version is the robust one!
… or what the HEKK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TimeGan implementation to develop a generator capable of providing us with good synthetic training data.
Article here; github here; bitbucket here;