File size: 28,464 Bytes
e89a301
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
[
    {
      "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": []
    }
  ]