AutoML utilizing Genetic Algorithms and Neural Networks
Project description
Blacklight
Genetic algorithms in autoML.
This project aims to use Genetic Algorithms to optimize the topologies of Deep Neural Networks (DNNs) and explore new possibilities that traditional optimization techniques might overlook. The fitness function of the algorithm is the accuracy of the model, and the genes represent the individual topologies.
Installation
Make sure you have Python 3.9 or higher installed (not greater than 3.11).
Windows, Linux
- Create new virtual environment:
pip install -m virtualenv
python -m venv your_virtual_env_name
your_virtual_env_name\Scripts\activate
- Install Tensorflow:
pip install tensorflow
- Install the package:
pip install blacklight
MacOS (Intel)
- Create new virtual environment:
pip install -m virtualenv
python -m venv your_virtual_env_name
your_virtual_env_name\Scripts\activate
- Install Tensorflow:
pip install tensorflow-macos
pip install tensorflow-metal
- Install the package:
pip install blacklight
MacOS (Apple Silicon)
- Download Miniconda from: https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh
- Install Miniconda:
- Navigate to downloads folder
cd ~/Downloads
bash Miniconda3-latest-MacOSX-arm64.sh -b -p $HOME/miniconda
- Navigate to downloads folder
- Activate Miniconda:
source ~/miniconda/bin/activate
- Install TensorFlow dependencies:
conda install -c apple tensorflow-deps
- Install TensorFlow:
pip install tensorflow-macos
pip install tensorflow-metal
- Install the package:
pip install blacklight
Hypothesis
The hypothesis of this project is that DNN topologies will converge to either a local maximum or an absolute maximum over the evolution process, offering better performance than a DNN with randomly selected topology. For this experiment, the project will use equivalent activation functions (ReLU) and SGD for back-propagation, holding everything except the topology constant. Updated documentation coming soon.
Methodology
The project utilizes a genetic algorithm to evolve the topology of the DNN. The algorithm starts with a randomly generated population of DNN topologies and evaluates their fitness using the accuracy of the model. The fittest individuals are selected for reproduction, while the weaker ones are discarded. The offspring of the selected individuals are then created through crossover and mutation. This process is repeated for a specified number of generations, and the best-performing topology is chosen as the final output.
Documentation
Documentation can be found at https://blacklightlabs.github.io/blacklight/html/index.html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for blacklight-0.1.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a97d0a15b735083595fa5e15d0d41dcc1d7bdff6d3a4a0606a2a9cd1e38e7ee9 |
|
MD5 | b8c438531732840c102be8135ce77418 |
|
BLAKE2b-256 | 0dae19259627f86ceb37acb6b61376738f1df8767dd034754bf18070c9d864f0 |