Skip to content

[807] Move the REG_CONSTANT/EPS to constant.py.#811

Merged
you-n-g merged 3 commits intomicrosoft:mainfrom
ChiahungTai:807-constant
Jan 9, 2022
Merged

[807] Move the REG_CONSTANT/EPS to constant.py.#811
you-n-g merged 3 commits intomicrosoft:mainfrom
ChiahungTai:807-constant

Conversation

@ChiahungTai
Copy link
Collaborator

@ChiahungTai ChiahungTai commented Jan 7, 2022

Description

Motivation and Context

After check the global variables in config.py, only REG_CONSTANT is speard around the files.
So I move the REG_CONSTANT to constant.py.
EPS(1e-12) is also suitable to move to constant.

How Has This Been Tested?

  • Pass the test by running: pytest qlib/tests/test_all_pipeline.py under upper directory of qlib.
  • If you are adding a new feature, test on your own test scripts.

Screenshots of Test Results (if appropriate):

  1. Pipeline test:

Screen Shot 2022-01-07 at 10 45 40 AM

  1. Your own tests:

Types of changes

  • Fix bugs
  • Add new feature
  • Update documentation

@ChiahungTai ChiahungTai changed the title [807] Move the REG_CONSTANT to constant.py. [807] Move the REG_CONSTANT/EPS to constant.py. Jan 7, 2022
@you-n-g
Copy link
Collaborator

you-n-g commented Jan 9, 2022

It looks great! Thanks so much!

@you-n-g you-n-g merged commit 184ce34 into microsoft:main Jan 9, 2022
@you-n-g you-n-g added the enhancement New feature or request label Jan 12, 2022
@ChiahungTai ChiahungTai deleted the 807-constant branch January 25, 2022 01:27
qianyun210603 pushed a commit to qianyun210603/qlib that referenced this pull request Mar 23, 2023
* [807] Move the REG_CONSTANT to constant.py.

* import REG_US.

* Move EPS to constant.py.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants