MCPcopy Create free account

hub / github.com/harvard-edge/cs249r_book / functions

Functions13,553 in github.com/harvard-edge/cs249r_book

↓ 3 callersFunctionv1_07_constraint_callout
(title, ok, detail, mitigation)
labs/vol1/lab_07_ml_frameworks.py:351
↓ 3 callersFunctionv1_08_track_amount_system
(profile)
labs/vol1/lab_08_model_train.py:381
↓ 3 callersFunctionv1_09_bool_text
(value)
labs/vol1/lab_09_data_selection.py:665
↓ 3 callersFunctionv1_10_candidate_table
(rows, columns, highlight_label: str = "")
labs/vol1/lab_10_model_compress.py:617
↓ 3 callersFunctionv1_10_metric_cards
(cards: tuple[tuple[str, str, str, str], ...])
labs/vol1/lab_10_model_compress.py:523
↓ 3 callersFunctionv1_10_quant_label
(bit_width: int)
labs/vol1/lab_10_model_compress.py:182
↓ 3 callersFunctionv1_10_status_color
(ok: bool)
labs/vol1/lab_10_model_compress.py:498
↓ 3 callersFunctionv1_13_track_packet
(track_id, serving, variant)
labs/vol1/lab_13_model_serving.py:134
↓ 3 callersFunctionv1_14_error_budget
(amounts, threshold_result, policy_result, rollout_result)
labs/vol1/lab_14_ml_ops.py:554
↓ 3 callersFunctionv1_14_track_amounts
(v1_14_profile, v1_14_ops)
labs/vol1/lab_14_ml_ops.py:399
↓ 3 callersFunctionv1_15_governance_result
(profile, policy, lineage_pct, retention_days, context_pct, access_review_days, owner_value)
labs/vol1/lab_15_responsible_engr.py:674
↓ 3 callersFunctionv1_15_privacy_result
(profile, policy, epsilon, retention_days, raw_pct, local_pct)
labs/vol1/lab_15_responsible_engr.py:577
↓ 3 callersFunctionv1_15_safety_result
(profile, policy, threshold_pct, canary_pct, rollback_minutes, human_review_pct)
labs/vol1/lab_15_responsible_engr.py:633
↓ 3 callersFunctionv1_16_amount_scores
(v1_16_capstone, v1_16_ledger_result, evidence_floor_pct)
labs/vol1/lab_16_ml_conclusion.py:259
↓ 3 callersFunctionv1_16_binding_amount
(amount_rows)
labs/vol1/lab_16_ml_conclusion.py:304
↓ 3 callersFunctionv1_16_lever_audit
(track_id, binding_amount, selected_lever, intensity_pct)
labs/vol1/lab_16_ml_conclusion.py:344
↓ 3 callersFunctionv1_16_lever_catalog
(track_id)
labs/vol1/lab_16_ml_conclusion.py:309
↓ 3 callersFunctionv2_02_metric_cards_html
(cards)
labs/vol2/lab_02_compute_infra.py:545
↓ 3 callersFunctionv2_04_option_labels
(options)
labs/vol2/lab_04_data_storage.py:190
↓ 3 callersFunctionv2_04_selected_row
(rows, key, selected_id)
labs/vol2/lab_04_data_storage.py:943
↓ 3 callersFunctionv2_05_bar_color
(colors, condition)
labs/vol2/lab_05_dist_train.py:146
↓ 3 callersFunctionv2_05_escape
(value)
labs/vol2/lab_05_dist_train.py:122
↓ 3 callersFunctionv2_05_model_constants
()
labs/vol2/lab_05_dist_train.py:207
↓ 3 callersFunctionv2_05_network_options
()
labs/vol2/lab_05_dist_train.py:516
↓ 3 callersFunctionv2_05_step_for_n
(lens, strategy_id, n_gpus, network_id, microbatches)
labs/vol2/lab_05_dist_train.py:539
↓ 3 callersFunctionv2_05_strategy_specs
(lens)
labs/vol2/lab_05_dist_train.py:345
↓ 3 callersFunctionv2_06_row_by_key
(rows, key)
labs/vol2/lab_06_collective_communication.py:462
↓ 3 callersFunctionv2_07_exposure
(fleet_size=None, duration_h=None)
labs/vol2/lab_07_fault_tolerance.py:680
↓ 3 callersFunctionv2_07_plan_result
(plan_id=None, replicas=None, recovery=None)
labs/vol2/lab_07_fault_tolerance.py:780
↓ 3 callersFunctionv2_08_policy_candidates
(packet)
labs/vol2/lab_08_fleet_orch.py:511
↓ 3 callersFunctionv2_08_priority_model
(packet, preempt_pct, urgent_share_pct, checkpoint_min)
labs/vol2/lab_08_fleet_orch.py:363
↓ 3 callersFunctionv2_08_queue_model
(packet, arrival_multiplier, heavy_mix_pct, service_cv)
labs/vol2/lab_08_fleet_orch.py:333
↓ 3 callersFunctionv2_09_capacity_result
(packet, demand_multiplier, units, optimization)
labs/vol2/lab_09_perf_engineering.py:323
↓ 3 callersFunctionv2_10_edge_implication
(track_id, binding_constraint)
labs/vol2/lab_10_inference.py:349
↓ 3 callersFunctionv2_10_rejected_alternative
(track_id, binding_constraint)
labs/vol2/lab_10_inference.py:332
↓ 3 callersFunctionv2_12_guardrail_badge
(ok)
labs/vol2/lab_12_ops_scale.py:314
↓ 3 callersFunctionv2_13_ratio_fig
(colors, title, ratios, labels)
labs/vol2/lab_13_security_privacy.py:956
↓ 3 callersFunctionv2_14_defense_catalog
(track_id)
labs/vol2/lab_14_robust_ai.py:424
↓ 3 callersFunctionv2_14_pct
(value)
labs/vol2/lab_14_robust_ai.py:686
↓ 3 callersFunctionv2_14_shift_options
(track_id)
labs/vol2/lab_14_robust_ai.py:306
↓ 3 callersFunctionvalidate_4d_input
Validate that input tensor is 4D (batch, channels, height, width). Provides educational error messages that anticipate common student mi
tinytorch/src/09_convolutions/09_convolutions.py:303
↓ 3 callersMethodvalidate_chapters
Validate a list of chapter names and return their paths. Args: chapter_names: List of chapter names to validate Returns:
book/cli/core/discovery.py:460
↓ 3 callersFunctionvalidate_entry
Run §5 validation rules against one entry.
book/cli/checks/bib_lint.py:622
↓ 3 callersFunctionvalidate_submission_schema
Validate submission JSON conforms to required schema. This function ensures submissions are: - Complete (no missing required fields)
tinytorch/src/20_capstone/20_capstone.py:1420
↓ 3 callersFunctionvisible_tab_labels
(page, max_tabs: int)
labs/tools/interaction_lab_smoke.py:759
↓ 3 callersFunctionw
()
book/quarto/_extensions/quarto-ext/lightbox/resources/js/glightbox.min.js:1
↓ 3 callersFunctionwalk
(node)
book/tools/audit/emphasis_rollup.py:33
↓ 3 callersFunctionwall
Look up a wall by its canonical number.
mlsysim/mlsysim/engine/walls.py:355
↓ 3 callersFunctionwell
(x, center, width, depth)
site/assets/games/lander.mjs:132
↓ 3 callersFunctionwithCwd
* Shell-safe prefix so the command runs in the given directory. Reused terminals * keep their previous cwd; prefixing with cd ensures the command run
book/vscode-ext/src/utils/terminal.ts:82
↓ 3 callersFunctionwrap_long_lines
Wrap long comment and docstring lines in Python code. This runs after Black formatting to handle lines that Black doesn't wrap (comments and
book/tools/scripts/content/format_python_in_qmd.py:133
↓ 3 callersFunctionwrite_jsonl
(path: Path, rows: list[dict[str, Any]])
interviews/vault/scripts/prepare_semantic_review_queue.py:46
↓ 2 callersFunctionA
(e)
book/quarto/_extensions/quarto-ext/lightbox/resources/js/glightbox.min.js:1
↓ 2 callersFunctionE
(e)
book/quarto/_extensions/quarto-ext/lightbox/resources/js/glightbox.min.js:1
↓ 2 callersFunctionP
(e)
book/quarto/_extensions/quarto-ext/lightbox/resources/js/glightbox.min.js:1
↓ 2 callersFunctionS
(e,t,i)
book/quarto/_extensions/quarto-ext/lightbox/resources/js/glightbox.min.js:1
↓ 2 callersFunction__breakerKind
(url: string)
interviews/staffml/src/lib/vault-fetch.ts:159
↓ 2 callersMethod__init__
Initialize SGD optimizer. TODO: Set up SGD with momentum and weight decay APPROACH: 1. Call parent constructor to s
tinytorch/src/07_optimizers/07_optimizers.py:551
↓ 2 callersMethod__init__
(self, state_dim=4, hidden=128)
mlperf-edu/reference/cloud/micro_rl.py:159
↓ 2 callersMethod__init__
(self, d_model: int, d_hidden: int)
mlperf-edu/reference/cloud/nano_moe.py:31
↓ 2 callersMethod__init__
(self, vocab_size=50257, n_layer=12, n_head=12, n_embd=768, max_seq_len=1024)
mlperf-edu/reference/cloud/nanogpt_core.py:66
↓ 2 callersMethod__init__
(self, n_embd=768, n_head=12, max_seq_len=1024)
mlperf-edu/reference/cloud/gpt2_infer.py:55
↓ 2 callersMethod__init__
(self, in_channels, out_channels)
mlperf-edu/reference/cloud/micro_diffusion.py:48
↓ 2 callersMethod__init__
(self, in_ch, out_ch, kernel_size=3, stride=1, groups=1)
mlperf-edu/reference/mobile/mobilenet_core.py:25
↓ 2 callersFunction_acks_path
(vault_dir: Path)
interviews/vault-cli/src/vault_cli/commands/dup.py:28
↓ 2 callersMethod_add_autogenerated_warnings
(self, console)
tinytorch/tito/commands/dev/export.py:70
↓ 2 callersFunction_add_batch
Validate and add a batch of questions to corpus. Returns count added.
interviews/vault/vault.py:1297
↓ 2 callersFunction_add_budget
(secs: float)
book/tools/scripts/audit/svg_audit.py:210
↓ 2 callersMethod_aggregate
(stats_list: List[Dict])
book/cli/commands/info.py:379
↓ 2 callersFunction_align
Aligns numeric and string metrics for clean CLI output.
mlsysim/mlsysim/show.py:121
↓ 2 callersFunction_angleToMinutes
(angle)
socratiq/src_shadow/js/components/meditation/meditationTimer.js:243
↓ 2 callersFunction_append_registry
Append a single ``{id, created_at, created_by}`` line to id-registry.yaml (append-only; fixes David H3 + C-5 enforcement).
interviews/vault-cli/src/vault_cli/commands/authoring.py:141
↓ 2 callersFunction_apply_fix
(line: str, msg: str, ns: dict | None = None)
book/tools/audit/fmt/fix_precision.py:54
↓ 2 callersFunction_apply_mask
Apply causal mask by setting masked positions to -infinity. TODO: Add large negative values to positions where mask is 0 APPROACH: 1. Co
tinytorch/src/12_attention/12_attention.py:427
↓ 2 callersFunction_apply_renames
(text: str, path: Path, renames: Sequence[Rename])
book/tools/bib_sync_preserve.py:546
↓ 2 callersMethod_avgpool_loops
The core average pooling: compute mean of each window. TODO: Implement the nested loop average pooling APPROACH: 1.
tinytorch/src/09_convolutions/09_convolutions.py:1805
↓ 2 callersFunction_band_side
(x_center: float)
book/cli/checks/margin_geometry.py:109
↓ 2 callersMethod_bib_baseline_key_path
Return the repo-relative path used by bib_lint baseline files.
book/cli/commands/validate.py:9019
↓ 2 callersFunction_bib_field_appears_all_caps
Heuristic: pasted / publisher metadata in ALL CAPS (§5 sentence / mixed case).
book/cli/checks/bib_lint.py:540
↓ 2 callersFunction_bold_spans
Return (open_pos, close_pos_exclusive) for every bold span on the line. Both `**...**` and `***...***` count; single `*...*` italics are NOT b
book/tools/audit/checks/concept_term_capitalization.py:202
↓ 2 callersMethod_book_bib_index
(self)
book/cli/commands/validate.py:8901
↓ 2 callersFunction_build
(entries: dict, *, name: str, doc: str, model_cls, type_map, tech_root, module: str)
mlsysim/mlsysim/core/loader.py:133
↓ 2 callersFunction_build_inputs
(batch: int, seed: int = 42)
mlperf-edu/reference/distributed/ddp_runner.py:26
↓ 2 callersFunction_build_legacy_items
Return frontend-shaped corpus items from YAML source + chains.json.
interviews/vault-cli/src/vault_cli/legacy_export.py:193
↓ 2 callersMethod_build_package
Build package by exporting all modules from src/. This runs 'tito dev export --all' which: 1. Converts src/*.py → modules/*.ipynb (ju
tinytorch/tito/commands/dev/test.py:324
↓ 2 callersMethod_build_report
( self, ns: argparse.Namespace, volumes: list[str], results: list[StageResult]
book/cli/commands/release.py:529
↓ 2 callersFunction_cached_generate
Run autoregressive generation using the KV cache. TODO: Implement the cached generation loop APPROACH: 1. Process prompt tokens one
tinytorch/src/18_memoization/18_memoization.py:1301
↓ 2 callersMethod_callout_block_for_line
( qmd_path: Path, line_num: int, )
book/cli/commands/layout.py:3093
↓ 2 callersFunction_canonical_bytes
Serialize normalized payload to canonical JSON bytes. ``sort_keys=True`` recurses into nested dicts (stdlib behavior). ``separators`` removes
interviews/vault-cli/src/vault_cli/hashing.py:69
↓ 2 callersFunction_canonical_symbol
Normalize a symbol string for matching. Keep LaTeX structure (subscripts) but normalize common wrappers.
book/tools/audit/checks/notation_consistency.py:54
↓ 2 callersMethod_captions_iter_body_lines
Yield (idx, line, in_callout) for lines outside code fences. Tracks div nesting; flags whether the current line sits inside any open
book/cli/commands/validate.py:3463
↓ 2 callersMethod_chapter_files_from_root
Get chapter QMD files from a directory, filtering out parts/.
book/cli/commands/info.py:542
↓ 2 callersMethod_chapter_key
(text: str)
book/cli/commands/layout.py:2928
↓ 2 callersMethod_check_notebook_syntax
Compile each code cell of the student notebook to catch syntax errors before export. Unit tests run against the instructor ``src/`` file, whil
tinytorch/tito/commands/module/workflow.py:1178
↓ 2 callersMethod_check_package_installed
Check if a package is already installed.
tinytorch/tito/commands/setup.py:118
↓ 2 callersMethod_citation_occurrences_for_qmd
(self, path: Path)
book/cli/commands/validate.py:8824
↓ 2 callersFunction_classes_in_code
(code: str)
book/tools/audit/fmt/audit_lego_cells.py:52
↓ 2 callersFunction_clean_markdown
(text: str)
book/tools/scripts/quizzes/build_prior_vocab.py:97
↓ 2 callersFunction_clean_output
(text: str)
book/cli/checks/cli_contract.py:227
↓ 2 callersFunction_collect_base_metrics
Extract base model metrics from benchmark results. TODO: Find the base model's mean value for each metric type APPROACH: 1. Iterate
tinytorch/src/19_benchmarking/19_benchmarking.py:3223
← previousnext →2,001–2,100 of 13,553, ranked by callers