MCPcopy Create free account
hub / github.com/BorealisAI/scaleformer / __init__

Method __init__

models/NHitsMS.py:158–164  ·  view source on GitHub ↗
(self, in_features, out_features, n_time_in)

Source from the content-addressed store, hash-verified

156
157class _sEncoder(nn.Module):
158 def __init__(self, in_features, out_features, n_time_in):
159 super(_sEncoder, self).__init__()
160 layers = [nn.Dropout(p=0.5),
161 nn.Linear(in_features=in_features, out_features=out_features),
162 nn.ReLU()]
163 self.encoder = nn.Sequential(*layers)
164 self.repeat = RepeatVector(repeats=n_time_in)
165
166 def forward(self, x):
167 # Encode and repeat values to match time

Callers

nothing calls this directly

Calls 2

RepeatVectorClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected