Optimized design of hardware accelerator based on machine learning | Synapse