{"id":18850354,"url":"https://github.com/corochann/chainer-saliency","last_synced_at":"2026-02-25T10:04:37.670Z","repository":{"id":70904307,"uuid":"160029253","full_name":"corochann/chainer-saliency","owner":"corochann","description":"Saliency calculation module for Chainer","archived":false,"fork":false,"pushed_at":"2019-05-28T05:33:53.000Z","size":2472,"stargazers_count":12,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-30T02:45:15.401Z","etag":null,"topics":["chainer","deep-learning","reasoning"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/corochann.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":"2018-12-02T08:49:51.000Z","updated_at":"2021-11-17T21:51:46.000Z","dependencies_parsed_at":"2023-08-24T23:21:05.480Z","dependency_job_id":null,"html_url":"https://github.com/corochann/chainer-saliency","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/corochann/chainer-saliency","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corochann%2Fchainer-saliency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corochann%2Fchainer-saliency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corochann%2Fchainer-saliency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corochann%2Fchainer-saliency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/corochann","download_url":"https://codeload.github.com/corochann/chainer-saliency/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corochann%2Fchainer-saliency/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29817095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T05:36:42.804Z","status":"ssl_error","status_checked_at":"2026-02-25T05:36:31.934Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["chainer","deep-learning","reasoning"],"created_at":"2024-11-08T03:28:58.233Z","updated_at":"2026-02-25T10:04:37.632Z","avatar_url":"https://github.com/corochann.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# chainer-saliency\n\nSaliency calculation examples.\n\nArticle\n - [Library release: visualize saliency map of deep neural network](http://corochann.com/library-release-visualize-saliency-map-of-deep-neural-network-1478.html)\n - [NNの予測根拠可視化をライブラリ化する](https://qiita.com/corochann/items/066dcbfbe04a6bd447a3)\n\n\u003cdiv float=\"left\" align=\"middle\"\u003e\n  \u003cimg src=\"https://qiita-image-store.s3.amazonaws.com/0/25635/963ca7b5-9f88-d7c7-4b6e-30afa35d5573.png\" width=\"250\" /\u003e \n  \u003cimg src=\"https://qiita-image-store.s3.amazonaws.com/0/25635/56171a48-920a-f346-a581-6e0116f333e6.png\" width=\"250\" /\u003e\n  \u003cimg src=\"https://qiita-image-store.s3.amazonaws.com/0/25635/1d2585f8-7cc9-7ddc-cdf1-6f1094ced2b3.png\" width=\"250\" /\u003e\n\u003c/div\u003e\n\nFrom left: 1. Classification saliency map visualization of VGG16, CNN model. 2. iris dataset feature importance calculation of MLP model. 3. Water solubility contribution visualization of Graph convolutional network model.\n\n# setup\n\n - chainer\u003e=5.0.0 : To use `LinkHook` \n - chainer-chemistry\u003e=0.5.0 : saliency module is introduced from 0.5.0\n\n```bash\n# please update your chainer (version\u003e=5.0.0 is necessary)\npip install -U chainer\n\n# install chainer-chemistry\npip install -U chainer-chemistry\n```\n\n# saliency module usage\n\n```python\n# model is chainer.Chain, x is dataset\ncalculator = GradientCalculator(model)\nsaliency_samples = calculator.compute(x)\nsaliency = calculator.aggregate(saliency_samples)\n \nvisualizer = ImageVisualizer()\nvisualizer.visualize(saliency)\n```\n\nBasically that's all to show saliency plot like top figure!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorochann%2Fchainer-saliency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorochann%2Fchainer-saliency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorochann%2Fchainer-saliency/lists"}