The "selflearningai" console command in Europa Universalis IV is essentially a joke. Rather than doing anything productive, it makes the AI behave erratically and unpredictably.
Think of it as a lighthearted Easter egg for players who want to stir things up rather than a serious tool.