dbn.refine now checks if its previously had a discriminative layer added, and will continue training where it left off if it has.