Open xiao751 opened 4 years ago
Are you still having this issue? It looks like the logger is being passed from the .train() function to the _get_train_valid_fn() which is then passing it up update_fn through the **kwargs.
Adding a logger=None parameter to the function signature of _get_train_valid_fn might fix the problem.
For example:
_get_train_valid_fn(self, L1_reg, L2_reg, learning_rate, **kwargs)
Would become:
_get_train_valid_fn(self, L1_reg, L2_reg, learning_rate, logger=None, **kwargs)
When I get to this row, I get an error. Why is that? "metrics = model.train(train_data, n_epochs=n_epochs, logger=logger, update_fn=update_fn)" [INFO] Training CoxMLP
TypeError Traceback (most recent call last)