cnhkmcp 2.1.2__py3-none-any.whl → 2.1.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cnhkmcp-2.1.2.dist-info → cnhkmcp-2.1.3.dist-info}/METADATA +1 -1
- cnhkmcp-2.1.3.dist-info/RECORD +6 -0
- cnhkmcp-2.1.3.dist-info/top_level.txt +1 -0
- cnhkmcp/__init__.py +0 -125
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/README.md +0 -38
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/ace.log +0 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/config.json +0 -6
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/get_knowledgeBase_tool/ace_lib.py +0 -1510
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/get_knowledgeBase_tool/fetch_all_datasets.py +0 -157
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/get_knowledgeBase_tool/fetch_all_documentation.py +0 -132
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/get_knowledgeBase_tool/fetch_all_operators.py +0 -99
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/get_knowledgeBase_tool/helpful_functions.py +0 -180
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/icon.ico +0 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/icon.png +0 -0
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/knowledge/test.txt +0 -1
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/main.py +0 -576
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/process_knowledge_base.py +0 -281
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/rag_engine.py +0 -408
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/requirements.txt +0 -7
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242/run.bat +0 -3
- cnhkmcp/untracked/AI/321/206/320/261/320/234/321/211/320/255/320/262/321/206/320/237/320/242/321/204/342/225/227/342/225/242//321/211/320/266/320/246/321/206/320/274/320/261/321/210/342/224/220/320/240/321/210/320/261/320/234/321/206/320/231/320/243/321/205/342/225/235/320/220/321/206/320/230/320/241.py +0 -265
- cnhkmcp/untracked/APP/.gitignore +0 -32
- cnhkmcp/untracked/APP/MODULAR_STRUCTURE.md +0 -112
- cnhkmcp/untracked/APP/README.md +0 -309
- cnhkmcp/untracked/APP/Tranformer/Transformer.py +0 -4985
- cnhkmcp/untracked/APP/Tranformer/ace.log +0 -0
- cnhkmcp/untracked/APP/Tranformer/ace_lib.py +0 -1510
- cnhkmcp/untracked/APP/Tranformer/helpful_functions.py +0 -180
- cnhkmcp/untracked/APP/Tranformer/output/Alpha_candidates.json +0 -2421
- cnhkmcp/untracked/APP/Tranformer/output/Alpha_candidates_/321/207/320/264/342/225/221/321/204/342/225/233/320/233.json +0 -654
- cnhkmcp/untracked/APP/Tranformer/output/Alpha_generated_expressions_error.json +0 -1034
- cnhkmcp/untracked/APP/Tranformer/output/Alpha_generated_expressions_success.json +0 -444
- cnhkmcp/untracked/APP/Tranformer/output/Alpha_generated_expressions_/321/207/320/264/342/225/221/321/204/342/225/233/320/233/321/205/320/237/320/277/321/207/320/253/342/224/244/321/206/320/236/320/265/321/210/342/225/234/342/225/234/321/205/320/225/320/265Machine_lib.json +0 -22
- cnhkmcp/untracked/APP/Tranformer/parsetab.py +0 -60
- cnhkmcp/untracked/APP/Tranformer/template_summary.txt +0 -3182
- cnhkmcp/untracked/APP/Tranformer/transformer_config.json +0 -7
- cnhkmcp/untracked/APP/Tranformer/validator.py +0 -889
- cnhkmcp/untracked/APP/ace.log +0 -69
- cnhkmcp/untracked/APP/ace_lib.py +0 -1510
- cnhkmcp/untracked/APP/blueprints/__init__.py +0 -6
- cnhkmcp/untracked/APP/blueprints/feature_engineering.py +0 -347
- cnhkmcp/untracked/APP/blueprints/idea_house.py +0 -221
- cnhkmcp/untracked/APP/blueprints/inspiration_house.py +0 -432
- cnhkmcp/untracked/APP/blueprints/paper_analysis.py +0 -570
- cnhkmcp/untracked/APP/custom_templates/templates.json +0 -1257
- cnhkmcp/untracked/APP/give_me_idea/BRAIN_Alpha_Template_Expert_SystemPrompt.md +0 -400
- cnhkmcp/untracked/APP/give_me_idea/ace_lib.py +0 -1510
- cnhkmcp/untracked/APP/give_me_idea/alpha_data_specific_template_master.py +0 -252
- cnhkmcp/untracked/APP/give_me_idea/fetch_all_datasets.py +0 -157
- cnhkmcp/untracked/APP/give_me_idea/fetch_all_operators.py +0 -99
- cnhkmcp/untracked/APP/give_me_idea/helpful_functions.py +0 -180
- cnhkmcp/untracked/APP/give_me_idea/what_is_Alpha_template.md +0 -11
- cnhkmcp/untracked/APP/helpful_functions.py +0 -180
- cnhkmcp/untracked/APP/hkSimulator/ace_lib.py +0 -1497
- cnhkmcp/untracked/APP/hkSimulator/autosimulator.py +0 -447
- cnhkmcp/untracked/APP/hkSimulator/helpful_functions.py +0 -180
- cnhkmcp/untracked/APP/mirror_config.txt +0 -20
- cnhkmcp/untracked/APP/operaters.csv +0 -129
- cnhkmcp/untracked/APP/requirements.txt +0 -53
- cnhkmcp/untracked/APP/run_app.bat +0 -28
- cnhkmcp/untracked/APP/run_app.sh +0 -34
- cnhkmcp/untracked/APP/setup_tsinghua.bat +0 -39
- cnhkmcp/untracked/APP/setup_tsinghua.sh +0 -43
- cnhkmcp/untracked/APP/simulator/alpha_submitter.py +0 -404
- cnhkmcp/untracked/APP/simulator/simulator_wqb.py +0 -618
- cnhkmcp/untracked/APP/ssrn-3332513.pdf +6 -109201
- cnhkmcp/untracked/APP/static/brain.js +0 -589
- cnhkmcp/untracked/APP/static/decoder.js +0 -1540
- cnhkmcp/untracked/APP/static/feature_engineering.js +0 -1729
- cnhkmcp/untracked/APP/static/idea_house.js +0 -937
- cnhkmcp/untracked/APP/static/inspiration.js +0 -465
- cnhkmcp/untracked/APP/static/inspiration_house.js +0 -868
- cnhkmcp/untracked/APP/static/paper_analysis.js +0 -390
- cnhkmcp/untracked/APP/static/script.js +0 -3082
- cnhkmcp/untracked/APP/static/simulator.js +0 -597
- cnhkmcp/untracked/APP/static/styles.css +0 -3127
- cnhkmcp/untracked/APP/static/usage_widget.js +0 -508
- cnhkmcp/untracked/APP/templates/alpha_inspector.html +0 -511
- cnhkmcp/untracked/APP/templates/feature_engineering.html +0 -960
- cnhkmcp/untracked/APP/templates/idea_house.html +0 -564
- cnhkmcp/untracked/APP/templates/index.html +0 -932
- cnhkmcp/untracked/APP/templates/inspiration_house.html +0 -861
- cnhkmcp/untracked/APP/templates/paper_analysis.html +0 -91
- cnhkmcp/untracked/APP/templates/simulator.html +0 -343
- cnhkmcp/untracked/APP/templates/transformer_web.html +0 -580
- cnhkmcp/untracked/APP/usage.md +0 -351
- cnhkmcp/untracked/APP//321/207/342/225/235/320/250/321/205/320/230/320/226/321/204/342/225/225/320/220/321/211/320/221/320/243/321/206/320/261/320/265/ace_lib.py +0 -1510
- cnhkmcp/untracked/APP//321/207/342/225/235/320/250/321/205/320/230/320/226/321/204/342/225/225/320/220/321/211/320/221/320/243/321/206/320/261/320/265/brain_alpha_inspector.py +0 -712
- cnhkmcp/untracked/APP//321/207/342/225/235/320/250/321/205/320/230/320/226/321/204/342/225/225/320/220/321/211/320/221/320/243/321/206/320/261/320/265/helpful_functions.py +0 -180
- cnhkmcp/untracked/APP//321/210/342/224/220/320/240/321/210/320/261/320/234/321/206/320/231/320/243/321/205/342/225/235/320/220/321/206/320/230/320/241.py +0 -2456
- cnhkmcp/untracked/arXiv_API_Tool_Manual.md +0 -490
- cnhkmcp/untracked/arxiv_api.py +0 -229
- cnhkmcp/untracked/forum_functions.py +0 -998
- cnhkmcp/untracked/mcp/321/206/320/246/320/227/321/204/342/225/227/342/225/242/321/210/320/276/342/225/221/321/205/320/255/320/253/321/207/320/231/320/2302_/321/205/320/266/320/222/321/206/320/256/320/254/321/205/320/236/320/257/321/207/320/231/320/230/321/205/320/240/320/277/321/205/320/232/320/270/321/204/342/225/225/320/235/321/204/342/225/221/320/226/321/206/342/225/241/320/237/321/210/320/267/320/230/321/205/320/251/320/270/321/205/342/226/221/342/226/222/321/210/320/277/320/245/321/210/342/224/220/320/251/321/204/342/225/225/320/272/forum_functions.py +0 -407
- cnhkmcp/untracked/mcp/321/206/320/246/320/227/321/204/342/225/227/342/225/242/321/210/320/276/342/225/221/321/205/320/255/320/253/321/207/320/231/320/2302_/321/205/320/266/320/222/321/206/320/256/320/254/321/205/320/236/320/257/321/207/320/231/320/230/321/205/320/240/320/277/321/205/320/232/320/270/321/204/342/225/225/320/235/321/204/342/225/221/320/226/321/206/342/225/241/320/237/321/210/320/267/320/230/321/205/320/251/320/270/321/205/342/226/221/342/226/222/321/210/320/277/320/245/321/210/342/224/220/320/251/321/204/342/225/225/320/272/platform_functions.py +0 -2415
- cnhkmcp/untracked/mcp/321/206/320/246/320/227/321/204/342/225/227/342/225/242/321/210/320/276/342/225/221/321/205/320/255/320/253/321/207/320/231/320/2302_/321/205/320/266/320/222/321/206/320/256/320/254/321/205/320/236/320/257/321/207/320/231/320/230/321/205/320/240/320/277/321/205/320/232/320/270/321/204/342/225/225/320/235/321/204/342/225/221/320/226/321/206/342/225/241/320/237/321/210/320/267/320/230/321/205/320/251/320/270/321/205/342/226/221/342/226/222/321/210/320/277/320/245/321/210/342/224/220/320/251/321/204/342/225/225/320/272/user_config.json +0 -31
- cnhkmcp/untracked/mcp/321/206/320/246/320/227/321/204/342/225/227/342/225/242/321/210/320/276/342/225/221/321/205/320/255/320/253/321/207/320/231/320/2302_/321/205/320/266/320/222/321/206/320/256/320/254/321/205/320/236/320/257/321/207/320/231/320/230/321/205/320/240/320/277/321/205/320/232/320/270/321/204/342/225/225/320/235/321/204/342/225/221/320/226/321/206/342/225/241/320/237/321/210/320/267/320/230/321/205/320/251/320/270/321/205/342/226/221/342/226/222/321/210/320/277/320/245/321/210/342/224/220/320/251/321/204/342/225/225/320/272//321/210/320/276/320/271AI/321/210/320/277/342/225/227/321/210/342/224/220/320/251/321/204/342/225/225/320/272/321/206/320/246/320/227/321/206/320/261/320/263/321/206/320/255/320/265/321/205/320/275/320/266/321/204/342/225/235/320/252/321/204/342/225/225/320/233/321/210/342/225/234/342/225/234/321/206/342/225/241/320/237/321/210/320/267/320/230/321/205/320/251/320/270.md +0 -101
- cnhkmcp/untracked/mcp/321/206/320/246/320/227/321/204/342/225/227/342/225/242/321/210/320/276/342/225/221/321/205/320/255/320/253/321/207/320/231/320/2302_/321/205/320/266/320/222/321/206/320/256/320/254/321/205/320/236/320/257/321/207/320/231/320/230/321/205/320/240/320/277/321/205/320/232/320/270/321/204/342/225/225/320/235/321/204/342/225/221/320/226/321/206/342/225/241/320/237/321/210/320/267/320/230/321/205/320/251/320/270/321/205/342/226/221/342/226/222/321/210/320/277/320/245/321/210/342/224/220/320/251/321/204/342/225/225/320/272//321/211/320/225/320/235/321/207/342/225/234/320/276/321/205/320/231/320/235/321/210/342/224/220/320/240/321/210/320/261/320/234/321/206/320/230/320/241_/321/205/320/276/320/231/321/210/320/263/320/225/321/205/342/224/220/320/225/321/210/320/266/320/221/321/204/342/225/233/320/255/321/210/342/225/241/320/246/321/205/320/234/320/225.py +0 -190
- cnhkmcp/untracked/platform_functions.py +0 -2886
- cnhkmcp/untracked/sample_mcp_config.json +0 -11
- cnhkmcp/untracked/user_config.json +0 -31
- cnhkmcp/untracked//321/207/320/264/342/225/221/321/204/342/225/233/320/233/321/205/320/237/320/222/321/210/320/220/320/223/321/206/320/246/320/227/321/206/320/261/320/263_BRAIN_Alpha_Test_Requirements_and_Tips.md +0 -202
- cnhkmcp/untracked//321/207/320/264/342/225/221/321/204/342/225/233/320/233/321/205/342/225/226/320/265/321/204/342/225/234/320/254/321/206/342/225/241/320/221_Alpha_explaination_workflow.md +0 -56
- cnhkmcp/untracked//321/207/320/264/342/225/221/321/204/342/225/233/320/233/321/205/342/225/226/320/265/321/204/342/225/234/320/254/321/206/342/225/241/320/221_BRAIN_6_Tips_Datafield_Exploration_Guide.md +0 -194
- cnhkmcp/untracked//321/207/320/264/342/225/221/321/204/342/225/233/320/233/321/205/342/225/226/320/265/321/204/342/225/234/320/254/321/206/342/225/241/320/221_BRAIN_Alpha_Improvement_Workflow.md +0 -101
- cnhkmcp/untracked//321/207/320/264/342/225/221/321/204/342/225/233/320/233/321/205/342/225/226/320/265/321/204/342/225/234/320/254/321/206/342/225/241/320/221_Dataset_Exploration_Expert_Manual.md +0 -436
- cnhkmcp/untracked//321/207/320/264/342/225/221/321/204/342/225/233/320/233/321/205/342/225/226/320/265/321/204/342/225/234/320/254/321/206/342/225/241/320/221_daily_report_workflow.md +0 -128
- cnhkmcp/untracked//321/211/320/225/320/235/321/207/342/225/234/320/276/321/205/320/231/320/235/321/210/342/224/220/320/240/321/210/320/261/320/234/321/206/320/230/320/241_/321/205/320/276/320/231/321/210/320/263/320/225/321/205/342/224/220/320/225/321/210/320/266/320/221/321/204/342/225/233/320/255/321/210/342/225/241/320/246/321/205/320/234/320/225.py +0 -190
- cnhkmcp-2.1.2.dist-info/RECORD +0 -111
- cnhkmcp-2.1.2.dist-info/top_level.txt +0 -1
- {cnhkmcp-2.1.2.dist-info → cnhkmcp-2.1.3.dist-info}/WHEEL +0 -0
- {cnhkmcp-2.1.2.dist-info → cnhkmcp-2.1.3.dist-info}/entry_points.txt +0 -0
- {cnhkmcp-2.1.2.dist-info → cnhkmcp-2.1.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
name,category,description
|
|
2
|
-
add,Arithmetic,"Add all inputs (at least 2 inputs required). If filter = true, filter all input NaN to 0 before adding"
|
|
3
|
-
exp,Arithmetic,Natural exponential function: e^x
|
|
4
|
-
multiply,Arithmetic,Multiply all inputs. At least 2 inputs are required. Filter sets the NaN values to 1
|
|
5
|
-
sign,Arithmetic,if input = NaN; return NaN
|
|
6
|
-
subtract,Arithmetic,"x-y. If filter = true, filter all input NaN to 0 before subtracting"
|
|
7
|
-
pasteurize,Arithmetic,Set to NaN if x is INF or if the underlying instrument is not in the Alpha universe. This operator may help reduce outliers.
|
|
8
|
-
log,Arithmetic,Natural logarithm. For example: Log(high/low) uses natural logarithm of high/low ratio as stock weights.
|
|
9
|
-
purify,Arithmetic,"Clear infinities (+inf, -inf) by replacing with NaN"
|
|
10
|
-
arc_tan,Arithmetic,This operator does inverse tangent of input
|
|
11
|
-
max,Arithmetic,Maximum value of all inputs. At least 2 inputs are required
|
|
12
|
-
arc_sin,Arithmetic,If -1 <= x <= 1: arcsin(x); else NaN
|
|
13
|
-
to_nan,Arithmetic,Convert value to NaN or NaN to value if reverse=true
|
|
14
|
-
abs,Arithmetic,Absolute value of x
|
|
15
|
-
round_down,Arithmetic,Round input to greatest multiple of f less than input;
|
|
16
|
-
sigmoid,Arithmetic,Returns 1 / (1 + exp(-x))
|
|
17
|
-
divide,Arithmetic,x / y
|
|
18
|
-
min,Arithmetic,Minimum value of all inputs. At least 2 inputs are required
|
|
19
|
-
nan_mask,Arithmetic,"replace input with NAN if input's corresponding mask value or the second input here, is negative"
|
|
20
|
-
arc_cos,Arithmetic,If -1 <= x <= 1: arccos(x); else NaN
|
|
21
|
-
tanh,Arithmetic,Hyperbolic tangent of x
|
|
22
|
-
nan_out,Arithmetic,"If x < lower or x > upper return NaN, else return x. At least one of ""lower"", ""upper"" is required"
|
|
23
|
-
signed_power,Arithmetic,x raised to the power of y such that final result preserves sign of x
|
|
24
|
-
inverse,Arithmetic,1 / x
|
|
25
|
-
round,Arithmetic,Round input to closest integer.
|
|
26
|
-
sqrt,Arithmetic,Square root of x
|
|
27
|
-
s_log_1p,Arithmetic,Confine function to a shorter range using logarithm such that higher input remains higher and negative input remains negative as an output of resulting function and -1 or 1 is an asymptotic value
|
|
28
|
-
reverse,Arithmetic, - x
|
|
29
|
-
replace,Arithmetic,Replace target values in input with destination values
|
|
30
|
-
log_diff,Arithmetic,Returns log(current value of input or x[t] ) - log(previous value of input or x[t-1])
|
|
31
|
-
power,Arithmetic,x ^ y
|
|
32
|
-
densify,Arithmetic,Converts a grouping field of many buckets into lesser number of only available buckets so as to make working with grouping fields computationally efficient
|
|
33
|
-
fraction,Arithmetic,This operator removes the whole number part and returns the remaining fraction part with sign
|
|
34
|
-
floor,Arithmetic,Nearest smaller integer
|
|
35
|
-
ceiling,Arithmetic,Nearest larger integer
|
|
36
|
-
or,Logical,Logical OR operator returns true if either or both inputs are true and returns false otherwise
|
|
37
|
-
and,Logical,"Logical AND operator, returns true if both operands are true and returns false otherwise"
|
|
38
|
-
not,Logical,"Returns the logical negation of x. If x is true (1), it returns false (0), and if input is false (0), it returns true (1)."
|
|
39
|
-
is_not_finite,Logical,If (input NAN or input == INF) return 1 else return 0
|
|
40
|
-
negate,Logical,The result is true if the converted operand is false; the result is false if the converted operand is true
|
|
41
|
-
is_nan,Logical,If (input == NaN) return 1 else return 0
|
|
42
|
-
is_not_nan,Logical,If (input != NaN) return 1 else return 0
|
|
43
|
-
less,Logical,"If input1 < input2 return true, else return false"
|
|
44
|
-
equal,Logical,Returns true if both inputs are same and returns false otherwise
|
|
45
|
-
greater,Logical,Logic comparison operators to compares two inputs
|
|
46
|
-
is_finite,Logical,"If (input NaN or input == INF) return 0, else return 1"
|
|
47
|
-
if_else,Logical,If input1 is true then return input2 else return input3.
|
|
48
|
-
not_equal,Logical,Returns true if both inputs are NOT the same and returns false otherwise
|
|
49
|
-
less_equal,Logical,"Returns true if input1 <= input2, return false otherwise"
|
|
50
|
-
greater_equal,Logical,"Returns true if input1 >= input2, return false otherwise"
|
|
51
|
-
ts_corr,Time Series,Returns correlation of x and y for the past d days
|
|
52
|
-
ts_zscore,Time Series,"Z-score is a numerical measurement that describes a value's relationship to the mean of a group of values. Z-score is measured in terms of standard deviations from the mean: (x - tsmean(x,d)) / tsstddev(x,d). This operator may help reduce outliers and drawdown."
|
|
53
|
-
ts_returns,Time Series,Returns the relative change in the x value
|
|
54
|
-
ts_product,Time Series,Returns product of x for the past d days
|
|
55
|
-
ts_std_dev,Time Series,Returns standard deviation of x for the past d days
|
|
56
|
-
ts_triple_corr,Time Series,"Returns triple correlation of x, y, z for the past d days"
|
|
57
|
-
ts_backfill,Time Series,"Backfill is the process of replacing the NAN or 0 values by a meaningful value (i.e., a first non-NaN value)"
|
|
58
|
-
days_from_last_change,Time Series,Amount of days since last change of x
|
|
59
|
-
last_diff_value,Time Series,Returns last x value not equal to current x value from last d days
|
|
60
|
-
ts_scale,Time Series,"Returns (x - ts_min(x, d)) / (ts_max(x, d) - ts_min(x, d)) + constant. This operator is similar to scale down operator but acts in time series space"
|
|
61
|
-
ts_entropy,Time Series,"For each instrument, we collect values of input in the past d days and calculate the probability distribution then the information entropy via a histogram as a result"
|
|
62
|
-
ts_vector_neut,Time Series,"Returns x- ts_vector_proj(x,y,d)"
|
|
63
|
-
ts_percentage,Time Series,Returns percentile value of x for the past d days
|
|
64
|
-
ts_step,Time Series,Returns days' counter
|
|
65
|
-
ts_sum,Time Series,Sum values of x for the past d days.
|
|
66
|
-
ts_co_kurtosis,Time Series,Returns cokurtosis of y and x for the past d days
|
|
67
|
-
ts_partial_corr,Time Series,"Returns partial correlation of x, y, z for the past d days"
|
|
68
|
-
inst_tvr,Time Series,Total trading value / Total holding value in the past d days
|
|
69
|
-
ts_decay_exp_window,Time Series,Returns exponential decay of x with smoothing factor for the past d days
|
|
70
|
-
ts_av_diff,Time Series,"Returns x - tsmean(x, d), but deals with NaNs carefully. That is NaNs are ignored during mean computation"
|
|
71
|
-
ts_rank_gmean_amean_diff,Time Series,"Returns Geometric Mean of ts_rank(input,d) of all input - Arithmetic Mean of ts_rank(input,d) of all input. This is similar to rank_gmean_amean_diff operator but in time-series space"
|
|
72
|
-
ts_kurtosis,Time Series,Returns kurtosis of x for the last d days
|
|
73
|
-
ts_mean,Time Series,Returns average value of x for the past d days.
|
|
74
|
-
ts_min_max_diff,Time Series,"Returns x - f * (ts_min(x, d) + ts_max(x, d)). If not specified, by default f = 0.5"
|
|
75
|
-
ts_arg_max,Time Series,"Returns the relative index of the max value in the time series for the past d days. If the current day has the max value for the past d days, it returns 0. If previous day has the max value for the past d days, it returns 1"
|
|
76
|
-
ts_max,Time Series,Returns max value of x for the past d days
|
|
77
|
-
ts_min_max_cps,Time Series,"Returns (ts_min(x, d) + ts_max(x, d)) - f * x. If not specified, by default f = 2"
|
|
78
|
-
ts_rank,Time Series,"Rank the values of x for each instrument over the past d days, then return the rank of the current value + constant. If not specified, by default, constant = 0."
|
|
79
|
-
ts_ir,Time Series,"Return information ratio ts_mean(x, d) / ts_std_dev(x, d)"
|
|
80
|
-
ts_delay,Time Series,Returns x value d days ago
|
|
81
|
-
ts_theilsen,Time Series,Theil Sen slope estimator of inputs for the past n days.
|
|
82
|
-
hump_decay,Time Series,This operator helps to ignore the values that changed too little corresponding to previous ones
|
|
83
|
-
ts_weighted_decay,Time Series,"Instead of replacing today's value with yesterday's as in ts_decay(x, 1), it assigns weighted average of today's and yesterday's values with weight on today's value being k and yesterday's being (1-k)"
|
|
84
|
-
ts_quantile,Time Series,"It calculates ts_rank and apply to its value an inverse cumulative density function from driver distribution. Possible values of driver (optional ) are ""gaussian"", ""uniform"", ""cauchy"" distribution where ""gaussian"" is the default."
|
|
85
|
-
ts_min,Time Series,Returns min value of x for the past d days
|
|
86
|
-
ts_count_nans,Time Series,Returns the number of NaN values in x for the past d days
|
|
87
|
-
ts_covariance,Time Series,Returns covariance of y and x for the past d days
|
|
88
|
-
ts_co_skewness,Time Series,Returns coskewness of y and x for the past d days
|
|
89
|
-
ts_min_diff,Time Series,"Returns x - ts_min(x, d)"
|
|
90
|
-
ts_decay_linear,Time Series,Returns the linear decay on x for the past d days. Dense parameter=false means operator works in sparse mode and we treat NaN as 0. In dense mode we do not.
|
|
91
|
-
jump_decay,Time Series,If there is a huge jump in current data compare to previous one
|
|
92
|
-
ts_moment,Time Series,Returns K-th central moment of x for the past d days
|
|
93
|
-
ts_arg_min,Time Series,"Returns the relative index of the min value in the time series for the past d days; If the current day has the min value for the past d days, it returns 0; If previous day has the min value for the past d days, it returns 1."
|
|
94
|
-
ts_regression,Time Series,Returns various parameters related to regression function
|
|
95
|
-
ts_skewness,Time Series,Return skewness of x for the past d days
|
|
96
|
-
ts_max_diff,Time Series,"Returns x - ts_max(x, d)"
|
|
97
|
-
kth_element,Time Series,Returns K-th value of input by looking through lookback days. This operator can be used to backfill missing data if k=1
|
|
98
|
-
hump,Time Series,Limits amount and magnitude of changes in input (thus reducing turnover)
|
|
99
|
-
ts_median,Time Series,Returns median value of x for the past d days
|
|
100
|
-
ts_delta,Time Series,"Returns x - ts_delay(x, d)"
|
|
101
|
-
ts_poly_regression,Time Series,"Returns y - Ey, where Ey = x + x^2 + ... + x^k over d days; k must be specified as a keyword argument"
|
|
102
|
-
ts_vector_proj,Time Series,Returns vector projection of x onto y in time-series space.
|
|
103
|
-
ts_target_tvr_decay,Time Series,"Tune ""ts_decay"" to have a turnover equal to a certain target, with optimization weight range between lambda_min, lambda_max"
|
|
104
|
-
ts_target_tvr_delta_limit,Time Series,"Tune ""ts_delta_limit"" to have a turnover equal to a certain target with optimization weight range between lambda_min, lambda_max. Also, please be aware of the scaling for x and y. Besides setting y as adv20 or volume related data, you can also set y as a constant."
|
|
105
|
-
ts_target_tvr_hump,Time Series,"Tune ""hump"" to have a turnover equal to a certain target with optimization weight range between lambda_min, lambda_max."
|
|
106
|
-
ts_delta_limit,Time Series,"Limit the change in the Alpha position x between dates to a specified fraction of y. The ""limit_volume"" can be in the range of 0 to 1. Also, please be aware of the scaling for x and y. Besides setting y as adv20 or volume related data, you can also set y as a constant."
|
|
107
|
-
winsorize,Cross Sectional,"Winsorizes x to make sure that all values in x are between the lower and upper limits, which are specified as multiple of std."
|
|
108
|
-
rank,Cross Sectional,"Ranks the input among all the instruments and returns an equally distributed number between 0.0 and 1.0. For precise sort, use the rate as 0"
|
|
109
|
-
regression_proj,Cross Sectional,Conducts the cross-sectional regression on the stocks with Y as target and X as the independent variable
|
|
110
|
-
vector_neut,Cross Sectional,"For given vectors x and y, it finds a new vector x* (output) such that x* is orthogonal to y"
|
|
111
|
-
regression_neut,Cross Sectional,Conducts the cross-sectional regression on the stocks with Y as target and X as the independent variable
|
|
112
|
-
zscore,Cross Sectional,Z-score is a numerical measurement that describes a value's relationship to the mean of a group of values. Z-score is measured in terms of standard deviations from the mean
|
|
113
|
-
scale_down,Cross Sectional,Scales all values in each day proportionately between 0 and 1 such that minimum value maps to 0 and maximum value maps to 1. Constant is the offset by which final result is subtracted
|
|
114
|
-
truncate,Cross Sectional,"Operator truncates all values of x to maxPercent. Here, maxPercent is in decimal notation"
|
|
115
|
-
scale,Cross Sectional,Scales input to booksize. We can also scale the long positions and short positions to separate scales by mentioning additional parameters to the operator
|
|
116
|
-
rank_by_side,Cross Sectional,Ranks positive and negative input separately and scale to book. For precise sorting use rate=0
|
|
117
|
-
normalize,Cross Sectional,"Calculates the mean value of all valid alpha values for a certain date, then subtracts that mean from each element"
|
|
118
|
-
generalized_rank,Cross Sectional,The idea is that difference between instrument values raised to the power of m is added to the rank of instrument with bigger value and subtracted from the rank of instrument with lesser value. More details in the notes at the end of page
|
|
119
|
-
one_side,Cross Sectional,"Shifts all instruments up or down so that the Alpha becomes long-only or short-only (if side = short), respectively."
|
|
120
|
-
rank_gmean_amean_diff,Cross Sectional,Operator returns difference of geometric mean and arithmetic mean of cross sectional rank of inputs
|
|
121
|
-
quantile,Cross Sectional,"Rank the raw vector, shift the ranked Alpha vector, apply distribution (gaussian, cauchy, uniform). If driver is uniform, it simply subtract each Alpha value with the mean of all Alpha values in the Alpha vector"
|
|
122
|
-
vector_proj,Cross Sectional,Returns vector projection of x onto y.
|
|
123
|
-
multi_regression,Cross Sectional,"Perform multivariable regression of multiple independent variables (x1,x2,...) on a dependent variable (y) across number of days.
|
|
124
|
-
|
|
125
|
-
If days = n (n >= 0), will include past n days in the regression. Setting days = 0 indicates that we're only using today (x1, x2, ...) to predict y.
|
|
126
|
-
|
|
127
|
-
If lag = m (m >= 0), will lag (x1, x2, ...) for m days for prediction.
|
|
128
|
-
|
|
129
|
-
Options for solver: ""SVD""(default), ""QR"", ""NORMAL"""
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
# Python version requirement: >= 3.8
|
|
2
|
-
# Core Flask dependencies
|
|
3
|
-
flask>=3.0.0
|
|
4
|
-
flask-cors>=4.0.0
|
|
5
|
-
werkzeug>=3.0.0
|
|
6
|
-
wqb>=0.2.5
|
|
7
|
-
# HTTP requests
|
|
8
|
-
requests>=2.28.0
|
|
9
|
-
|
|
10
|
-
# Data processing
|
|
11
|
-
pandas>=2.0.0
|
|
12
|
-
|
|
13
|
-
# Jupyter and notebook support
|
|
14
|
-
jupyter>=1.0.0
|
|
15
|
-
notebook>=7.0.0
|
|
16
|
-
ipykernel>=6.20.0
|
|
17
|
-
|
|
18
|
-
# PDF processing
|
|
19
|
-
PyPDF2>=3.0.0
|
|
20
|
-
pdfplumber>=0.9.0
|
|
21
|
-
PyMuPDF>=1.23.0
|
|
22
|
-
|
|
23
|
-
# Document processing
|
|
24
|
-
python-docx>=1.0.0
|
|
25
|
-
docx2txt>=0.8
|
|
26
|
-
striprtf>=0.0.20
|
|
27
|
-
|
|
28
|
-
# Text processing and parsing
|
|
29
|
-
lxml>=4.9.0
|
|
30
|
-
beautifulsoup4>=4.12.0
|
|
31
|
-
|
|
32
|
-
# Coze API integration
|
|
33
|
-
cozepy>=0.4.0
|
|
34
|
-
|
|
35
|
-
# AI/LLM integration
|
|
36
|
-
openai>=2.7.2
|
|
37
|
-
|
|
38
|
-
# Optional dependencies for enhanced functionality
|
|
39
|
-
# Image processing (if needed for future features)
|
|
40
|
-
# Pillow>=10.0.0
|
|
41
|
-
|
|
42
|
-
# Development and testing (optional)
|
|
43
|
-
# pytest>=7.0.0
|
|
44
|
-
# pytest-cov>=4.0.0
|
|
45
|
-
|
|
46
|
-
# Performance monitoring (optional)
|
|
47
|
-
# psutil>=5.9.0
|
|
48
|
-
|
|
49
|
-
# Progress bars
|
|
50
|
-
tqdm>=4.65.0
|
|
51
|
-
|
|
52
|
-
# 表达式语法检查
|
|
53
|
-
ply>=3.11
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
@echo off
|
|
2
|
-
echo ===================================
|
|
3
|
-
echo BRAIN Expression Template Decoder
|
|
4
|
-
echo ===================================
|
|
5
|
-
echo.
|
|
6
|
-
|
|
7
|
-
REM Check if Python is installed
|
|
8
|
-
python --version >nul 2>&1
|
|
9
|
-
if errorlevel 1 (
|
|
10
|
-
echo Error: Python is not installed or not in PATH!
|
|
11
|
-
echo Please install Python from https://www.python.org/
|
|
12
|
-
pause
|
|
13
|
-
exit /b 1
|
|
14
|
-
)
|
|
15
|
-
|
|
16
|
-
echo Starting the application...
|
|
17
|
-
echo The app will automatically install any missing dependencies.
|
|
18
|
-
echo.
|
|
19
|
-
|
|
20
|
-
REM Run the Flask application
|
|
21
|
-
python app.py
|
|
22
|
-
|
|
23
|
-
REM Keep window open if there was an error
|
|
24
|
-
if errorlevel 1 (
|
|
25
|
-
echo.
|
|
26
|
-
echo Application exited with an error.
|
|
27
|
-
pause
|
|
28
|
-
)
|
cnhkmcp/untracked/APP/run_app.sh
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
echo "==================================="
|
|
4
|
-
echo "BRAIN Expression Template Decoder"
|
|
5
|
-
echo "==================================="
|
|
6
|
-
echo
|
|
7
|
-
|
|
8
|
-
# Check if Python is installed
|
|
9
|
-
if ! command -v python3 &> /dev/null && ! command -v python &> /dev/null; then
|
|
10
|
-
echo "Error: Python is not installed!"
|
|
11
|
-
echo "Please install Python from https://www.python.org/"
|
|
12
|
-
exit 1
|
|
13
|
-
fi
|
|
14
|
-
|
|
15
|
-
# Use python3 if available, otherwise fall back to python
|
|
16
|
-
if command -v python3 &> /dev/null; then
|
|
17
|
-
PYTHON_CMD=python3
|
|
18
|
-
else
|
|
19
|
-
PYTHON_CMD=python
|
|
20
|
-
fi
|
|
21
|
-
|
|
22
|
-
echo "Starting the application..."
|
|
23
|
-
echo "The app will automatically install any missing dependencies."
|
|
24
|
-
echo
|
|
25
|
-
|
|
26
|
-
# Run the Flask application
|
|
27
|
-
$PYTHON_CMD app.py
|
|
28
|
-
|
|
29
|
-
# Check if the app exited with an error
|
|
30
|
-
if [ $? -ne 0 ]; then
|
|
31
|
-
echo
|
|
32
|
-
echo "Application exited with an error."
|
|
33
|
-
read -p "Press Enter to continue..."
|
|
34
|
-
fi
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
@echo off
|
|
2
|
-
echo ===================================
|
|
3
|
-
echo 使用清华大学镜像安装依赖
|
|
4
|
-
echo Installing dependencies using Tsinghua mirror
|
|
5
|
-
echo ===================================
|
|
6
|
-
echo.
|
|
7
|
-
|
|
8
|
-
REM Check if Python is installed
|
|
9
|
-
python --version >nul 2>&1
|
|
10
|
-
if errorlevel 1 (
|
|
11
|
-
echo Error: Python is not installed or not in PATH!
|
|
12
|
-
echo 错误:未安装Python或Python不在PATH中!
|
|
13
|
-
echo Please install Python from https://www.python.org/
|
|
14
|
-
pause
|
|
15
|
-
exit /b 1
|
|
16
|
-
)
|
|
17
|
-
|
|
18
|
-
echo Installing from Tsinghua University mirror...
|
|
19
|
-
echo 正在从清华大学镜像源安装...
|
|
20
|
-
echo.
|
|
21
|
-
|
|
22
|
-
REM Install using Tsinghua mirror
|
|
23
|
-
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
|
|
24
|
-
|
|
25
|
-
if errorlevel 1 (
|
|
26
|
-
echo.
|
|
27
|
-
echo Installation failed!
|
|
28
|
-
echo 安装失败!
|
|
29
|
-
pause
|
|
30
|
-
exit /b 1
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
echo.
|
|
34
|
-
echo ✓ Installation completed successfully!
|
|
35
|
-
echo ✓ 安装成功完成!
|
|
36
|
-
echo.
|
|
37
|
-
echo You can now run the application using: run_app.bat
|
|
38
|
-
echo 现在可以使用 run_app.bat 运行应用程序
|
|
39
|
-
pause
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
echo "==================================="
|
|
4
|
-
echo "使用清华大学镜像安装依赖"
|
|
5
|
-
echo "Installing dependencies using Tsinghua mirror"
|
|
6
|
-
echo "==================================="
|
|
7
|
-
echo
|
|
8
|
-
|
|
9
|
-
# Check if Python is installed
|
|
10
|
-
if ! command -v python3 &> /dev/null && ! command -v python &> /dev/null; then
|
|
11
|
-
echo "Error: Python is not installed!"
|
|
12
|
-
echo "错误:未安装Python!"
|
|
13
|
-
echo "Please install Python from https://www.python.org/"
|
|
14
|
-
exit 1
|
|
15
|
-
fi
|
|
16
|
-
|
|
17
|
-
# Use python3 if available, otherwise fall back to python
|
|
18
|
-
if command -v python3 &> /dev/null; then
|
|
19
|
-
PYTHON_CMD=python3
|
|
20
|
-
else
|
|
21
|
-
PYTHON_CMD=python
|
|
22
|
-
fi
|
|
23
|
-
|
|
24
|
-
echo "Installing from Tsinghua University mirror..."
|
|
25
|
-
echo "正在从清华大学镜像源安装..."
|
|
26
|
-
echo
|
|
27
|
-
|
|
28
|
-
# Install using Tsinghua mirror
|
|
29
|
-
$PYTHON_CMD -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
|
|
30
|
-
|
|
31
|
-
if [ $? -eq 0 ]; then
|
|
32
|
-
echo
|
|
33
|
-
echo "✓ Installation completed successfully!"
|
|
34
|
-
echo "✓ 安装成功完成!"
|
|
35
|
-
echo
|
|
36
|
-
echo "You can now run the application using: ./run_app.sh"
|
|
37
|
-
echo "现在可以使用 ./run_app.sh 运行应用程序"
|
|
38
|
-
else
|
|
39
|
-
echo
|
|
40
|
-
echo "Installation failed!"
|
|
41
|
-
echo "安装失败!"
|
|
42
|
-
exit 1
|
|
43
|
-
fi
|