RECODE-H / annotations /annotation_18 /function_info.json
mcy98's picture
Upload folder using huggingface_hub
4f873ad verified
Raw History Blame Contribute Delete
10.4 kB
[
{
"function_name": "copulaCPTS.__init__",
"file_path": "copulaCPTS.py",
"function_calls": [
{
"function_call_name": "self.split_cali()",
"functionality": "",
"input": "cali_x, cali_y",
"output": "",
"location_or_namespace": "copulaCPTS.py"
}
]
},
{
"function_name": "copulaCPTS.split_cali",
"file_path": "copulaCPTS.py",
"function_calls": [
{
"function_call_name": "print()",
"functionality": "Print a message to standard output.",
"input": "message (str)",
"output": "None",
"location_or_namespace": "builtins"
},
{
"function_call_name": "np.random.choice()",
"functionality": "Randomly select elements from a given 1-D array.",
"input": "a (1-D array-like), size (int), replace (bool)",
"output": "Selected indices (ndarray)",
"location_or_namespace": "numpy"
},
{
"function_call_name": "set()",
"functionality": "Create a new set object.",
"input": "iterable",
"output": "set",
"location_or_namespace": "builtins"
},
{
"function_call_name": "list()",
"functionality": "Construct a list.",
"input": "iterable",
"output": "list",
"location_or_namespace": "builtins"
}
]
},
{
"function_name": "copulaCPTS.calibrate",
"file_path": "copulaCPTS.py",
"function_calls": [
{
"function_call_name": "self.model.predict()",
"functionality": "Generate model predictions for calibration inputs.",
"input": "self.cali_x",
"output": "Predicted outputs (Tensor)",
"location_or_namespace": "model (passed to copulaCPTS)"
},
{
"function_call_name": "torch.norm()",
"functionality": "Computes the matrix norm or vector norm of a tensor.",
"input": "input (Tensor), p=2, dim=-1",
"output": "Norm (Tensor)",
"location_or_namespace": "torch"
},
{
"function_call_name": "Tensor.detach()",
"functionality": "Returns a new tensor detached from the current computation graph.",
"input": "",
"output": "Detached Tensor",
"location_or_namespace": "torch.Tensor"
},
{
"function_call_name": "Tensor.numpy()",
"functionality": "Returns the numpy array representation of a tensor.",
"input": "",
"output": "ndarray",
"location_or_namespace": "torch.Tensor"
}
]
},
{
"function_name": "copulaCPTS.calibrate_l1",
"file_path": "copulaCPTS.py",
"function_calls": [
{
"function_call_name": "self.model.predict()",
"functionality": "Generate model predictions for calibration inputs.",
"input": "self.cali_x",
"output": "Predicted outputs (Tensor)",
"location_or_namespace": "model (passed to copulaCPTS)"
},
{
"function_call_name": "torch.norm()",
"functionality": "Computes the matrix norm or vector norm of a tensor.",
"input": "input (Tensor), p=1, dim=-1",
"output": "Norm (Tensor)",
"location_or_namespace": "torch"
},
{
"function_call_name": "Tensor.detach()",
"functionality": "Returns a new tensor detached from the current computation graph.",
"input": "",
"output": "Detached Tensor",
"location_or_namespace": "torch.Tensor"
},
{
"function_call_name": "Tensor.numpy()",
"functionality": "Returns the numpy array representation of a tensor.",
"input": "",
"output": "ndarray",
"location_or_namespace": "torch.Tensor"
}
]
},
{
"function_name": "copulaCPTS.predict",
"file_path": "copulaCPTS.py",
"function_calls": [
{
"function_call_name": "self.model.predict()",
"functionality": "Generate model predictions for copula calibration set.",
"input": "self.copula_x",
"output": "Predicted outputs (Tensor)",
"location_or_namespace": "model (passed to copulaCPTS)"
},
{
"function_call_name": "torch.norm()",
"functionality": "Computes the matrix norm or vector norm of a tensor.",
"input": "input (Tensor), p=2, dim=-1",
"output": "Norm (Tensor)",
"location_or_namespace": "torch"
},
{
"function_call_name": "Tensor.detach()",
"functionality": "Returns a new tensor detached from the current computation graph.",
"input": "",
"output": "Detached Tensor",
"location_or_namespace": "torch.Tensor"
},
{
"function_call_name": "Tensor.numpy()",
"functionality": "Returns the numpy array representation of a tensor.",
"input": "",
"output": "ndarray",
"location_or_namespace": "torch.Tensor"
},
{
"function_call_name": "search_alpha()",
"functionality": "Searches for the optimal threshold for copula calibration (assumed utility).",
"input": "alphas (ndarray), epsilon (float), epochs (int)",
"output": "Threshold (ndarray)",
"location_or_namespace": "utils.py"
},
{
"function_call_name": "self.model.predict()",
"functionality": "Generate model predictions for test set.",
"input": "X_test",
"output": "Predicted outputs (Tensor)",
"location_or_namespace": "model (passed to copulaCPTS)"
}
]
},
{
"function_name": "copulaCPTS.calc_area",
"file_path": "copulaCPTS.py",
"function_calls": [
{
"function_call_name": "np.pi",
"functionality": "Mathematical constant pi.",
"input": "",
"output": "float",
"location_or_namespace": "numpy"
}
]
},
{
"function_name": "copulaCPTS.calc_area_l1",
"file_path": "copulaCPTS.py",
"function_calls": []
},
{
"function_name": "copulaCPTS.calc_area_3d",
"file_path": "copulaCPTS.py",
"function_calls": [
{
"function_call_name": "np.pi",
"functionality": "Mathematical constant pi.",
"input": "",
"output": "float",
"location_or_namespace": "numpy"
}
]
},
{
"function_name": "copulaCPTS.calc_area_1d",
"file_path": "copulaCPTS.py",
"function_calls": []
},
{
"function_name": "copulaCPTS.calc_coverage",
"file_path": "copulaCPTS.py",
"function_calls": [
{
"function_call_name": "torch.norm()",
"functionality": "Computes the matrix norm or vector norm of a tensor.",
"input": "input (Tensor), p=2, dim=-1",
"output": "Norm (Tensor)",
"location_or_namespace": "torch"
},
{
"function_call_name": "Tensor.detach()",
"functionality": "Returns a new tensor detached from the current computation graph.",
"input": "",
"output": "Detached Tensor",
"location_or_namespace": "torch.Tensor"
},
{
"function_call_name": "Tensor.numpy()",
"functionality": "Returns the numpy array representation of a tensor.",
"input": "",
"output": "ndarray",
"location_or_namespace": "torch.Tensor"
},
{
"function_call_name": "np.array()",
"functionality": "Create a NumPy array.",
"input": "object (array-like)",
"output": "ndarray",
"location_or_namespace": "numpy"
},
{
"function_call_name": "np.all()",
"functionality": "Test whether all array elements along a given axis evaluate to True.",
"input": "array, axis (int)",
"output": "bool or ndarray",
"location_or_namespace": "numpy"
},
{
"function_call_name": "np.mean()",
"functionality": "Compute the arithmetic mean along the specified axis.",
"input": "array (ndarray)",
"output": "float or ndarray",
"location_or_namespace": "numpy"
}
]
},
{
"function_name": "copulaCPTS.calc_coverage_l1",
"file_path": "copulaCPTS.py",
"function_calls": [
{
"function_call_name": "torch.norm()",
"functionality": "Computes the matrix norm or vector norm of a tensor.",
"input": "input (Tensor), p=1, dim=-1",
"output": "Norm (Tensor)",
"location_or_namespace": "torch"
},
{
"function_call_name": "Tensor.detach()",
"functionality": "Returns a new tensor detached from the current computation graph.",
"input": "",
"output": "Detached Tensor",
"location_or_namespace": "torch.Tensor"
},
{
"function_call_name": "Tensor.numpy()",
"functionality": "Returns the numpy array representation of a tensor.",
"input": "",
"output": "ndarray",
"location_or_namespace": "torch.Tensor"
},
{
"function_call_name": "np.array()",
"functionality": "Create a NumPy array.",
"input": "object (array-like)",
"output": "ndarray",
"location_or_namespace": "numpy"
},
{
"function_call_name": "np.all()",
"functionality": "Test whether all array elements along a given axis evaluate to True.",
"input": "array, axis (int)",
"output": "bool or ndarray",
"location_or_namespace": "numpy"
},
{
"function_call_name": "np.mean()",
"functionality": "Compute the arithmetic mean along the specified axis.",
"input": "array (ndarray)",
"output": "float or ndarray",
"location_or_namespace": "numpy"
}
]
},
{
"function_name": "copulaCPTS.calc_coverage_3d",
"file_path": "copulaCPTS.py",
"function_calls": [
{
"function_call_name": "self.calc_coverage()",
"functionality": "",
"input": "radius, y_pred, y_test",
"output": "",
"location_or_namespace": "copulaCPTS.py"
}
]
},
{
"function_name": "copulaCPTS.calc_coverage_1d",
"file_path": "copulaCPTS.py",
"function_calls": [
{
"function_call_name": "self.calc_coverage()",
"functionality": "",
"input": "radius, y_pred, y_test",
"output": "",
"location_or_namespace": "copulaCPTS.py"
}
]
}
]