{"id":21441751,"url":"https://github.com/dmis-lab/hats","last_synced_at":"2025-07-14T17:32:09.726Z","repository":{"id":48140999,"uuid":"221111754","full_name":"dmis-lab/hats","owner":"dmis-lab","description":"HATS: A Hierarchical Graph Attention Network for Stock Movement Prediction","archived":false,"fork":false,"pushed_at":"2019-12-02T02:01:27.000Z","size":245,"stargazers_count":139,"open_issues_count":8,"forks_count":63,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-05-14T00:23:18.855Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmis-lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-12T02:23:39.000Z","updated_at":"2024-05-10T06:44:57.000Z","dependencies_parsed_at":"2022-08-27T22:31:55.768Z","dependency_job_id":null,"html_url":"https://github.com/dmis-lab/hats","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmis-lab%2Fhats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmis-lab%2Fhats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmis-lab%2Fhats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmis-lab%2Fhats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmis-lab","download_url":"https://codeload.github.com/dmis-lab/hats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225990493,"owners_count":17556152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-23T01:41:33.363Z","updated_at":"2024-11-23T01:41:33.844Z","avatar_url":"https://github.com/dmis-lab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HATS\n![overview_model](figs/HATS.PNG)\nThis repository contains source codes of HATS, A Hierarchical Graph Attention Network for Stock Movement Prediction. As we conducted experiments on two different tasks, node classification and graph classification, we provide two different version of codes for each tasks. Please refer to our paper [HATS: A Hierarchical Graph Attention Network for Stock Movement Prediction](https://arxiv.org/abs/1908.07999) for further details.\n\n## Requirements\nNumpy 1.15.1 \u003cbr/\u003e\nTensorflow 1.11.0\n\n## Dataset\nPrice-realted data and corporate relation data is used for HATS. We gathered both data for S\u0026P 500 listed companies from 2013/02/08 to\n2019/06/17 (1174 trading days in total). Price data are gathered from [Yahoo Finance](https://finance.yahoo.com/) and corporate relation data are collected based on the information on [Wikidata](https://www.wikidata.org/wiki/Wikidata:Main_Page). Both datasets can be downloaded with the command below.\n\n## Usage\n### Download Data\n```\nbash download.sh\n```\n### Excute model with makefile\nYou need to pass some arguments. \u003cbr/\u003e\ntest_phase : phase that you want to test \u003cbr/\u003e\nsave_dir : name of saving directories \u003cbr/\u003e\ndata_type (only in graph_classification) : choose among ['S5CONS', 'S5ENRS', 'S5UTIL', 'S5FINL', 'S5INFT'] \u003cbr/\u003e\n```\ne.g.\nmake test_phase=1 save_dir=save data_type='S5CONS'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmis-lab%2Fhats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmis-lab%2Fhats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmis-lab%2Fhats/lists"}