def test_model_trainer_regression(): model = CnnGenerator(1, (28, 28, 3)).generate().produce_model() train_data, test_data = get_regression_data_loaders() ModelTrainer(model, train_data=train_data, test_data=test_data, metric=MSE, loss_function=regression_loss, verbose=False).train_model(max_iter_num=3)
def test_model_trainer_regression(): model = CnnGenerator(1, (28, 28, 3)).generate().produce_model() train_data, test_data = get_regression_data_loaders() ModelTrainer(model, train_data=train_data, test_data=test_data, metric=MSE, loss_function=regression_loss, verbose=False, path=TEST_TEMP_DIR).train_model(max_iter_num=3) clean_dir(TEST_TEMP_DIR)
def test_model_trainer_regression(): model = CnnGenerator(1, (28, 28, 3)).generate().produce_model() train_data, test_data = get_regression_data_loaders() ModelTrainer(model, train_data=train_data, test_data=test_data, metric=MSE, loss_function=Backend.regression_loss, verbose=False, path=TEST_TEMP_DIR).train_model(max_iter_num=3) clean_dir(TEST_TEMP_DIR)
def test_model_trainer_regression(): model = CnnGenerator(1, (28, 28, 3)).generate().produce_model() train_data, test_data = get_regression_data_loaders() ModelTrainer(model, train_data, test_data, MSE, regression_loss, False).train_model(max_iter_num=3)