Update regression, classification and clustering models for sparse data

Also updated all the doc tests for it