1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-19 10:24:35 +08:00

Fix the Errors/Warnings when building Qlib's documentation (#1381)

* Fix the Errors/Warnings when building Qlib's documentation

* Fix

* Fix

* Empty

* Test CI

* Add doc compiling checking to CI

* Fix

* Tries to be consistent with Makefile

Co-authored-by: you-n-g <you-n-g@users.noreply.github.com>
This commit is contained in:
Maxim Smolskiy
2022-12-05 04:29:03 +03:00
committed by GitHub
parent 6a47416a2d
commit 5b73b80293
26 changed files with 127 additions and 78 deletions

View File

@@ -96,9 +96,11 @@ def indicator_analysis(df, method="mean"):
index: Index(datetime)
method : str, optional
statistics method of pa/ffr, by default "mean"
- if method is 'mean', count the mean statistical value of each trade indicator
- if method is 'amount_weighted', count the deal_amount weighted mean statistical value of each trade indicator
- if method is 'value_weighted', count the value weighted mean statistical value of each trade indicator
Note: statistics method of pos is always "mean"
Returns
@@ -154,6 +156,7 @@ def backtest_daily(
E.g.
.. code-block:: python
# dict
strategy = {
"class": "TopkDropoutStrategy",
@@ -180,7 +183,6 @@ def backtest_daily(
# 3) specify module path with class name
# - "a.b.c.ClassName" getattr(<a.b.c.module>, "ClassName")() will be used.
executor : Union[str, dict, BaseExecutor]
for initializing the outermost executor.
benchmark: str