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

Method __init__

models/NHits.py:144–150  ·  view source on GitHub ↗
(self, in_features, out_features, n_time_in)

Source from the content-addressed store, hash-verified

142
143class _sEncoder(nn.Module):
144 def __init__(self, in_features, out_features, n_time_in):
145 super(_sEncoder, self).__init__()
146 layers = [nn.Dropout(p=0.5),
147 nn.Linear(in_features=in_features, out_features=out_features),
148 nn.ReLU()]
149 self.encoder = nn.Sequential(*layers)
150 self.repeat = RepeatVector(repeats=n_time_in)
151
152 def forward(self, x):
153 # 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