qlib icon indicating copy to clipboard operation
qlib copied to clipboard

Enhancement and bugfix in report plots

Open qianyun210603 opened this issue 2 years ago • 2 comments

Description

  1. allow input custom benchmark return series to compare with group1.
  2. fix stratifying bug: simply using len(x) // N * i : len(x) // N * (i + 1) misses len(x) % N names at end.
  3. force colorbar in monthly ic heat map centers at 0.

Motivation and Context

  1. more convenient to group returns with index.
  2. bug fix.
  3. consider monthly ic series [0.1, -0.1, 0.1, -0.1, 0, 0.1] and [0.3, 0.1, 0.3, 0.1, 0.2, 0.3]. Apparently the former is bad strategy with unstable ic and the latter is good strategy, but if not forcing symmetric color bar, the two gives same heatmap look (except numbers in colour axis), which is not good visualisation.

How Has This Been Tested?

Generated plot locally.

Screenshots of Test Results (if appropriate):

  1. Pipeline test:
  2. Your own tests: image image

Types of changes

  • [x] Fix bugs and enhancements
  • [ ] Add new feature
  • [ ] Update documentation

qianyun210603 avatar Jan 09 '23 09:01 qianyun210603

@you-n-g would you review please?

qianyun210603 avatar Feb 27 '23 00:02 qianyun210603

any further comments? @Fivele-Li

qianyun210603 avatar Sep 07 '23 06:09 qianyun210603