The Principles of Learning on Multiple Tasks