jankrepl / deepdow

Portfolio optimization with deep learning.
https://deepdow.readthedocs.io
Apache License 2.0
874 stars 136 forks source link

Rescale allocation layer #102

Open jankrepl opened 3 years ago

jankrepl commented 3 years ago

Numerical allocation layers (e.g. NumericalMarkowitz) might generate weights that do not satisfy the constraints. There are the following reasons for it

It can become an issue when using a loss that is not defined for certain values of w.

The cleanest solution would be to have a new allocation layer that would be called after the original allocation layer. Ideally, it would do the following

jankrepl commented 3 years ago

Related to #41