Imported from https://github.com/lessw2020/auto-adaptive-ai