Edmund Husserl
He initially studied mathematics but then started attending lectures  on psychology and philosophy. Husserl was so impressed by Brentano that he decided to dedicate his life to philosophy.