Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to synthetic returns, TO limited model #26

Merged
merged 3 commits into from
Nov 7, 2023
Merged

Conversation

phschiele
Copy link
Collaborator

@phschiele phschiele commented Oct 26, 2023

I've changed the synthetic returns so we can directly specify the information ratio, and the sigma of the noise is then determined from that.

@tschm tschm requested a review from kasperjo October 27, 2023 02:47
Copy link
Collaborator

@kasperjo kasperjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is nice!

Comment on lines +183 to +203
@dataclass
class Timing:
solver: float
cvxpy: float
other: float

@property
def total(self):
return self.solver + self.cvxpy + self.other

@classmethod
def get_timing(
cls, start_time: float, end_time: float, problem: cp.Problem | None
) -> Timing:
if problem:
solver_time = problem.solver_stats.solve_time
cvxpy_time = problem.compilation_time
other_time = end_time - start_time - solver_time - cvxpy_time
return cls(solver_time, cvxpy_time, other_time)
else:
return cls(0, 0, 0)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kasperjo @tschm I've added a timer so we can create the stacked area chart for the backtest. It required returning the problem from the markowitz function. I don't think this is a problem, though.

@kasperjo kasperjo merged commit ecdee4d into main Nov 7, 2023
2 checks passed
@kasperjo kasperjo deleted the more-experiments branch November 7, 2023 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants