Code Monkey home page Code Monkey logo

rlquant's People

Contributors

yuriak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rlquant's Issues

The train_reward is always nan.

Hello,
When I run PairsTradingTutorial.ipynb to trade, the train_reward is always nan, as follows:

train_reward: nan
train_reward: nan
train_reward: nan
train_reward: nan
...

I couldn't find what's wrong with the code,could you please help me?
By the way, I wonder the version of packages we used is different, What versions of packages are you using now ?

Thank you very much.

Exception has occurred: ValueError

all the input array dimensions except for the concatenation axis must match exactly
in:
def _get_normalized_state(self):
...
return np.concatenate((state, self.current_weight[:-1][:, None]), axis=1)

Any idea?

Pairs Trading Forex Question

Hello,
Can I still use the PairsTradingTutorial.ipynb to trade some other dataset? I have a dataset of a forex pair which contains O H L C prices and Volume (I can add also some indicators), and I wonder if the example that you're giving in thtat jupyter notebook will work for this dataset.

Thank you!

RuntimeError: t() expects a 2D tensor, but self is 3D`

Hi,

Running EnvtestStock_RPG.ipynb I get the following error:
`---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
in
14 state=next_state
15 if env.pointer%64==0:
---> 16 agent.train()
17 pv,pp,pw=env.get_summary()
18 total_pv=pv.sum(axis=1)

in train(self)
73 def train(self):
74 self.optimizer.zero_grad()
---> 75 s = torch.stack(self.s_buffer).t()
76 s_next = torch.stack(self.s_next_buffer).t()
77 r = torch.stack(self.r_buffer).t()

RuntimeError: t() expects a 2D tensor, but self is 3D`

In particular, self.s_buffer is a list of 54 tensors, each of size: torch.Size([6, 36])

Do you know what might be causing it?

Thank you in advance

EDIT: my torch version is 1.0.1

data folder missing

there is no data folder and pkl files supplied. From where these can be downloaded?

Great

This is great, it just needs a description of the data collection and processing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.