{ "info": { "author": "Edvinas Byla", "author_email": "edvinasbyla@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6" ], "description": "
\n
\n
\n Neural Architecture Search Powered by Swarm Intelligence \ud83d\udc1c\n
\n\n\n# DeepSwarm [](https://www.python.org/downloads/release/python-360/) [](https://www.tensorflow.org/)\n\nDeepSwarm is an open-source library which uses Ant Colony Optimization to tackle the neural architecture search problem. The main goal of DeepSwarm is to automate one of the most tedious and daunting tasks, so people can spend more of their time on more important and interesting things. DeepSwarm offers a powerful configuration system which allows you to fine-tune the search space to your needs.\n\n## Example \ud83d\uddbc\n\n```python\nfrom deepswarm.backends import Dataset, TFKerasBackend\nfrom deepswarm.deepswarm import DeepSwarm\n\ndataset = Dataset(training_examples=x_train, training_labels=y_train, testing_examples=x_test, testing_labels=y_test)\nbackend = TFKerasBackend(dataset=dataset)\ndeepswarm = DeepSwarm(backend=backend)\ntopology = deepswarm.find_topology()\ntrained_topology = deepswarm.train_topology(topology, 50)\n\n```\n\n## Installation \ud83d\udcbe\n\n1. Install the package\n\n ```sh\n pip install deepswarm\n ```\n2. Install one of the implemented backends that you want to use\n\n ```sh\n pip install tensorflow-gpu==1.13.1\n ```\n\n## Usage \ud83d\udd79\n\n1. Create a new file containing the example code\n\n ```sh\n touch train.py\n ```\n2. Create settings directory which contains `default.yaml` file. Alternatively you can run the script and instantly stop it, as this should automatically create settings directory which contains `default.yaml` file\n\n3. Update the newly created YAML file to your dataset needs. The only two important changes you must make are: (1) change the loss function to reflect your task (2) change the shape of input and output nodes\n\n\n## Search \ud83d\udd0e\n\n\n
\n