{"id":15432782,"url":"https://github.com/gugarosa/rbm_tuning","last_synced_at":"2025-03-18T11:42:23.509Z","repository":{"id":88870720,"uuid":"310049199","full_name":"gugarosa/rbm_tuning","owner":"gugarosa","description":"📄 Official implementation regarding the paper \"Enhancing Restricted Boltzmann Machines Reconstructability Through Meta-Heuristic Optimization\". ","archived":false,"fork":false,"pushed_at":"2022-10-05T12:17:14.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-18T07:40:00.305Z","etag":null,"topics":["fine-tuning","implementation","machine-learning","meta-heuristic","optimization","paper","rbm"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gugarosa.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}},"created_at":"2020-11-04T15:54:40.000Z","updated_at":"2022-10-05T12:17:18.000Z","dependencies_parsed_at":"2023-09-29T07:22:28.841Z","dependency_job_id":null,"html_url":"https://github.com/gugarosa/rbm_tuning","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"91cfa38dc6fb516e3438b68fd166bfb555f1342f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gugarosa%2Frbm_tuning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gugarosa%2Frbm_tuning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gugarosa%2Frbm_tuning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gugarosa%2Frbm_tuning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gugarosa","download_url":"https://codeload.github.com/gugarosa/rbm_tuning/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244216806,"owners_count":20417651,"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":["fine-tuning","implementation","machine-learning","meta-heuristic","optimization","paper","rbm"],"created_at":"2024-10-01T18:28:35.536Z","updated_at":"2025-03-18T11:42:23.489Z","avatar_url":"https://github.com/gugarosa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Enhancing Restricted Boltzmann Machines Reconstructability Through Meta-Heuristic Optimization\n\n*This repository holds all the necessary code to run the very-same experiments described in the paper \"Enhancing Restricted Boltzmann Machines Reconstructability Through Meta-Heuristic Optimization\".*\n\n---\n\n## References\n\nIf you use our work to fulfill any of your needs, please cite us:\n\n```\n```\n\n---\n\n## Structure\n\n * `utils`\n   * `loader.py`: Utility to load datasets and split them into training, validation and testing sets;\n   * `objects.py`: Wraps objects instantiation for command line usage;\n   * `optimizer.py`: Wraps the optimization task into a single method;  \n   * `target.py`: Implements the objective functions to be optimized.\n   \n   \n---\n\n## Package Guidelines\n\n### Installation\n\nInstall all the pre-needed requirements using:\n\n```Python\npip install -r requirements.txt\n```\n\n### Data configuration\n\nIn order to run the experiments, you can use `torchvision` to load pre-implemented datasets.\n\n---\n\n## Usage\n\n### Model Training\n\nThe first step is to pre-train an RBM architecture. To accomplish such a step, one needs to use the following script:\n\n```Python\npython rbm_training.py -h\n```\n\n*Note that `-h` invokes the script helper, which assists users in employing the appropriate parameters.*\n\n### Model Optimization\n\nAfter conducting the training task, one needs to optimize the weights over the validation set. Please, use the following script to accomplish such a procedure:\n\n```Python\npython rbm_optimization.py -h\n```\n\n### Model Evaluation\n\nFinally, it is now possible to evaluate a model using the testing set. Please, use the following script to accomplish such a procedure:\n\n```Python\npython rbm_evaluation.py -h\n```\n\n### Analyze Optimization Convergence (Optional)\n\nAdditionally, one can gather the optimization history files and input them to a script that analyzes its convergence and produces a plot that compares how each optimization technique has performed during its procedure. Please, use such a script as follows:\n\n```Python\npython analyze_optimization_convergence.py -h\n```\n\n### Bash Script\n\nInstead of invoking every script to conduct the experiments, it is also possible to use the provided shell script, as follows:\n\n```Bash\n./pipeline.sh\n```\n\nSuch a script will conduct every step needed to accomplish the experimentation used throughout this paper. Furthermore, one can change any input argument that is defined in the script.\n\n---\n\n## Support\n\nWe know that we do our best, but it is inevitable to acknowledge that we make mistakes. If you ever need to report a bug, report a problem, talk to us, please do so! We will be available at our bests at this repository.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgugarosa%2Frbm_tuning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgugarosa%2Frbm_tuning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgugarosa%2Frbm_tuning/lists"}