mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-11 14:56:55 +08:00
Add data analysis feature for report (#918)
* Add data analysis feature for report * better display
This commit is contained in:
@@ -74,7 +74,7 @@ class DNNModelPytorch(Model):
|
||||
data_parall=False,
|
||||
scheduler: Optional[Union[Callable]] = "default", # when it is Callable, it accept one argument named optimizer
|
||||
init_model=None,
|
||||
eval_train_metric=True,
|
||||
eval_train_metric=False,
|
||||
pt_model_uri="qlib.contrib.model.pytorch_nn.Net",
|
||||
pt_model_kwargs={
|
||||
"input_dim": 360,
|
||||
@@ -290,7 +290,7 @@ class DNNModelPytorch(Model):
|
||||
)
|
||||
R.log_metrics(train_metric=metric_train, step=step)
|
||||
else:
|
||||
metric_train = -1
|
||||
metric_train = np.nan
|
||||
if verbose:
|
||||
self.logger.info(
|
||||
f"[Step {step}]: train_loss {train_loss:.6f}, valid_loss {loss_val:.6f}, train_metric {metric_train:.6f}, valid_metric {metric_val:.6f}"
|
||||
|
||||
Reference in New Issue
Block a user