mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-14 16:26:55 +08:00
black format
This commit is contained in:
@@ -146,7 +146,6 @@ class GRU(Model):
|
|||||||
|
|
||||||
raise ValueError("unknown metric `%s`" % self.metric)
|
raise ValueError("unknown metric `%s`" % self.metric)
|
||||||
|
|
||||||
|
|
||||||
def train_epoch(self, x_train, y_train):
|
def train_epoch(self, x_train, y_train):
|
||||||
|
|
||||||
x_train_values = x_train.values
|
x_train_values = x_train.values
|
||||||
|
|||||||
@@ -146,7 +146,6 @@ class LSTM(Model):
|
|||||||
|
|
||||||
raise ValueError("unknown metric `%s`" % self.metric)
|
raise ValueError("unknown metric `%s`" % self.metric)
|
||||||
|
|
||||||
|
|
||||||
def train_epoch(self, x_train, y_train):
|
def train_epoch(self, x_train, y_train):
|
||||||
|
|
||||||
x_train_values = x_train.values
|
x_train_values = x_train.values
|
||||||
|
|||||||
@@ -100,9 +100,7 @@ class SFM_Model(nn.Module):
|
|||||||
x_c = torch.matmul(x * B_W[0], self.W_c) + self.b_c
|
x_c = torch.matmul(x * B_W[0], self.W_c) + self.b_c
|
||||||
x_o = torch.matmul(x * B_W[0], self.W_o) + self.b_o
|
x_o = torch.matmul(x * B_W[0], self.W_o) + self.b_o
|
||||||
|
|
||||||
i = self.inner_activation(
|
i = self.inner_activation(x_i + torch.matmul(h_tm1 * B_U[0], self.U_i))
|
||||||
x_i + torch.matmul(h_tm1 * B_U[0], self.U_i)
|
|
||||||
)
|
|
||||||
ste = self.inner_activation(x_ste + torch.matmul(h_tm1 * B_U[0], self.U_ste))
|
ste = self.inner_activation(x_ste + torch.matmul(h_tm1 * B_U[0], self.U_ste))
|
||||||
fre = self.inner_activation(x_fre + torch.matmul(h_tm1 * B_U[0], self.U_fre))
|
fre = self.inner_activation(x_fre + torch.matmul(h_tm1 * B_U[0], self.U_fre))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user