dsipts.models.informer package

Submodules

dsipts.models.informer.attn module

class dsipts.models.informer.attn.AttentionLayer(attention, d_model, n_heads, d_keys=None, d_values=None, mix=False)

Bases: Module

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(queries, keys, values, attn_mask)

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

class dsipts.models.informer.attn.FullAttention(mask_flag=True, factor=5, scale=None, attention_dropout=0.1, output_attention=False)

Bases: Module

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(queries, keys, values, attn_mask)

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

class dsipts.models.informer.attn.ProbAttention(mask_flag=True, factor=5, scale=None, attention_dropout=0.1, output_attention=False)

Bases: Module

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(queries, keys, values, attn_mask)

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

class dsipts.models.informer.attn.ProbMask(B, H, L, index, scores, device)

Bases: object

property mask
class dsipts.models.informer.attn.TriangularCausalMask(B, L, device)

Bases: object

property mask

dsipts.models.informer.decoder module

class dsipts.models.informer.decoder.Decoder(layers, norm_layer=None)

Bases: Module

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(x, cross, x_mask=None, cross_mask=None)

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

class dsipts.models.informer.decoder.DecoderLayer(self_attention, cross_attention, d_model, d_ff=None, dropout=0.1, activation='relu')

Bases: Module

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(x, cross, x_mask=None, cross_mask=None)

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

dsipts.models.informer.embed module

class dsipts.models.informer.embed.DataEmbedding(c_in, d_model, embs, dropout=0.1)

Bases: Module

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(x, x_mark)

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

class dsipts.models.informer.embed.FixedEmbedding(c_in, d_model)

Bases: Module

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(x)

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

class dsipts.models.informer.embed.PositionalEmbedding(d_model, max_len=5000)

Bases: Module

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(x)

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

class dsipts.models.informer.embed.TemporalEmbedding(d_model, embed_type='fixed', freq='h')

Bases: Module

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(x)

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

class dsipts.models.informer.embed.TimeFeatureEmbedding(d_model, embed_type='timeF', freq='h')

Bases: Module

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(x)

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

class dsipts.models.informer.embed.TokenEmbedding(c_in, d_model)

Bases: Module

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(x)

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

dsipts.models.informer.encoder module

class dsipts.models.informer.encoder.ConvLayer(c_in)

Bases: Module

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(x)

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

class dsipts.models.informer.encoder.Encoder(attn_layers, conv_layers=None, norm_layer=None)

Bases: Module

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(x, attn_mask=None)

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

class dsipts.models.informer.encoder.EncoderLayer(attention, d_model, d_ff=None, dropout=0.1, activation='relu')

Bases: Module

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(x, attn_mask=None)

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

class dsipts.models.informer.encoder.EncoderStack(encoders, inp_lens)

Bases: Module

Initialize internal Module state, shared by both nn.Module and ScriptModule.

forward(x, attn_mask=None)

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

Module contents