mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-03 11:00:57 +08:00
Fix black error
This commit is contained in:
@@ -34,10 +34,7 @@ class SignalMseRecord(SignalRecord):
|
||||
label = self.load("label.pkl")
|
||||
masks = ~np.isnan(label.values)
|
||||
mse = mean_squared_error(pred.values[masks], label[masks])
|
||||
metrics = {
|
||||
"MSE": mse,
|
||||
"RMSE": np.sqrt(mse)
|
||||
}
|
||||
metrics = {"MSE": mse, "RMSE": np.sqrt(mse)}
|
||||
objects = {"mse.pkl": mse, "rmse.pkl": np.sqrt(mse)}
|
||||
self.recorder.log_metrics(**metrics)
|
||||
self.recorder.save_objects(**objects, artifact_path=self.get_path())
|
||||
|
||||
Reference in New Issue
Block a user