MAINT remove useless import
ENH more optimizations for RBM

Shaved off another ~12% on the digits example; the biggest part of the
savings is in _sample_visibles.