Download annotations/annotation_3/function_info.json from mcy98/RECODE-H: direct link, hf CLI and curl.
- Browser
- Download file 28.5 kB
-
https://huggingface.co/datasets/mcy98/RECODE-H/resolve/main/annotations/annotation_3/function_info.json
- Command line
-
hf download hf://datasets/mcy98/RECODE-H/annotations/annotation_3/function_info.json
-
curl -L -o function_info.json https://huggingface.co/datasets/mcy98/RECODE-H/resolve/main/annotations/annotation_3/function_info.json
28.5 kB
| [ | |
| { | |
| "function_name": "__init__", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "range", | |
| "functionality": "Generates a sequence of numbers.", | |
| "input": "0, max_homology_dim + 1", | |
| "output": "range object", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "list", | |
| "functionality": "Converts an iterable to a list.", | |
| "input": "range_object", | |
| "output": "List[int]", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "Landscape", | |
| "functionality": "Initializes a Persistence Landscape object from the gudhi library.", | |
| "input": "resolution=self.landscape_resolution, keep_endpoints=False", | |
| "output": "gudhi.representations.Landscape object", | |
| "location_or_namespace": "gudhi.representations" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "projectionsX (getter)", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [] | |
| }, | |
| { | |
| "function_name": "projectionsY (getter)", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [] | |
| }, | |
| { | |
| "function_name": "all_landscapesX (getter)", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [] | |
| }, | |
| { | |
| "function_name": "all_landscapesY (getter)", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [] | |
| }, | |
| { | |
| "function_name": "landscapeX (getter)", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [] | |
| }, | |
| { | |
| "function_name": "landscapeY (getter)", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [] | |
| }, | |
| { | |
| "function_name": "projectionsX (setter)", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [] | |
| }, | |
| { | |
| "function_name": "projectionsY (setter)", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [] | |
| }, | |
| { | |
| "function_name": "all_landscapesX (setter)", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [] | |
| }, | |
| { | |
| "function_name": "all_landscapesY (setter)", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [] | |
| }, | |
| { | |
| "function_name": "landscapeX (setter)", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [] | |
| }, | |
| { | |
| "function_name": "landscapeY (setter)", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [] | |
| }, | |
| { | |
| "function_name": "fit", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "_normalize_space", | |
| "functionality": "Normalize a space based on an approximate diameter.", | |
| "input": "X_or_Y, diameter_iterations=normalization_approx_iterations, seed=seed", | |
| "output": "np.ndarray", | |
| "location_or_namespace": "presto/presto.py" | |
| }, | |
| { | |
| "function_call_name": "_generate_projections", | |
| "functionality": "Generate projections of the input data.", | |
| "input": "self.P, X_or_Y, n_components, n_projections, seed=seed, tag=string", | |
| "output": "List[np.ndarray]", | |
| "location_or_namespace": "presto/presto.py" | |
| }, | |
| { | |
| "function_call_name": "_generate_landscapes", | |
| "functionality": "Generate persistence landscapes from projections.", | |
| "input": "projections, self.LS, self.homology_dims, tag=string", | |
| "output": "List[Dict[int, np.ndarray]]", | |
| "location_or_namespace": "presto/presto.py" | |
| }, | |
| { | |
| "function_call_name": "_average_landscape", | |
| "functionality": "Compute the average persistence landscape.", | |
| "input": "all_landscapes, tag=string", | |
| "output": "Dict[int, np.ndarray]", | |
| "location_or_namespace": "presto/presto.py" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "fit_transform", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "type", | |
| "functionality": "Returns the type of an object.", | |
| "input": "self.P", | |
| "output": "type", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "fit", | |
| "functionality": "Fit a topological descriptor to embeddings X & Y.", | |
| "input": "X, Y, n_components=n_components, normalize=normalize, n_projections=N, normalization_approx_iterations=normalization_approx_iterations, seed=seed", | |
| "output": "None", | |
| "location_or_namespace": "presto/presto.py" | |
| }, | |
| { | |
| "function_call_name": "compute_presto_scores", | |
| "functionality": "Computes Presto scores (distance) between two landscapes.", | |
| "input": "self._landscapeX, self._landscapeY, score_type=score_type", | |
| "output": "Union[Dict[int, float], float]", | |
| "location_or_namespace": "presto/presto.py" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "_normalize_space", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "np.random.default_rng", | |
| "functionality": "Construct a new Generator with a default BitGenerator (PCG64).", | |
| "input": "seed", | |
| "output": "numpy.random.Generator", | |
| "location_or_namespace": "numpy.random" | |
| }, | |
| { | |
| "function_call_name": "len", | |
| "functionality": "Return the length of an object.", | |
| "input": "X", | |
| "output": "int", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "rng.choice", | |
| "functionality": "Generates a random sample from a given 1-D array.", | |
| "input": "len(X)", | |
| "output": "random sample (int or array)", | |
| "location_or_namespace": "numpy.random.Generator" | |
| }, | |
| { | |
| "function_call_name": "range", | |
| "functionality": "Generates a sequence of numbers.", | |
| "input": "diameter_iterations - 1", | |
| "output": "range object", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "cdist", | |
| "functionality": "Compute distance between each pair of the two collections of inputs.", | |
| "input": "collection1, collection2 (e.g., [X[subset[-1]]], X or X[subset], X[subset])", | |
| "output": "np.ndarray", | |
| "location_or_namespace": "scipy.spatial.distance" | |
| }, | |
| { | |
| "function_call_name": "ravel", | |
| "functionality": "Return a contiguous flattened array.", | |
| "input": "self (numpy_array from cdist)", | |
| "output": "np.ndarray", | |
| "location_or_namespace": "numpy.ndarray" | |
| }, | |
| { | |
| "function_call_name": "np.argmax", | |
| "functionality": "Returns the indices of the maximum values along an axis.", | |
| "input": "distances (np.ndarray)", | |
| "output": "int or np.ndarray", | |
| "location_or_namespace": "numpy" | |
| }, | |
| { | |
| "function_call_name": "list.append", | |
| "functionality": "Append object to the end of the list.", | |
| "input": "new_point (int)", | |
| "output": "None", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "np.max", | |
| "functionality": "Return the maximum of an array or maximum along an axis.", | |
| "input": "pairwise_distances (np.ndarray)", | |
| "output": "scalar or np.ndarray", | |
| "location_or_namespace": "numpy" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "_generate_projections", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "np.random.default_rng", | |
| "functionality": "Construct a new Generator with a default BitGenerator (PCG64).", | |
| "input": "seed", | |
| "output": "numpy.random.Generator", | |
| "location_or_namespace": "numpy.random" | |
| }, | |
| { | |
| "function_call_name": "rng.choice", | |
| "functionality": "Generates a random sample from a given 1-D array.", | |
| "input": "2**16 - 1, n_projections, replace=False", | |
| "output": "np.ndarray", | |
| "location_or_namespace": "numpy.random.Generator" | |
| }, | |
| { | |
| "function_call_name": "tolist", | |
| "functionality": "Return the array as an a.ndim-levels deep nested list of Python scalars.", | |
| "input": "self (numpy_array from rng.choice)", | |
| "output": "list", | |
| "location_or_namespace": "numpy.ndarray" | |
| }, | |
| { | |
| "function_call_name": "tqdm", | |
| "functionality": "Instantiate a progress bar.", | |
| "input": "range(n_projections), total=n_projections, desc=desc", | |
| "output": "tqdm_object", | |
| "location_or_namespace": "tqdm" | |
| }, | |
| { | |
| "function_call_name": "range", | |
| "functionality": "Generates a sequence of numbers.", | |
| "input": "n_projections", | |
| "output": "range object", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "list.pop", | |
| "functionality": "Remove and return item at index (default last).", | |
| "input": "self (list, e.g. seeds)", | |
| "output": "item from list", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "np.random.mtrand.RandomState", | |
| "functionality": "Container for the Mersenne Twister pseudo-random number generator.", | |
| "input": "seed (from seeds.pop())", | |
| "output": "RandomState object", | |
| "location_or_namespace": "numpy.random.mtrand" | |
| }, | |
| { | |
| "function_call_name": "P (projector class instantiation)", | |
| "functionality": "Initializes a projector object (e.g., PCA, GaussianRandomProjection).", | |
| "input": "n_components=dim, random_state=state", | |
| "output": "projector object (e.g. PCA instance)", | |
| "location_or_namespace": "sklearn.decomposition or sklearn.random_projection (depends on P)" | |
| }, | |
| { | |
| "function_call_name": "projector.fit_transform", | |
| "functionality": "Fit to data, then transform it. Method of the instantiated projector.", | |
| "input": "X (np.ndarray)", | |
| "output": "np.ndarray", | |
| "location_or_namespace": "sklearn.base.TransformerMixin (inherited by PCA, Gauss)" | |
| }, | |
| { | |
| "function_call_name": "list.append", | |
| "functionality": "Append object to the end of the list.", | |
| "input": "projected_data (np.ndarray)", | |
| "output": "None", | |
| "location_or_namespace": "built-in" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "_generate_landscapes", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "tqdm", | |
| "functionality": "Instantiate a progress bar.", | |
| "input": "projections, total=len(projections), desc=desc", | |
| "output": "tqdm_object", | |
| "location_or_namespace": "tqdm" | |
| }, | |
| { | |
| "function_call_name": "len", | |
| "functionality": "Return the length of an object.", | |
| "input": "projections (List[np.ndarray])", | |
| "output": "int", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "np.array", | |
| "functionality": "Create an array.", | |
| "input": "[]", | |
| "output": "np.ndarray", | |
| "location_or_namespace": "numpy" | |
| }, | |
| { | |
| "function_call_name": "gd.AlphaComplex", | |
| "functionality": "Construct an Alpha complex from points.", | |
| "input": "points=X_ (np.ndarray), precision=\"fast\"", | |
| "output": "gudhi.AlphaComplex object", | |
| "location_or_namespace": "gudhi" | |
| }, | |
| { | |
| "function_call_name": "create_simplex_tree", | |
| "functionality": "Creates a simplex tree from the Alpha complex.", | |
| "input": "self (AlphaComplex object)", | |
| "output": "gudhi.SimplexTree object", | |
| "location_or_namespace": "gudhi.AlphaComplex" | |
| }, | |
| { | |
| "function_call_name": "persistence", | |
| "functionality": "Computes persistence of the simplex tree.", | |
| "input": "self (SimplexTree object)", | |
| "output": "None (modifies SimplexTree object in place)", | |
| "location_or_namespace": "gudhi.SimplexTree" | |
| }, | |
| { | |
| "function_call_name": "_mask_infinities", | |
| "functionality": "Removes persistence pairs with infinite death time.", | |
| "input": "persistence_intervals_array (np.ndarray)", | |
| "output": "np.ndarray", | |
| "location_or_namespace": "presto/presto.py" | |
| }, | |
| { | |
| "function_call_name": "persistence_intervals_in_dimension", | |
| "functionality": "Returns persistence intervals for a given homology dimension.", | |
| "input": "dim (int)", | |
| "output": "np.ndarray", | |
| "location_or_namespace": "gudhi.SimplexTree" | |
| }, | |
| { | |
| "function_call_name": "LS.fit_transform", | |
| "functionality": "Computes the persistence landscape from persistence diagrams. Method of gudhi.representations.Landscape object.", | |
| "input": "[persistence_pairs (np.ndarray)]", | |
| "output": "np.ndarray", | |
| "location_or_namespace": "gudhi.representations.Landscape" | |
| }, | |
| { | |
| "function_call_name": "list.append", | |
| "functionality": "Append object to the end of the list.", | |
| "input": "landscape (Dict[int, np.ndarray])", | |
| "output": "None", | |
| "location_or_namespace": "built-in" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "compute_presto_scores", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "_subtract_landscapes", | |
| "functionality": "Subtracts landscapeY from landscapeX element-wise for each homology dimension.", | |
| "input": "landscapeX (Dict[int, np.ndarray]), landscapeY (Dict[int, np.ndarray])", | |
| "output": "Dict[int, np.ndarray]", | |
| "location_or_namespace": "presto/presto.py" | |
| }, | |
| { | |
| "function_call_name": "_compute_landscape_norm", | |
| "functionality": "Computes the norm of a persistence landscape.", | |
| "input": "subtracted_landscape (Dict[int, np.ndarray]), score_type=score_type (str)", | |
| "output": "Union[Dict[int, float], float]", | |
| "location_or_namespace": "presto/presto.py" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "compute_local_presto_sensitivity", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "len", | |
| "functionality": "Return the length of an object.", | |
| "input": "landscape_equivalence_classes (List[List[Dict[int, np.ndarray]]])", | |
| "output": "int", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "sum", | |
| "functionality": "Sums the items of an iterable.", | |
| "input": "generator_expression (Presto.compute_presto_variance(Q) for Q in ...)", | |
| "output": "float or int", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "compute_presto_variance", | |
| "functionality": "Computes the variance of landscape norms.", | |
| "input": "Q (List[Dict[int, np.ndarray]])", | |
| "output": "float", | |
| "location_or_namespace": "presto/presto.py" | |
| }, | |
| { | |
| "function_call_name": "np.sqrt", | |
| "functionality": "Return the non-negative square-root of an array, element-wise.", | |
| "input": "sum_of_variances / q_i (float)", | |
| "output": "float or np.ndarray", | |
| "location_or_namespace": "numpy" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "compute_global_presto_sensitivity", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "len", | |
| "functionality": "Return the length of an object.", | |
| "input": "landscape_equivalence_classes_per_dim (List[List[List[Dict[int, np.ndarray]]]])", | |
| "output": "int", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "sum", | |
| "functionality": "Sums the items of an iterable.", | |
| "input": "generator_expression (Presto.compute_local_presto_sensitivity(...)**2 for ...)", | |
| "output": "float or int", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "compute_local_presto_sensitivity", | |
| "functionality": "Computes local Presto sensitivity.", | |
| "input": "landscape_equivalence_classes (List[List[Dict[int, np.ndarray]]])", | |
| "output": "float", | |
| "location_or_namespace": "presto/presto.py" | |
| }, | |
| { | |
| "function_call_name": "np.sqrt", | |
| "functionality": "Return the non-negative square-root of an array, element-wise.", | |
| "input": "sum_of_local_sensitivities / c (float)", | |
| "output": "float or np.ndarray", | |
| "location_or_namespace": "numpy" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "compute_individual_presto_sensitivity", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "compute_presto_coordinate_sensitivity", | |
| "functionality": "Computes Presto coordinate sensitivity (square root of Presto variance).", | |
| "input": "landscapes (List[Dict[int, np.ndarray]])", | |
| "output": "float", | |
| "location_or_namespace": "presto/presto.py" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "compute_presto_coordinate_sensitivity", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "compute_presto_variance", | |
| "functionality": "Computes the variance of landscape norms.", | |
| "input": "landscapes (List[Dict[int, np.ndarray]])", | |
| "output": "float", | |
| "location_or_namespace": "presto/presto.py" | |
| }, | |
| { | |
| "function_call_name": "np.sqrt", | |
| "functionality": "Return the non-negative square-root of an array, element-wise.", | |
| "input": "result_of_compute_presto_variance (float)", | |
| "output": "float or np.ndarray", | |
| "location_or_namespace": "numpy" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "compute_presto_variance", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "len", | |
| "functionality": "Return the length of an object.", | |
| "input": "landscapes (List[Dict[int, np.ndarray]])", | |
| "output": "int", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "max", | |
| "functionality": "Return the largest item in an iterable or the largest of two or more arguments. Applied to dictionary keys here.", | |
| "input": "landscapes[0].keys() (dict_keys)", | |
| "output": "int (max homology dimension)", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "range", | |
| "functionality": "Generates a sequence of numbers.", | |
| "input": "max_homology_dimension_value + 1", | |
| "output": "range object", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "_compute_landscape_norm_means", | |
| "functionality": "Computes the mean of landscape norms across dimensions, optionally returning all norms.", | |
| "input": "landscapes (List[Dict[int, np.ndarray]]), return_norms=True", | |
| "output": "Tuple[Dict[int, float], List[Dict[int, float]]]", | |
| "location_or_namespace": "presto/presto.py" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "_add_landscapes_abs", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "dict", | |
| "functionality": "Creates a new dictionary.", | |
| "input": "", | |
| "output": "dict", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "dict.keys", | |
| "functionality": "Return a new view of the dictionary's keys.", | |
| "input": "self (dictionary, e.g. landscapes[0])", | |
| "output": "dict_keys", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "sum", | |
| "functionality": "Sums the items of an iterable.", | |
| "input": "generator_expression (np.abs(Li[i]) for Li in landscapes)", | |
| "output": "np.ndarray (sum of numpy arrays)", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "np.abs", | |
| "functionality": "Calculate the absolute value element-wise.", | |
| "input": "Li[i] (np.ndarray)", | |
| "output": "np.ndarray", | |
| "location_or_namespace": "numpy" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "_subtract_landscapes", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "dict", | |
| "functionality": "Creates a new dictionary.", | |
| "input": "", | |
| "output": "dict", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "dict.keys", | |
| "functionality": "Return a new view of the dictionary's keys.", | |
| "input": "self (dictionary, e.g. landscapeX)", | |
| "output": "dict_keys", | |
| "location_or_namespace": "built-in" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "_pivot_landscapes", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "sorted", | |
| "functionality": "Return a new sorted list from the items in iterable.", | |
| "input": "landscapes.keys() (dict_keys)", | |
| "output": "list", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "dict.keys", | |
| "functionality": "Return a new view of the dictionary's keys.", | |
| "input": "self (dictionary, e.g. landscapes)", | |
| "output": "dict_keys", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "len", | |
| "functionality": "Return the length of an object.", | |
| "input": "landscapes[0] (a List[np.array])", | |
| "output": "int", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "list", | |
| "functionality": "Creates a new list.", | |
| "input": "", | |
| "output": "list", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "range", | |
| "functionality": "Generates a sequence of numbers.", | |
| "input": "n_landscapes (int)", | |
| "output": "range object", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "list.append", | |
| "functionality": "Append object to the end of the list.", | |
| "input": "dictionary_comprehension_result (Dict[int, np.ndarray])", | |
| "output": "None", | |
| "location_or_namespace": "built-in" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "_compute_landscape_norm", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "dict.items", | |
| "functionality": "Return a new view of the dictionary's items (key, value pairs).", | |
| "input": "self (dictionary, e.g. landscape)", | |
| "output": "dict_items", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "np.linalg.norm", | |
| "functionality": "Matrix or vector norm.", | |
| "input": "v (np.ndarray)", | |
| "output": "float", | |
| "location_or_namespace": "numpy.linalg" | |
| }, | |
| { | |
| "function_call_name": "sum", | |
| "functionality": "Sums the items of an iterable.", | |
| "input": "norms.values() (dict_values)", | |
| "output": "float", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "dict.values", | |
| "functionality": "Return a new view of the dictionary's values.", | |
| "input": "self (dictionary, e.g. norms)", | |
| "output": "dict_values", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "len", | |
| "functionality": "Return the length of an object.", | |
| "input": "norms.values() (dict_values)", | |
| "output": "int", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "NotImplementedError", | |
| "functionality": "Raise a NotImplementedError exception.", | |
| "input": "score_type (str)", | |
| "output": "exception", | |
| "location_or_namespace": "built-in" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "_compute_landscape_norm_means", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "len", | |
| "functionality": "Return the length of an object.", | |
| "input": "landscapes (List[Dict[int, np.ndarray]])", | |
| "output": "int", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "max", | |
| "functionality": "Return the largest item in an iterable or the largest of two or more arguments. Applied to dictionary keys here.", | |
| "input": "landscapes[0].keys() (dict_keys)", | |
| "output": "int (max homology dimension)", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "dict.keys", | |
| "functionality": "Return a new view of the dictionary's keys.", | |
| "input": "self (dictionary, e.g. landscapes[0])", | |
| "output": "dict_keys", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "_compute_landscape_norm", | |
| "functionality": "Computes the norm of a persistence landscape.", | |
| "input": "L (Dict[int, np.ndarray]), score_type=\"separate\"", | |
| "output": "Dict[int, float]", | |
| "location_or_namespace": "presto/presto.py" | |
| }, | |
| { | |
| "function_call_name": "sum", | |
| "functionality": "Sums the items of an iterable.", | |
| "input": "generator_expression (L[i] for L in landscape_norms)", | |
| "output": "float", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "range", | |
| "functionality": "Generates a sequence of numbers.", | |
| "input": "max_homology_dimension + 1", | |
| "output": "range object", | |
| "location_or_namespace": "built-in" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "_average_landscape", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "tqdm", | |
| "functionality": "Instantiate a progress bar.", | |
| "input": "L (List[Dict[int, np.ndarray]]), desc=desc, total=len(L)", | |
| "output": "tqdm_object", | |
| "location_or_namespace": "tqdm" | |
| }, | |
| { | |
| "function_call_name": "len", | |
| "functionality": "Return the length of an object.", | |
| "input": "L (List[Dict[int, np.ndarray]])", | |
| "output": "int", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "dict.keys", | |
| "functionality": "Return a new view of the dictionary's keys.", | |
| "input": "self (dictionary, e.g. landscape or avg)", | |
| "output": "dict_keys", | |
| "location_or_namespace": "built-in" | |
| }, | |
| { | |
| "function_call_name": "np.zeros_like", | |
| "functionality": "Return an array of zeros with the same shape and type as a given array.", | |
| "input": "landscape[dim] (np.ndarray)", | |
| "output": "np.ndarray", | |
| "location_or_namespace": "numpy" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "_mask_infinities", | |
| "file_path": "presto/presto.py", | |
| "function_calls": [] | |
| } | |
| ] |