{"id":20735147,"url":"https://github.com/djsutherland/opt-mmd","last_synced_at":"2025-07-31T05:04:39.074Z","repository":{"id":83038941,"uuid":"74072723","full_name":"djsutherland/opt-mmd","owner":"djsutherland","description":"Learning kernels to maximize the power of MMD tests","archived":false,"fork":false,"pushed_at":"2018-01-11T16:34:15.000Z","size":100,"stargazers_count":210,"open_issues_count":1,"forks_count":73,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-08T08:11:24.874Z","etag":null,"topics":["generative-adversarial-network","hypothesis-testing","kernel-methods","machine-learning","maximum-mean-discrepancy","python","shogun","statistical-tests","tensorflow","theano"],"latest_commit_sha":null,"homepage":"https://arxiv.org/abs/1611.04488","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/djsutherland.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":"2016-11-17T22:23:29.000Z","updated_at":"2025-04-08T07:39:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"d340d115-df1f-498b-9364-45888cfdedf8","html_url":"https://github.com/djsutherland/opt-mmd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/djsutherland/opt-mmd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djsutherland%2Fopt-mmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djsutherland%2Fopt-mmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djsutherland%2Fopt-mmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djsutherland%2Fopt-mmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djsutherland","download_url":"https://codeload.github.com/djsutherland/opt-mmd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djsutherland%2Fopt-mmd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266561321,"owners_count":23948625,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["generative-adversarial-network","hypothesis-testing","kernel-methods","machine-learning","maximum-mean-discrepancy","python","shogun","statistical-tests","tensorflow","theano"],"created_at":"2024-11-17T05:34:35.789Z","updated_at":"2025-07-22T19:33:35.625Z","avatar_url":"https://github.com/djsutherland.png","language":"Python","readme":"Code for the paper \"Generative Models and Model Criticism via Optimized Maximum Mean Discrepancy\" ([arXiv:1611.04488](https://arxiv.org/abs/1611.04488); [published at](https://openreview.net/forum?id=HJWHIKqgl) ICLR 2017), by [Dougal J. Sutherland](http://www.gatsby.ucl.ac.uk/~dougals/) ([@dougalsutherland](https://github.com/dougalsutherland)), [Hsiao-Yu Tung](http://sfish0101.bitbucket.io/), [Heiko Strathmann](http://herrstrathmann.de/about/) ([@karlnapf](https://github.com/karlnapf)), Soumyajit De ([@lambday](https://github.com/lambday)), [Aaditya Ramdas](https://people.eecs.berkeley.edu/~aramdas/), [Alex Smola](https://alex.smola.org/), and [Arthur Gretton](http://www.gatsby.ucl.ac.uk/~gretton/).\n\n- Implementations of the variance estimator are in Theano in [`two_sample/mmd.py`](two_sample/mmd.py) and in Tensorflow in [`gan/mmd.py`](gan/mmd.py).\n- General code for learning kernels for a fixed two-sample test, with Theano, is in [two_sample](two_sample).\n- Code for the GAN variants, using TensorFlow, is in [gan](gan).\n- Code for the efficient permutation test described in Section 3 is in the 6.0 release of [Shogun](http://shogun.ml); look under [`shogun/src/shogun/statistical_testing`](https://github.com/shogun-toolbox/shogun/tree/develop/src/shogun/statistical_testing). An example of using it in the Python API is in [`two_sample/mmd_test.py`](two_sample/mmd_test.py).\n\nThis code is under a BSD license, but if you use it, please cite the paper.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjsutherland%2Fopt-mmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjsutherland%2Fopt-mmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjsutherland%2Fopt-mmd/lists"}