MCPcopy Index your code
hub / github.com/K-Quant/HiDy

github.com/K-Quant/HiDy @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
539 symbols 1,432 edges 81 files 164 documented · 30% updated 2y ago★ 52
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

HiDy Dataset

[Website] [Arxiv Paper] [Open Database] [Achievements]

Status GitHub Issues GitHub Pull Requests GitHub Stars GitHub license HitCount

A Large-scale Hierarchical Dynamic Financial Knowledge Base

HiDy is a hierarchical, dynamic, robust, diverse, and large-scale financial benchmark KB that aims to provide various valuable financial knowledge as critical benchmarking data for fair model testing in different financial tasks. Specifically, HiDy currently contains 34 relation types, more than 505,800 relations, 17 entity types, and more than 51,000 entities. The scale of HiDy is steadily growing due to its continuous updates. To make HiDy easily accessible and retrieved, HiDy is organized in a well-formed financial hierarchy with four branches, Macro, Meso, Micro, and Others.

With HiDy, users can apply more in-depth, professional, logical, and interpreted knowledge to many common financial tasks, such as stock movement prediction (SMP), financial fraud detection (FFD), supply chain management (SCM), loan default risk prediction (LDRP) and financial event prediction (FEP).

🎉 NEWS: - We now have updated to 1.10 version of the hierachical dynamic financial knowlegde base HiDy in Zenedo. - We have open-sourced the Benchmarking Models of SMP and FFD Tasks along with the test data. - We have open-sourced the Stock Movement Prediction and Backtesting Demo Website equipped with HiDy's knowledge. - We have open-sourced the Pre-trained Extraction Models. - We have open-sourced the Knowledge Extraction Implementation. - We have published the 1.0 version of the hierachical dynamic financial knowlegde base HiDy in Zenedo.

Contents

Installation

To install the cutting edge version of Knowledge Extraction Implementation from the main branch of this repo, run:

git clone https://github.com/K-Quant/HiDy.git
cd HiDy
pip install -r requirements.txt

Description

Our databases is open-access and available in Zenedo! The data description is shown in the following table:

  • HiDy owns the metadata and releases as CC BY-NC 4.0.
  • HiDy owns the copyright of the extracted data denoted by their relation type: mention, support_industry, tax_cut, tax_cut_subject, validity_period, supply / be_supplied, upstream / downstream, superior / subordinate, same_industry, increase_holding / be_increased_holding, reduce_holding / be_reduce_holding, invest / be_invested, cooperate, compete, rise, fall, dispute, positive, negative as CC BY-NC 4.0.
  • HiDy does not own the copyright of the collected data by querying the Internet denoted by their relation type: SW_belongs_to, industry_belongs_to, hold, managed_by, has_invest_type_of, company_belong_to_exchange, exchange_belong_to_market, company_locate_in_city, city_locate_in_region, produce.

Applications

We present multiple benchmarking results for SMP and FFD tasks to foster community involvement in HiDy paper.

SMP Demo

The Website provides users with various stock movement prediction models with backtesting. Among them, HIST and NRSR are equipped with HiDy dataset.

License

Although the validation results are promising, HiDy is $not$ a completed data product. Given the vast scale of financial research across various markets, refining HiDy for widespread adoption exceeds the capacity of a single paper. As such, we firmly suggest utilizing HiDy exclusively for academic research purposes in its present state. We caution against employing it in deployed systems without thoroughly examining the behavior and potential biases of models trained on HiDy.

The codebase (this repo) is licensed under a Apache 2.0 License.

The HiDy dataset is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

Creative Commons License

Core symbols most depended-on inside this repo

get
called by 25
application/SMP/utils/dataloader.py
update
called by 10
other_experiment/ner_model_selection/bert_based/tools/common.py
load_state_dict
called by 10
other_experiment/ner_model_selection/bert_based/callback/optimizater/lookahead.py
zero_grad
called by 8
other_experiment/ner_model_selection/bert_based/callback/optimizater/lookahead.py
backward
called by 7
other_experiment/FFD_ablation/GAT_exp/layers.py
offset
called by 6
ner/data_utils/data_utils.py
train
called by 6
other_experiment/ner_model_selection/bilstm_based/models/hmm.py
_read_text
called by 6
other_experiment/ner_model_selection/bert_based/processors/utils_ner.py

Shape

Method 305
Function 156
Class 78

Languages

Python100%

Modules by API surface

ner/data_utils/data_utils.py44 symbols
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py38 symbols
other_experiment/fusion/DART.py34 symbols
other_experiment/ner_model_selection/bert_based/processors/ner_span.py24 symbols
other_experiment/ner_model_selection/bert_based/processors/ner_seq.py24 symbols
other_experiment/ner_model_selection/bert_based/tools/common.py22 symbols
tax_policy/utils.py16 symbols
other_experiment/FFD_ablation/GAT_exp/layers.py14 symbols
other_experiment/ner_model_selection/bert_based/metrics/ner_metrics.py12 symbols
other_experiment/FFD_ablation/HAN_exp/utils.py12 symbols
other_experiment/ner_model_selection/bert_based/processors/utils_ner.py11 symbols
other_experiment/ner_model_selection/bert_based/models/layers/crf.py11 symbols

For agents

$ claude mcp add HiDy \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact