{"id":16966371,"url":"https://github.com/mar-muel/tensorflow-project-template","last_synced_at":"2026-05-14T23:09:22.245Z","repository":{"id":176184856,"uuid":"155416646","full_name":"mar-muel/tensorflow-project-template","owner":"mar-muel","description":"Template for a tensorflow project","archived":false,"fork":false,"pushed_at":"2018-10-31T09:43:24.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T17:53:10.590Z","etag":null,"topics":["machine-learning","neural-network","tensorboard","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Python","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/mar-muel.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-10-30T16:10:36.000Z","updated_at":"2018-10-31T09:43:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"c75a2c42-a053-4b8a-a4d2-44d89f3b311b","html_url":"https://github.com/mar-muel/tensorflow-project-template","commit_stats":null,"previous_names":["mar-muel/tensorflow-project-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mar-muel/tensorflow-project-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar-muel%2Ftensorflow-project-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar-muel%2Ftensorflow-project-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar-muel%2Ftensorflow-project-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar-muel%2Ftensorflow-project-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mar-muel","download_url":"https://codeload.github.com/mar-muel/tensorflow-project-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar-muel%2Ftensorflow-project-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267375823,"owners_count":24077290,"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-27T02:00:11.917Z","response_time":82,"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":["machine-learning","neural-network","tensorboard","tensorflow"],"created_at":"2024-10-14T00:05:36.757Z","updated_at":"2026-05-14T23:09:17.217Z","avatar_url":"https://github.com/mar-muel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tensorflow Project Template\n\nThis template is an extension of [MrGemy95's tensorflow template](https://github.com/MrGemy95/Tensorflow-Project-Template). You should probably start there and read their README!\n\nIt adds the following features:\n* Support for multiple experiments (based on a single `config.json`)\n* Extended data generator class using the `tf.data.dataset` pipeline\n* Test class\n* Logging\n* Simple example using the Iris dataset\n\n\n# Installation\n* Clone repo\n```\ngit clone git@github.com:mar-muel/tensorflow-project-template.git\ncd tensorflow-project-template\n```\n* Install dependencies with [Anaconda](https://www.anaconda.com/download):\n```\nconda create -n tf-project-template python=3.6\nsource activate tf-project-template\npip install -r requirements.txt\n```\n\n# Usage\nAfter install, you should be able to run a test network on the Iris dataset by simply\n```\npython run.py\n```\nYou can specify a different config file from the default (`./configs/config.json`):\n```\npython run.py --config ./path/to/my/config.json\n```\nThe default config file looks like this:\n```\n{\n  \"experiments\": {\n    \"run1\": {\n      \"learning_rate\": 1e-4\n    },\n    \"run2\": {\n      \"learning_rate\": 1e-5\n    }\n  },\n  \"global_params\": {\n    \"training_data\": \"train.csv\",\n    \"test_data\": \"test.csv\",\n    \"learning_rate\": 1e-4,\n    \"max_to_keep\": 1,\n    \"num_epochs\": 4,\n    \"num_iter_per_epoch\": 1000,\n    \"batch_size\": 10,\n    \"run_test\": true,\n    \"delete_previous_output\": true\n  }\n}\n```\nThe config contains two experiments with the names `run1` and `run2` containing different learning rates. All parameters under `global_params` will be applied to each individual experiment.\n## Data\nBy default all data resides under `./data` and will be read from there. Specify how you want to load your data in `./data_loader/data_generator.py`. \n\n## Model\nCreate your own network architecture by changing the code in the `build_model()` function in `./models/example_model.py`.\n\n## Training\nYou can change the way the training should happen in `./trainers/example_trainer.py`.\n\n## Testing\nYou can change the way the training should happen in `./trainers/example_test.py`.\n\n## Tensorboard\nYou can see all collected summaries in tensorboard by running\n```\ntensorboard --logdir ./experiments\n```\n\nFeel free re-use, extend or adapt for your own purposes!\n\n# Author\nMartin Müller (martin.muller@epfl.ch)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmar-muel%2Ftensorflow-project-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmar-muel%2Ftensorflow-project-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmar-muel%2Ftensorflow-project-template/lists"}