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

Add knowledge module and tune summarizeTask #1582

Merged

Conversation

Fivele-Li
Copy link
Contributor

  • add KnowledgeExperiment add KnowledgeBase;
  • add knowledge associate prompts to template;

Description

Motivation and Context

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:
  2. Your own tests:

Types of changes

  • Fix bugs
  • Add new feature
  • Update documentation

* add KnowledgeExperiment add KnowledgeBase;
* add knowledge associate prompts to template;
@github-actions github-actions bot added the waiting for triage Cannot auto-triage, wait for triage. label Jul 4, 2023
qlib/finco/knowledge.py Show resolved Hide resolved
qlib/finco/knowledge.py Outdated Show resolved Hide resolved
qlib/finco/knowledge.py Show resolved Hide resolved
* add Topic to summarize knowledge;
* add recorder's metric to summarizeTask;
def load(self, exp_name, rec_id=None):
recs = []
self.exp = R.get_exp(experiment_name=exp_name)
for r in self.exp.list_recorders(rtype=self.exp.RT_L):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Qlib have method to get record direclty.

Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe get_recorder

self.logger = FinCoLog()

def load(self, **kwargs):
"""
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not convinced why the load method is necesary.

@Fivele-Li Fivele-Li merged commit 86ffd17 into microsoft:finco Jul 6, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for triage Cannot auto-triage, wait for triage.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants