Reading the new post on Financial Hacker "Build Better Strategies! Part 4: Machine Learning" I was remembered to a book I just read that explains in details the machine learning algorithms discussed in the post with source examples in R:

Brett Lantz, Machine Learning with R – Deliver Data Insights with R and Predictive Analytics

Unfortunately the examples there doesn't deal with financial matters but one gets really a comprehensive overview.