def test_set_params(self): model = VW() assert 'l' not in model.params model.set_params(l=0.1) assert model.params['l'] == 0.1 # confirm model params reset with new construction model = VW() assert 'l' not in model.params
def test_set_params(self): model = VW() assert getattr(model, 'l') is None model.set_params(l=0.1) assert getattr(model, 'l') == 0.1 assert getattr(model, 'vw_') is None # confirm model params reset with new construction model = VW() assert getattr(model, 'l') is None