{"id":16270840,"url":"https://github.com/tjake/rbm-dbn-mnist","last_synced_at":"2025-03-16T13:31:11.189Z","repository":{"id":66849536,"uuid":"8471812","full_name":"tjake/rbm-dbn-mnist","owner":"tjake","description":"Restricted Boltzmann Machine and Deep Belief Network Implementation. Uses MNIST dataset as a demo.","archived":false,"fork":false,"pushed_at":"2013-03-01T13:21:37.000Z","size":138,"stargazers_count":193,"open_issues_count":1,"forks_count":50,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-02-27T09:41:29.714Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/tjake.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}},"created_at":"2013-02-28T04:20:36.000Z","updated_at":"2025-02-14T15:51:03.000Z","dependencies_parsed_at":"2023-02-20T13:00:28.661Z","dependency_job_id":null,"html_url":"https://github.com/tjake/rbm-dbn-mnist","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/tjake%2Frbm-dbn-mnist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjake%2Frbm-dbn-mnist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjake%2Frbm-dbn-mnist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjake%2Frbm-dbn-mnist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tjake","download_url":"https://codeload.github.com/tjake/rbm-dbn-mnist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243816919,"owners_count":20352454,"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-10-10T18:11:46.026Z","updated_at":"2025-03-16T13:31:10.893Z","avatar_url":"https://github.com/tjake.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"rbm-dbn-mnist\n==========\n\nLearn more about this project from this blog post: \n\nhttp://tjake.github.com/blog/2013/02/18/resurgence-in-artificial-intelligence/\n\nThis project provides a implementation for a Restricted Boltzmann Machine and a Deep Belief Network\n\nIt uses the [MNIST handwritten dataset](http://yann.lecun.com/exdb/mnist/) to illistrate an example RBM and DBN.\n\nUsage\n=====\n\nFrom source build the project with maven:\n\n1. mvn deploy\n\nThis will build a single jar and download the mnist dataset.\n\n2. java -jar target/rbm-dbn-mnist-0.0.1.jar \n\nRuns the app. shows the usage screen\n\n````\nUsage: [rbm minst-labels.gz minst-images.gz]\n\t   [dbn minst-images.gz minst-labels.gz dbn.bin]\n\t   [gen dbn.bin]\n````\n\n3. java -jar target/rbm-dbn-mnist-0.0.1.jar rbm target/minst/train-labels-idx1-ubyte.gz target/minst/train-images-idx3-ubyte.gz\n\nTrains a single RBM with 100 hidden nodes.  Each of the hidden nodes weights are rendered alongside the test digit in blue.\n\n![RBM Demo](http://tjake.github.com/images/MinstRBM.png)\n\n\n4. java -jar target/rbm-dbn-mnist-0.0.1.jar dbn target/minst/train-labels-idx1-ubyte.gz target/minst/train-images-idx3-ubyte.gz /tmp/dbn.bin\n\nTrains a Deep Belief Network made up of three RBMs.  It learns to match pictures of digits with their corresponding label. It takes about 10m to train but once it's done it has ~95% accuracy rate.  The trained DBN is saved to a file.\n\n5. java -jar target/rbm-dbn-mnist-0.0.1.jar gen /tmp/dbn.bin\n\nTakes the trained DBN from step 4. and reverses the flow, generating a visual image of a digit from a digit label.\n\nLicense\n=======\n\nCopyright 2013 T Jake Luciani \u003cjake@apache.org\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the 'Software'), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjake%2Frbm-dbn-mnist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftjake%2Frbm-dbn-mnist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjake%2Frbm-dbn-mnist/lists"}