{ "info": { "author": "Christoph Sch\u00f6ller", "author_email": "", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License" ], "description": "![# PyCandle](logo.png)\n\nPyCandle is a lightweight library for pytorch that makes running experiments easy, structured, repeatable and avoids boilerplate code. It maintains flexibilty and allows to train also more complex models like recurrent or generative neural networks conveniently.\n\n### Usage\n\nThis code snippet creates a timestamped directory for the current experiment, runs the training of the model, creates a backup of all used code, logs current git hash and forks console output into a log file:\n\n```python\nmodel = Net().cuda()\nexperiment = Experiment('mnist_example')\ntrain_loader = load_dataset(batch_size_train=64)\noptimizer = torch.optim.Adam(model.parameters(), lr=0.01)\nmodel_trainer = ModelTrainer(model, optimizer, F.nll_loss, 20, train_loader, gpu=0)\nmodel_trainer.start_training()\n```\n\nA complete example for training a model to classify hand-written MNIST digits can be found in [minimal_example/mnist.py](https://github.com/cschoeller/pycandle/blob/master/minimal_example/mnist.py).\n\n### Installation\n\n#### Via PIP\n\nThe easiest way to install pycandle is through pip:\n\n``\npip install pycandle\n``\n\n### Requirements\n\nWe tested PyCandle with the dependency versions listed here. However, PyCandle can also work with newer versions if they are downward compatible.\n\n* Python 3.5.4\n* PyTorch 0.4.1\n* cudnn 7.0.5\n* torchvision 0.2.1 (for examples)\n* matplotlib 2.1.1 (for examples)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cschoeller/pycandle", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pycandle", "package_url": "https://pypi.org/project/pycandle/", "platform": "", "project_url": "https://pypi.org/project/pycandle/", "project_urls": { "Homepage": "https://github.com/cschoeller/pycandle" }, "release_url": "https://pypi.org/project/pycandle/1.0/", "requires_dist": [ "torch (>=1.2.0)", "numpy (>=1.16.4)", "torchvision (>=0.2.1)", "matplotlib (>=3.0.3)" ], "requires_python": ">=3.5", "summary": "PyCandle is a lightweight library for pytorch that makes running experiments easy, structured, repeatable and avoids boilerplate code.", "version": "1.0" }, "last_serial": 5803369, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "f976efdde8aad40bd6710421bcb347f2", "sha256": "861bcde07b4e27920f28fb723c18fbc5bef1089bdf739e9f81f43f3b7c9dfdf1" }, "downloads": -1, "filename": "pycandle-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f976efdde8aad40bd6710421bcb347f2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 15567, "upload_time": "2019-09-09T12:27:21", "url": "https://files.pythonhosted.org/packages/43/07/970d2ceee68cde276e09442e2bfc09d687f5fc545fbc80f0a28b3fd121b0/pycandle-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "86c784cbf8ad34712fb19b64aa8768e9", "sha256": "a7bf58f6671817a0d8308c4d043a84d2cbf7d1db958a79c81abb4511d52a8257" }, "downloads": -1, "filename": "pycandle-1.0.tar.gz", "has_sig": false, "md5_digest": "86c784cbf8ad34712fb19b64aa8768e9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 12525, "upload_time": "2019-09-09T12:27:22", "url": "https://files.pythonhosted.org/packages/d6/ed/62ec86d2c18079d557310968e9fb74a08a0b91b16a8300752fdf9db17272/pycandle-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f976efdde8aad40bd6710421bcb347f2", "sha256": "861bcde07b4e27920f28fb723c18fbc5bef1089bdf739e9f81f43f3b7c9dfdf1" }, "downloads": -1, "filename": "pycandle-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f976efdde8aad40bd6710421bcb347f2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 15567, "upload_time": "2019-09-09T12:27:21", "url": "https://files.pythonhosted.org/packages/43/07/970d2ceee68cde276e09442e2bfc09d687f5fc545fbc80f0a28b3fd121b0/pycandle-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "86c784cbf8ad34712fb19b64aa8768e9", "sha256": "a7bf58f6671817a0d8308c4d043a84d2cbf7d1db958a79c81abb4511d52a8257" }, "downloads": -1, "filename": "pycandle-1.0.tar.gz", "has_sig": false, "md5_digest": "86c784cbf8ad34712fb19b64aa8768e9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 12525, "upload_time": "2019-09-09T12:27:22", "url": "https://files.pythonhosted.org/packages/d6/ed/62ec86d2c18079d557310968e9fb74a08a0b91b16a8300752fdf9db17272/pycandle-1.0.tar.gz" } ] }