Download annotations/annotation_26/function_info.json from mcy98/RECODE-H: direct link, hf CLI and curl.
- Browser
- Download file 14.5 kB
-
https://huggingface.co/datasets/mcy98/RECODE-H/resolve/main/annotations/annotation_26/function_info.json
- Command line
-
hf download hf://datasets/mcy98/RECODE-H/annotations/annotation_26/function_info.json
-
curl -L -o function_info.json https://huggingface.co/datasets/mcy98/RECODE-H/resolve/main/annotations/annotation_26/function_info.json
14.5 kB
| [ | |
| { | |
| "function_name": "Model.__init__", | |
| "file_path": "models/iTransformer.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "super", | |
| "functionality": "Calls the __init__ method of the parent class (nn.Module).", | |
| "input": "(Model, self)", | |
| "output": "object", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "DataEmbedding_inverted", | |
| "functionality": "Initializes the inverted data embedding layer.", | |
| "input": "configs.seq_len, configs.d_model, configs.embed, configs.freq, configs.dropout", | |
| "output": "DataEmbedding_inverted object", | |
| "location_or_namespace": "layers.Embed" | |
| }, | |
| { | |
| "function_call_name": "FullAttention", | |
| "functionality": "Initializes the full attention mechanism.", | |
| "input": "False, configs.factor, attention_dropout=configs.dropout, output_attention=False", | |
| "output": "FullAttention object", | |
| "location_or_namespace": "layers.SelfAttention_Family" | |
| }, | |
| { | |
| "function_call_name": "AttentionLayer", | |
| "functionality": "Initializes an attention layer.", | |
| "input": "FullAttention_object, configs.d_model, configs.n_heads", | |
| "output": "AttentionLayer object", | |
| "location_or_namespace": "layers.SelfAttention_Family" | |
| }, | |
| { | |
| "function_call_name": "EncoderLayer", | |
| "functionality": "Initializes an encoder layer.", | |
| "input": "AttentionLayer_object, configs.d_model, configs.d_ff, dropout=configs.dropout, activation=configs.activation", | |
| "output": "EncoderLayer object", | |
| "location_or_namespace": "layers.Transformer_EncDec" | |
| }, | |
| { | |
| "function_call_name": "range", | |
| "functionality": "Generates a sequence of numbers.", | |
| "input": "configs.e_layers", | |
| "output": "iterator", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "torch.nn.LayerNorm", | |
| "functionality": "Initializes a layer normalization module.", | |
| "input": "configs.d_model", | |
| "output": "LayerNorm object", | |
| "location_or_namespace": "torch.nn" | |
| }, | |
| { | |
| "function_call_name": "Encoder", | |
| "functionality": "Initializes the encoder.", | |
| "input": "[EncoderLayer_objects_list], norm_layer=LayerNorm_object", | |
| "output": "Encoder object", | |
| "location_or_namespace": "layers.Transformer_EncDec" | |
| }, | |
| { | |
| "function_call_name": "torch.nn.Linear", | |
| "functionality": "Initializes a linear transformation module.", | |
| "input": "input_features, output_features, bias=True", | |
| "output": "Linear object", | |
| "location_or_namespace": "torch.nn" | |
| }, | |
| { | |
| "function_call_name": "torch.nn.functional.gelu", | |
| "functionality": "Applies the Gaussian Error Linear Unit function.", | |
| "input": "tensor", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.nn.functional" | |
| }, | |
| { | |
| "function_call_name": "torch.nn.Dropout", | |
| "functionality": "Initializes a dropout module.", | |
| "input": "configs.dropout", | |
| "output": "Dropout object", | |
| "location_or_namespace": "torch.nn" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "Model.forecast", | |
| "file_path": "models/iTransformer.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "x_enc.mean", | |
| "functionality": "Computes the mean of tensor elements.", | |
| "input": "1, keepdim=True", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| }, | |
| { | |
| "function_call_name": "means.detach", | |
| "functionality": "Detaches the tensor from the computation graph.", | |
| "input": "", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| }, | |
| { | |
| "function_call_name": "torch.var", | |
| "functionality": "Computes the variance of tensor elements.", | |
| "input": "x_enc, dim=1, keepdim=True, unbiased=False", | |
| "output": "tensor", | |
| "location_or_namespace": "torch" | |
| }, | |
| { | |
| "function_call_name": "torch.sqrt", | |
| "functionality": "Computes the square root of tensor elements.", | |
| "input": "tensor", | |
| "output": "tensor", | |
| "location_or_namespace": "torch" | |
| }, | |
| { | |
| "function_call_name": "self.enc_embedding", | |
| "functionality": "Passes input through the embedding layer.", | |
| "input": "x_enc, x_mark_enc", | |
| "output": "tensor", | |
| "location_or_namespace": "self" | |
| }, | |
| { | |
| "function_call_name": "self.encoder", | |
| "functionality": "Passes input through the encoder.", | |
| "input": "enc_out, attn_mask=None", | |
| "output": "tensor, tensor or None", | |
| "location_or_namespace": "self" | |
| }, | |
| { | |
| "function_call_name": "self.projection", | |
| "functionality": "Passes input through the projection layer.", | |
| "input": "enc_out", | |
| "output": "tensor", | |
| "location_or_namespace": "self" | |
| }, | |
| { | |
| "function_call_name": "tensor.permute", | |
| "functionality": "Permutes the dimensions of a tensor.", | |
| "input": "0, 2, 1", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| }, | |
| { | |
| "function_call_name": "stdev.unsqueeze", | |
| "functionality": "Returns a new tensor with a dimension of size one inserted at the specified position.", | |
| "input": "1", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| }, | |
| { | |
| "function_call_name": "tensor.repeat", | |
| "functionality": "Repeats tensor elements along specified dimensions.", | |
| "input": "1, self.pred_len, 1", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| }, | |
| { | |
| "function_call_name": "means.unsqueeze", | |
| "functionality": "Returns a new tensor with a dimension of size one inserted at the specified position.", | |
| "input": "1", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "Model.imputation", | |
| "file_path": "models/iTransformer.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "x_enc.mean", | |
| "functionality": "Computes the mean of tensor elements.", | |
| "input": "1, keepdim=True", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| }, | |
| { | |
| "function_call_name": "means.detach", | |
| "functionality": "Detaches the tensor from the computation graph.", | |
| "input": "", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| }, | |
| { | |
| "function_call_name": "torch.var", | |
| "functionality": "Computes the variance of tensor elements.", | |
| "input": "x_enc, dim=1, keepdim=True, unbiased=False", | |
| "output": "tensor", | |
| "location_or_namespace": "torch" | |
| }, | |
| { | |
| "function_call_name": "torch.sqrt", | |
| "functionality": "Computes the square root of tensor elements.", | |
| "input": "tensor", | |
| "output": "tensor", | |
| "location_or_namespace": "torch" | |
| }, | |
| { | |
| "function_call_name": "self.enc_embedding", | |
| "functionality": "Passes input through the embedding layer.", | |
| "input": "x_enc, x_mark_enc", | |
| "output": "tensor", | |
| "location_or_namespace": "self" | |
| }, | |
| { | |
| "function_call_name": "self.encoder", | |
| "functionality": "Passes input through the encoder.", | |
| "input": "enc_out, attn_mask=None", | |
| "output": "tensor, tensor or None", | |
| "location_or_namespace": "self" | |
| }, | |
| { | |
| "function_call_name": "self.projection", | |
| "functionality": "Passes input through the projection layer.", | |
| "input": "enc_out", | |
| "output": "tensor", | |
| "location_or_namespace": "self" | |
| }, | |
| { | |
| "function_call_name": "tensor.permute", | |
| "functionality": "Permutes the dimensions of a tensor.", | |
| "input": "0, 2, 1", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| }, | |
| { | |
| "function_call_name": "stdev.unsqueeze", | |
| "functionality": "Returns a new tensor with a dimension of size one inserted at the specified position.", | |
| "input": "1", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| }, | |
| { | |
| "function_call_name": "tensor.repeat", | |
| "functionality": "Repeats tensor elements along specified dimensions.", | |
| "input": "1, L, 1", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| }, | |
| { | |
| "function_call_name": "means.unsqueeze", | |
| "functionality": "Returns a new tensor with a dimension of size one inserted at the specified position.", | |
| "input": "1", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "Model.anomaly_detection", | |
| "file_path": "models/iTransformer.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "x_enc.mean", | |
| "functionality": "Computes the mean of tensor elements.", | |
| "input": "1, keepdim=True", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| }, | |
| { | |
| "function_call_name": "means.detach", | |
| "functionality": "Detaches the tensor from the computation graph.", | |
| "input": "", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| }, | |
| { | |
| "function_call_name": "torch.var", | |
| "functionality": "Computes the variance of tensor elements.", | |
| "input": "x_enc, dim=1, keepdim=True, unbiased=False", | |
| "output": "tensor", | |
| "location_or_namespace": "torch" | |
| }, | |
| { | |
| "function_call_name": "torch.sqrt", | |
| "functionality": "Computes the square root of tensor elements.", | |
| "input": "tensor", | |
| "output": "tensor", | |
| "location_or_namespace": "torch" | |
| }, | |
| { | |
| "function_call_name": "self.enc_embedding", | |
| "functionality": "Passes input through the embedding layer.", | |
| "input": "x_enc, None", | |
| "output": "tensor", | |
| "location_or_namespace": "self" | |
| }, | |
| { | |
| "function_call_name": "self.encoder", | |
| "functionality": "Passes input through the encoder.", | |
| "input": "enc_out, attn_mask=None", | |
| "output": "tensor, tensor or None", | |
| "location_or_namespace": "self" | |
| }, | |
| { | |
| "function_call_name": "self.projection", | |
| "functionality": "Passes input through the projection layer.", | |
| "input": "enc_out", | |
| "output": "tensor", | |
| "location_or_namespace": "self" | |
| }, | |
| { | |
| "function_call_name": "tensor.permute", | |
| "functionality": "Permutes the dimensions of a tensor.", | |
| "input": "0, 2, 1", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| }, | |
| { | |
| "function_call_name": "stdev.unsqueeze", | |
| "functionality": "Returns a new tensor with a dimension of size one inserted at the specified position.", | |
| "input": "1", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| }, | |
| { | |
| "function_call_name": "tensor.repeat", | |
| "functionality": "Repeats tensor elements along specified dimensions.", | |
| "input": "1, L, 1", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| }, | |
| { | |
| "function_call_name": "means.unsqueeze", | |
| "functionality": "Returns a new tensor with a dimension of size one inserted at the specified position.", | |
| "input": "1", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "Model.classification", | |
| "file_path": "models/iTransformer.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "self.enc_embedding", | |
| "functionality": "Passes input through the embedding layer.", | |
| "input": "x_enc, None", | |
| "output": "tensor", | |
| "location_or_namespace": "self" | |
| }, | |
| { | |
| "function_call_name": "self.encoder", | |
| "functionality": "Passes input through the encoder.", | |
| "input": "enc_out, attn_mask=None", | |
| "output": "tensor, tensor or None", | |
| "location_or_namespace": "self" | |
| }, | |
| { | |
| "function_call_name": "self.act", | |
| "functionality": "Applies the activation function (GELU).", | |
| "input": "enc_out", | |
| "output": "tensor", | |
| "location_or_namespace": "self" | |
| }, | |
| { | |
| "function_call_name": "self.dropout", | |
| "functionality": "Applies dropout to the input tensor.", | |
| "input": "output", | |
| "output": "tensor", | |
| "location_or_namespace": "self" | |
| }, | |
| { | |
| "function_call_name": "output.reshape", | |
| "functionality": "Reshapes the tensor to the specified shape.", | |
| "input": "output.shape[0], -1", | |
| "output": "tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| }, | |
| { | |
| "function_call_name": "self.projection", | |
| "functionality": "Passes input through the projection layer.", | |
| "input": "output", | |
| "output": "tensor", | |
| "location_or_namespace": "self" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "Model.forward", | |
| "file_path": "models/iTransformer.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "self.forecast", | |
| "functionality": "Performs forecasting.", | |
| "input": "x_enc, x_mark_enc, x_dec, x_mark_dec", | |
| "output": "tensor", | |
| "location_or_namespace": "self" | |
| }, | |
| { | |
| "function_call_name": "self.imputation", | |
| "functionality": "Performs imputation.", | |
| "input": "x_enc, x_mark_enc, x_dec, x_mark_dec, mask", | |
| "output": "tensor", | |
| "location_or_namespace": "self" | |
| }, | |
| { | |
| "function_call_name": "self.anomaly_detection", | |
| "functionality": "Performs anomaly detection.", | |
| "input": "x_enc", | |
| "output": "tensor", | |
| "location_or_namespace": "self" | |
| }, | |
| { | |
| "function_call_name": "self.classification", | |
| "functionality": "Performs classification.", | |
| "input": "x_enc, x_mark_enc", | |
| "output": "tensor", | |
| "location_or_namespace": "self" | |
| } | |
| ] | |
| } | |
| ] |