Learning and adaptation: 6 pitfalls to avoid