Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/harvard-edge/cs249r_book
/ functions
Functions
13,553 in github.com/harvard-edge/cs249r_book
⨍
Functions
13,553
◇
Types & classes
1,810
↳
Endpoints
20
↓ 2 callers
Function
v2_15_part_a_result
(packet, workload_mult, utilization_pct)
labs/vol2/lab_15_sustainable_ai.py:473
↓ 2 callers
Function
v2_15_strategy_candidates
(packet, part_b, intensity_pct, governance_ack)
labs/vol2/lab_15_sustainable_ai.py:612
↓ 2 callers
Function
v2_16_first_label
(options)
labs/vol2/lab_16_responsible_ai.py:124
↓ 2 callers
Method
validateContext
* Validate that we have sufficient content for quiz generation * @param {Object} context - Context object * @returns {Object} Validation result
socratiq/src_shadow/js/utils/viewportContextCapture.js:231
↓ 2 callers
Method
validateInput
()
socratiq/src_shadow/js/components/spaced_repetition/handlers/deck-creation-handler.js:138
↓ 2 callers
Method
validateRoomAndPage
* Validate room and page for comment operations
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:7896
↓ 2 callers
Method
validateRoomAndPage
(e,t)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs:1
↓ 2 callers
Method
validate_and_improve_caption
Apply all quality improvements to a caption. Args: caption: The caption to improve is_table: Whether this is
book/tools/scripts/content/manage_captions.py:757
↓ 2 callers
Function
validate_draft
Run all preflight checks. Never raises; returns a Report.
site/newsletter/cli/core/validate.py:185
↓ 2 callers
Method
validate_external_images
Validate mode: Find external images without downloading. Args: ignore_external (bool): If True, only warn about external
book/tools/scripts/images/manage_external_images.py:412
↓ 2 callers
Function
validate_file
Run all validation checks on a single file.
book/tools/scripts/content/validate_tables.py:334
↓ 2 callers
Function
validate_mcq_option_references
Validate that MCQ answer explanations don't incorrectly reference the correct option. Args: question: MCQ question dict with 'answer
book/tools/scripts/quizzes/_legacy/quizzes_reference.py:4314
↓ 2 callers
Function
validate_proposed
Run Pydantic validation on the proposed body. Returns (ok, error).
interviews/vault-cli/scripts/apply_corrections.py:155
↓ 2 callers
Function
validate_table
Validate table formatting. Returns: (is_valid, list_of_warnings)
book/tools/scripts/content/format_tables.py:685
↓ 2 callers
Function
verify
Run all verification stages. Returns (success, combined_errors).
book/tools/audit/verify.py:280
↓ 2 callers
Function
verify_interconnect_spec
Ensure generated interconnect fields resolve to quantities.
book/tools/audit/generate_appendix_constants.py:242
↓ 2 callers
Function
verify_pdf
Scan ``pdf_path`` (and optional ``log_path``) and return all issues.
book/cli/commands/_pdf_checks.py:572
↓ 2 callers
Function
verify_provd
Walk every leaf and recompute its hash from the artifact on disk.
mlperf-edu/src/mlperf/manifest.py:277
↓ 2 callers
Method
verify_steady_state
Executes a 'Warm-up and Stabilize' phase to reach thermal steady-state. Prevents recording 'Turbo Boost' transients that are unsustai
mlperf-edu/src/mlperf/hardware.py:64
↓ 2 callers
Function
verify_volume_pdf
Verify the default built PDF for ``volume`` (``vol1`` or ``vol2``).
book/cli/commands/_pdf_checks.py:647
↓ 2 callers
Function
visible_text_from_html
(html: str)
tools/audit/audit_math_rendering.py:78
↓ 2 callers
Function
visualize_data_points
Create ASCII visualization of data points with decision boundary.
tinytorch/milestones/01_1958_perceptron/01_rosenblatt_forward.py:176
↓ 2 callers
Function
volume_for
(path: Path)
scripts/cross-references/audit_crossrefs.py:104
↓ 2 callers
Function
waitForPageReady
(position, callback)
socratiq/src_shadow/js/index.js:2383
↓ 2 callers
Function
what_you_need_to_know
Render the compact micro-brief for a lab part.
labs/mlsysbook_labs/ui.py:985
↓ 2 callers
Function
workflow_policy
Package the selected workflow policy and residual blind spot.
labs/mlsysbook_labs/workflow.py:233
↓ 2 callers
Function
workflow_track_profile
Build a workflow profile from canonical track and V1-03 variant data.
labs/mlsysbook_labs/workflow.py:131
↓ 2 callers
Function
wrapCodeBlocks
(preview)
socratiq/src_shadow/js/components/markdown/markdown.js:290
↓ 2 callers
Function
wrapToggle
()
shared/scripts/theme-persist.js:131
↓ 2 callers
Function
write_agent_batches
(run_dir: Path, packet_records: list[dict[str, Any]], batch_size: int)
book/tools/scripts/audit/math_chapter_workflow.py:501
↓ 2 callers
Function
write_jsonl
(path: Path, rows: list[dict[str, Any]])
interviews/vault/scripts/audit_yaml_corpus.py:318
↓ 2 callers
Function
write_output
(rows: list[MarginFigure], fmt: str, out)
book/tools/scripts/margin_figures/inventory_margin_figures.py:249
↓ 2 callers
Function
write_yaml
Atomic write: temp file then os.replace.
interviews/vault-cli/scripts/apply_corrections.py:164
↓ 2 callers
Function
y
()
book/quarto/_extensions/quarto-ext/lightbox/resources/js/glightbox.min.js:1
↓ 2 callers
Function
yscale
(values)
book/tools/scripts/margin_figures/generate_margin_figures.py:584
↓ 2 callers
Function
z
()
book/quarto/_extensions/quarto-ext/lightbox/resources/js/glightbox.min.js:1
↓ 1 callers
Function
B
(e)
book/quarto/_extensions/quarto-ext/lightbox/resources/js/glightbox.min.js:1
↓ 1 callers
Function
X
(e)
book/quarto/_extensions/quarto-ext/lightbox/resources/js/glightbox.min.js:1
↓ 1 callers
Method
__add__
Add two tensors element-wise with broadcasting support. TODO: Implement element-wise addition that works with both Tensors and scalars.
tinytorch/src/01_tensor/01_tensor.py:359
↓ 1 callers
Method
__init__
Initialize chapter discovery. Args: book_dir: Path to the book directory (usually 'quarto')
book/cli/core/discovery.py:145
↓ 1 callers
Method
__init__
(self, start_port: int = None)
tinytorch/tito/core/auth.py:277
↓ 1 callers
Method
__init__
Initialize MLP with two linear layers. TODO: Set up the feed-forward network layers APPROACH: 1. First layer expand
tinytorch/src/13_transformers/13_transformers.py:723
↓ 1 callers
Method
__init__
Initialize embedding layer with Xavier-uniform weights. Args: vocab_size: Size of vocabulary (number of unique tokens)
tinytorch/src/11_embeddings/11_embeddings.py:384
↓ 1 callers
Method
__init__
( self, vocab_size: int = 50257, d_model: int = 128, n_heads: int = 4,
mlperf-edu/reference/cloud/nano_rag_agent.py:98
↓ 1 callers
Method
__init__
(self, input_dim=7, hidden_dim=64, num_layers=2, pred_len=24)
mlperf-edu/reference/cloud/micro_lstm.py:150
↓ 1 callers
Method
__init__
(self, vocab_size=5004, d_model=128, nhead=4, num_layers=2, max_len=64, num_classes=2, dropou
mlperf-edu/reference/cloud/micro_bert.py:174
↓ 1 callers
Method
__init__
(self, in_features, out_features)
mlperf-edu/reference/cloud/micro_gnn.py:69
↓ 1 callers
Method
__init__
(self, num_classes=12, n_mels=40)
mlperf-edu/reference/tiny/dscnn_kws.py:85
↓ 1 callers
Method
__init__
(self, in_channels, out_channels, stride=1, downsample=None)
mlperf-edu/reference/edge/resnet_core.py:41
↓ 1 callers
Method
__init__
(self, in_planes, planes, stride=1)
mlperf-edu/reference/edge/resnet_train.py:24
↓ 1 callers
Method
__len__
(self)
mlsysim/mlsysim/engine/pipeline.py:173
↓ 1 callers
Method
__mul__
Multiply two tensors element-wise (NOT matrix multiplication). TODO: Implement element-wise multiplication (same pattern as __add__).
tinytorch/src/01_tensor/01_tensor.py:423
↓ 1 callers
Function
__resetBreakers
()
interviews/staffml/src/lib/vault-fetch.ts:154
↓ 1 callers
Method
__str__
(self)
book/tools/audit/checks/bibliography_hygiene.py:323
↓ 1 callers
Method
__str__
Human-readable string representation.
tinytorch/src/01_tensor/01_tensor.py:306
↓ 1 callers
Function
_abbrev_pairs
()
book/cli/core/bib_mechanical.py:52
↓ 1 callers
Function
_accent
(volume: str)
labs/mlsysbook_labs/ui.py:566
↓ 1 callers
Function
_adapt
YAML question → legacy-JSON item in the shape corpus.ts expects.
interviews/vault-cli/src/vault_cli/legacy_export.py:74
↓ 1 callers
Method
_add_render_section
Add render section to existing config file. Args: config_file: Path to config file to modify files_to_render: List of
book/cli/commands/build.py:1019
↓ 1 callers
Function
_all_hardware_nodes
Every HardwareNode across the accelerator categories (Tech holds tech-classes, not nodes, so it is excluded).
mlsysim/tests/test_hardware.py:112
↓ 1 callers
Function
_all_positions_in_intervals
(line: str, needle: str, intervals: list[tuple[int, int]])
book/cli/checks/math_multiplier_style.py:109
↓ 1 callers
Function
_all_to_all
(candidate)
book/tools/scripts/margin_figures/generate_margin_figures.py:1931
↓ 1 callers
Function
_applyPulseState
()
socratiq/src_shadow/js/components/meditation/meditationTimer.js:352
↓ 1 callers
Function
_apply_d1_migration
(env: str, worker_dir: Path, migration_sql: Path)
interviews/vault-cli/src/vault_cli/commands/release.py:73
↓ 1 callers
Function
_apply_fix_block
Apply precision fixes to a single- or multi-line fmt assignment.
book/tools/audit/fmt/fix_precision.py:142
↓ 1 callers
Method
_apply_llm_repairs
Apply LLM-based repairs for captions missing **Bold**: format.
book/tools/scripts/content/manage_captions.py:2250
↓ 1 callers
Method
_apply_merges
Apply learned merge rules to token sequence. TODO: Apply BPE merges to token list APPROACH: 1. Start with character
tinytorch/src/10_tokenization/10_tokenization.py:1099
↓ 1 callers
Method
_apply_release_tier
Apply TinyTorch release-role policy before nbgrader stripping.
tinytorch/tito/commands/nbgrader.py:516
↓ 1 callers
Function
_apply_to_entry_fields
(entry)
book/cli/core/bib_mechanical.py:123
↓ 1 callers
Function
_approx_equal
(a: float, b: float)
book/tools/audit/book_check_lego_equations.py:139
↓ 1 callers
Function
_archive_artifacts
(vol: str, ch_path: str, live_pdf: Path, live_tex: Path)
book/tools/audit/chapter_pdf_verify.py:187
↓ 1 callers
Function
_archive_html
(vol: str, ch_path: str, live: Path)
book/tools/audit/chapter_html_verify.py:194
↓ 1 callers
Function
_artifact_dirs
(vol: str, explicit: Path | None)
book/tools/audit/render_playwright_verify.py:178
↓ 1 callers
Function
_arxiv_or_preprint_journal
True if `journal` clearly denotes a preprint / non-volume venue.
book/cli/checks/bib_lint.py:526
↓ 1 callers
Method
_assignment_file_for
(self, module_name: str)
tinytorch/tito/commands/nbgrader.py:259
↓ 1 callers
Function
_assimilate_legacy_debug_logs
Move legacy debug logs into the new _build/debug structure. Returns: List of (source_path, destination_path) moves performed.
book/cli/commands/debug.py:40
↓ 1 callers
Function
_attribute_intervals
(line: str, names: tuple[str, ...])
book/cli/checks/math_multiplier_style.py:87
↓ 1 callers
Function
_audit_double_wrap
Find fmt-family calls whose first positional arg is itself a fmt-family call or a _str/_math/_eq/_frac variable. Both shapes pass a MarkdownS
book/cli/checks/math_canonical.py:319
↓ 1 callers
Function
_audit_file
(path: Path)
book/cli/checks/currency_style.py:100
↓ 1 callers
Function
_audit_file
(path: Path)
book/cli/checks/math_multiplier_style.py:141
↓ 1 callers
Function
_audit_file
(qmd_path: Path)
book/cli/checks/fmt_semantic_suffix.py:146
↓ 1 callers
Function
_audit_fmt_percent_suffix
Flag ``fmt_percent(..., suffix=...)`` calls. ``fmt_percent()`` does not accept a ``suffix=`` keyword argument. The percent glyph is owned by
book/cli/checks/math_canonical.py:620
↓ 1 callers
Function
_audit_implicit_int_cast_precision_zero
Prefer fmt_int(...) over fmt(round/int(...), precision=0) for explicit intent.
book/cli/checks/math_canonical.py:492
↓ 1 callers
Function
_audit_inline_refs
Find `{python} X` references in prose where X (or its last component) doesn't end in an approved suffix.
book/cli/checks/math_canonical.py:281
↓ 1 callers
Function
_audit_manual_fmt_string_assembly
Flag manual prefix/suffix assembly around fmt-family outputs. `fmt()` and `fmt_int()` return MarkdownStr and already support `prefix=`/`suffi
book/cli/checks/math_canonical.py:659
↓ 1 callers
Function
_audit_manual_markdown_math
Flag MarkdownStr("$...$") and MarkdownStr("$$...$$") math wrappers.
book/cli/checks/math_canonical.py:756
↓ 1 callers
Function
_audit_missing_fmt_imports
Find files where a fmt-family helper is called in a cell before any cell imports it from mlsysim.fmt. Quarto cells share a Jupyter kernel nam
book/cli/checks/math_canonical.py:527
↓ 1 callers
Function
_audit_precision_loss_on_small_floats
Find fmt(VAR, precision=0, ...) calls where VAR is assigned a non- integer literal float — i.e., a value with a meaningful fractional part whe
book/cli/checks/math_canonical.py:362
↓ 1 callers
Function
_audit_python_cells
Find _str/_math/_eq/_frac assignments inside Python cells that don't use the canonical formatter family.
book/cli/checks/math_canonical.py:209
↓ 1 callers
Function
_audit_spurious
(html: Path)
book/tools/audit/chapter_html_verify.py:203
↓ 1 callers
Function
_audit_spurious_decimal_precision
Find fmt(INTEGER_LITERAL, precision>=1) — produces spurious .0 at runtime.
book/cli/checks/math_canonical.py:455
↓ 1 callers
Function
_auto_decimal_scale
Pick the largest K/M/B/T scale that keeps a count display >= 1.
mlsysim/mlsysim/fmt.py:270
↓ 1 callers
Method
_auto_layout
High-level volume layout planner. This is the command-level contract for future automatic layout: render or reuse a volume PDF, colle
book/cli/commands/layout.py:1293
↓ 1 callers
Method
_autograde
(self, args: Namespace)
tinytorch/tito/commands/nbgrader.py:594
↓ 1 callers
Function
_base_ref
Determine the base ref to diff this PR/push against. PR mode: GitHub Actions sets ``GITHUB_BASE_REF`` to the target branch name (e.g. ``dev``
interviews/vault-cli/scripts/check_reviewer_identity.py:30
↓ 1 callers
Function
_baseline_variant
Create a conservative track variant for labs not yet hand-authored.
labs/mlsysbook_labs/variants.py:3963
↓ 1 callers
Function
_baseline_variants
()
labs/mlsysbook_labs/variants.py:3999
↓ 1 callers
Method
_benchmark_forward_pass
Benchmark simple forward pass simulation.
tinytorch/tito/commands/benchmark.py:441
↓ 1 callers
Method
_benchmark_matmul
Benchmark matrix multiplication.
tinytorch/tito/commands/benchmark.py:422
↓ 1 callers
Method
_benchmark_tensor_ops
Benchmark basic tensor operations.
tinytorch/tito/commands/benchmark.py:399
← previous
next →
3,501–3,600 of 13,553, ranked by callers