mirror of
https://github.com/microsoft/qlib.git
synced 2026-06-21 13:11:42 +08:00
Compare commits
2 Commits
optimize_w
...
finco
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5af99e1d3f | ||
|
|
70a066baf8 |
@@ -13,7 +13,7 @@ class Config(SingletonBaseClass):
|
||||
|
||||
def __init__(self):
|
||||
self.use_azure = os.getenv("USE_AZURE") == "True"
|
||||
self.temperature = 0.5 if os.getenv("TEMPERATURE") is None else float(os.getenv("TEMPERATURE"))
|
||||
self.temperature = 0 if os.getenv("TEMPERATURE") is None else float(os.getenv("TEMPERATURE"))
|
||||
self.max_tokens = 800 if os.getenv("MAX_TOKENS") is None else int(os.getenv("MAX_TOKENS"))
|
||||
|
||||
self.openai_api_key = os.getenv("OPENAI_API_KEY")
|
||||
|
||||
269
qlib/finco/demo_081e403e5712.yml
Normal file
269
qlib/finco/demo_081e403e5712.yml
Normal file
File diff suppressed because one or more lines are too long
281
qlib/finco/demo_3a6439665713.yml
Normal file
281
qlib/finco/demo_3a6439665713.yml
Normal file
File diff suppressed because one or more lines are too long
235
qlib/finco/demo_c15e087a5706.yml
Normal file
235
qlib/finco/demo_c15e087a5706.yml
Normal file
File diff suppressed because one or more lines are too long
307
qlib/finco/demo_failed.yml
Normal file
307
qlib/finco/demo_failed.yml
Normal file
File diff suppressed because one or more lines are too long
279
qlib/finco/demo_milestone.yml
Normal file
279
qlib/finco/demo_milestone.yml
Normal file
File diff suppressed because one or more lines are too long
1
qlib/finco/prompt_cache0719.json
Normal file
1
qlib/finco/prompt_cache0719.json
Normal file
File diff suppressed because one or more lines are too long
2
qlib/finco/record.txt
Normal file
2
qlib/finco/record.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
conda activate qlib38
|
||||
python cli_learn.py "build an A-share stock market daily portfolio in quantitative investment and minimize the maximum drawdown while maintaining return."
|
||||
4
tests/finco/knowledge/execute/storage.yml
Normal file
4
tests/finco/knowledge/execute/storage.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
- content: '[Success]: XXXX, the results looks reasonable # Keywords: supervised
|
||||
learning, data'
|
||||
- content: '[Fail]: XXXX, it raise memory error due to YYYYY # Keywords: supervised
|
||||
learning, data'
|
||||
1
tests/finco/knowledge/finance/storage.yml
Normal file
1
tests/finco/knowledge/finance/storage.yml
Normal file
@@ -0,0 +1 @@
|
||||
[]
|
||||
12316
tests/finco/knowledge/infrastructure/storage.yml
Normal file
12316
tests/finco/knowledge/infrastructure/storage.yml
Normal file
File diff suppressed because it is too large
Load Diff
@@ -9,6 +9,7 @@ from qlib.finco.task import SummarizeTask
|
||||
from qlib.finco.workflow import WorkflowContextManager
|
||||
from qlib.finco.llm import APIBackend
|
||||
from qlib.finco.workflow import WorkflowManager
|
||||
from qlib.finco.knowledge import PracticeKnowledge, YamlStorage
|
||||
|
||||
load_dotenv(verbose=True, override=True)
|
||||
|
||||
@@ -61,6 +62,9 @@ class TestSummarize(unittest.TestCase):
|
||||
resp = task.get_info_from_file("")
|
||||
print(resp)
|
||||
|
||||
def test_practice_knowledge(self):
|
||||
pk = PracticeKnowledge(YamlStorage(path.joinpath(Path.cwd().joinpath("knowledge")/f"{self.KT_PRACTICE}/{YamlStorage.DEFAULT_NAME}")))
|
||||
pk.add(["test1", "test2"])
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user