Issue #2455: Make RBM work with sparse input when verbose=True.