{"id":19336642,"url":"https://github.com/kimmeen/graphsage","last_synced_at":"2026-06-22T10:31:51.297Z","repository":{"id":108408973,"uuid":"279460609","full_name":"KimMeen/GraphSage","owner":"KimMeen","description":"A PyTorch implementation of the paper https://www-cs.stanford.edu/people/jure/pubs/graphsage-nips17.pdf","archived":false,"fork":false,"pushed_at":"2020-07-19T15:04:25.000Z","size":102,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T08:13:13.980Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KimMeen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-14T02:26:04.000Z","updated_at":"2020-08-29T03:30:56.000Z","dependencies_parsed_at":"2023-04-03T10:16:06.088Z","dependency_job_id":null,"html_url":"https://github.com/KimMeen/GraphSage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KimMeen/GraphSage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KimMeen%2FGraphSage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KimMeen%2FGraphSage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KimMeen%2FGraphSage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KimMeen%2FGraphSage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KimMeen","download_url":"https://codeload.github.com/KimMeen/GraphSage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KimMeen%2FGraphSage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34645681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10T03:11:52.698Z","updated_at":"2026-06-22T10:31:51.277Z","avatar_url":"https://github.com/KimMeen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphSage\n\n\nA PyTorch implementation of the paper https://www-cs.stanford.edu/people/jure/pubs/graphsage-nips17.pdf\n\n\n\n## Requirements\n\nPytorch \u003e=1.1.0\n\nDGL: 0.4.3.post2\n\n\n\n## Results\n\nThe node classification results include two parts: \n\n+ Full graph training on Cora citation dataset\n+ Minibatch training on Reddit dataset\n\n\n\n### Full graph training\n\nRun with following to train a GraphSage network on the Cora dataset:\n\n```\npython train_full_cora.py\n```\n\n**Notice:** This version not performs neighbor sampling (i.e. Algorithm 1 in the paper) so we feed the model with the entire graph and corresponding feature matrix.\n\n\n\n+ GraphSage-Mean: ~ 80.4%\n+ GraphSage-GCN: ~ 83.4%\n+ GraphSage-Pool: ~ 72.5%\n\n\n\n### Minibatch training\n\n\u003cimg src=\".\\docs\\DGL_Minibatch.png\" alt=\"DGL_MINIBATCH\" style=\"zoom:75%;\" /\u003e\n\n\n\nRun with following to train a GraphSage network on the Reddit dataset:\n\n```\npython train_sampling_reddit.py\n```\n\n**Notice:** This version performs neighbor sampling in a layer-wise way (i.e. Algorithm 2 in the paper) so we feed the model with blocks (undirected bipartite graph).\n\n\n\n+ GraphSage-Mean: ~ 96.33%\n+ GraphSage-GCN: ~ 94.53%\n+ GraphSage-Pool: ~ 88.35%\n\n\n\n## To-do:\n\n+ LSTM aggregator\n\n+ Minibatch training: Inductive graph splitting\n+ Unsupervised training","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimmeen%2Fgraphsage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkimmeen%2Fgraphsage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimmeen%2Fgraphsage/lists"}