MCPcopy Create free account

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

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

↓ 1,995 callersMethodget
(self, qid: str)
interviews/vault-cli/src/vault_cli/chains/embeddings.py:33
↓ 1,973 callersMethodget
(self, name: str)
book/cli/checks/bib_lint.py:307
↓ 1,221 callersMethodcompile
Compiles the mathematical equations into the SciPy format. Args: objective_fn: The mathematical function to MINI
mlsysim/mlsysim/core/optimization/scipy_backend.py:19
↓ 751 callersMethodsplit
(text)
socratiq/src_shadow/js/libs/utils/split_text.js:10
↓ 741 callersMethodpush
()
socratiq/src_shadow/js/libs/vector_db/vectordb/db/vectorDB/utils/SortedArray_lodash.js:12
↓ 562 callersMethodsearch
Executes a grid search across the defined space by passing each parameter combination to the provided evaluation function.
mlsysim/mlsysim/engine/dse.py:81
↓ 490 callersFunctionset
(key, val)
site/assets/games/runtime.mjs:61
↓ 486 callersMethodlower
Lowers the workload into a hardware-agnostic computation graph. Default implementation uses ``parameters`` and ``inference_flops``
mlsysim/mlsysim/models/types.py:120
↓ 480 callersMethodresolve
(u)
book/cli/commands/validate.py:9550
↓ 386 callersMethodadd
(self, issue: Issue)
book/tools/audit/ledger.py:145
↓ 328 callersMethodget
Fetch a persona by its identifier key (cloud, edge, mobile, tiny). Args: key: Persona identifier. Re
mlsysim/mlsysim/sim/personas.py:76
↓ 284 callersMethodtext
(self)
tools/audit/audit_math_rendering.py:74
↓ 275 callersMethodinsert
(object)
socratiq/src_shadow/js/libs/vector_db/vectordb/db/vectorDB/vectordb.js:122
↓ 236 callersMethodstart
()
book/vscode-ext/src/providers/qmdAutoFoldManager.ts:14
↓ 226 callersMethodget
Retrieve cached key-value pairs for attention computation. TODO: Return only the valid cached portion for this layer APPROA
tinytorch/src/18_memoization/18_memoization.py:565
↓ 222 callersMethodadd
(storeName, data)
socratiq/src_shadow/js/libs/utils/indexDb.js:76
↓ 216 callersMethodbackward
Compute gradients (placeholder — gradient computation is separate). For now, this is a stub that students can ignore.
tinytorch/src/04_losses/04_losses.py:460
↓ 211 callersMethodmax
Find maximum values along specified axis. TODO: Find maximum element(s) along axis (same pattern as sum). APPROACH: 1. Use n
tinytorch/src/01_tensor/01_tensor.py:801
↓ 207 callersMethodget
(storeName, key)
socratiq/src_shadow/js/libs/utils/indexDb.js:103
↓ 199 callersMethodfind
(self, rel_path: str, evidence: str)
book/tools/audit/release/programmatic_locate.py:196
↓ 189 callersMethodrun
Run the CLI with given arguments.
book/cli/main.py:584
↓ 189 callersMethodsavefig
(*args, **kwargs)
tinytorch/src/19_benchmarking/19_benchmarking.py:241
↓ 183 callersMethodsum
Sum tensor along specified axis. TODO: Sum all elements or along specific axes. APPROACH: 1. Use np.sum with axis and keepdi
tinytorch/src/01_tensor/01_tensor.py:746
↓ 171 callersMethodwrite
(self, path: Path)
interviews/vault-cli/src/vault_cli/ship.py:67
↓ 154 callersMethodhas
(self, name: str)
book/cli/checks/bib_lint.py:313
↓ 154 callersMethodparse
Parse the table. Returns True if successful, False otherwise. Issues are stored in self.issues.
book/tools/scripts/content/format_tables.py:80
↓ 147 callersMethod_relative_file
(self, path: Path)
book/cli/commands/validate.py:1198
↓ 145 callersMethodcount
* Get count of records in a store
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:7323
↓ 140 callersMethodclose
* Close the database connection
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:7336
↓ 139 callersMethodsubplots
(*args, **kwargs)
tinytorch/src/19_benchmarking/19_benchmarking.py:214
↓ 128 callersMethodread
* Read a record by ID
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:7287
↓ 123 callersFunctionnext
()
mlsysim/docs/styles/landing.js:45
↓ 121 callersFunctionapply_plotly_theme
Apply standard MLSys plot aesthetics.
mlsysim/mlsysim/labs/style.py:653
↓ 117 callersMethodreshape
Reshape tensor to new dimensions. TODO: Reshape tensor while preserving total element count. APPROACH: 1. Handle both reshap
tinytorch/src/01_tensor/01_tensor.py:629
↓ 117 callersMethodsolve
Solves the Roofline performance profile for a single hardware node. Parameters ---------- model : Workload
mlsysim/mlsysim/engine/engine.py:95
↓ 110 callersMethodall
Return all registered items.
mlsysim/mlsysim/core/registry/plugin_manager.py:51
↓ 105 callersMethodobjectStore
()
socratiq/src_shadow/js/libs/vector_db/vectordb/db/vectorDB/vectordb.js:341
↓ 105 callersMethodupdate
Update cache with new key-value pairs for given layer. TODO: Efficiently append new K,V to cache without data copying APPRO
tinytorch/src/18_memoization/18_memoization.py:490
↓ 101 callersMethodmean
Compute mean of tensor along specified axis. TODO: Calculate average of elements along axis (same pattern as sum). APPROACH:
tinytorch/src/01_tensor/01_tensor.py:774
↓ 96 callersFunction_cmd
Escape command examples before rendering in Rich tables.
book/cli/main.py:44
↓ 96 callersMethodtest
Run a test and track results.
tinytorch/tests/integration/test_forward_passes.py:81
↓ 93 callersFunctioncheck
Assert a value is within tolerance of expected.
book/tests/test_units.py:126
↓ 90 callersFunctionsourced
Attach provenance to a scalar used in registries or analyses.
mlsysim/mlsysim/core/provenance.py:137
↓ 89 callersFunctionresolve_mlsysim_ref
Resolve a canonical MLSysIM registry string such as `Hardware.Cloud.H100`.
labs/mlsysbook_labs/registry_refs.py:11
↓ 89 callersFunctionsourced_qty
Attach provenance to a unit-bearing pint Quantity (the Quantity analogue of ``sourced``). The Quantity is returned unchanged for arithmetic/``.m_a
mlsysim/mlsysim/core/provenance.py:148
↓ 86 callersMethodparameters
Return list of trainable parameters. Returns: List of Tensor objects (weights and biases)
tinytorch/src/03_layers/03_layers.py:229
↓ 81 callersFunction_variant
( *, lab_id: str, track_id: str, scenario_id: str, stakeholder: str, workload_summary:
labs/mlsysbook_labs/variants.py:57
↓ 81 callersMethodexecute
Execute the command with error handling.
tinytorch/tito/commands/base.py:79
↓ 80 callersMethod_qmd_files
(self, root: Path)
book/cli/commands/validate.py:1180
↓ 80 callersMethodparameters
Return list of trainable parameters. TODO: Return all tensors that need gradients APPROACH: 1. Start with weight (a
tinytorch/src/03_layers/03_layers.py:370
↓ 79 callersMethodtransaction
(storeName, mode, callback)
socratiq/src_shadow/js/libs/memory/indexDB-utils.js:97
↓ 75 callersMethodstep
Perform SGD update step with momentum. TODO: Implement SGD parameter update by composing helpers APPROACH: 1. For e
tinytorch/src/07_optimizers/07_optimizers.py:653
↓ 72 callersMethod_read_text
(self, path: Path)
book/cli/commands/validate.py:1192
↓ 68 callersFunctionget_track_profile
Return the canonical track profile, accepting legacy category aliases.
labs/mlsysbook_labs/tracks.py:110
↓ 67 callersFunctionget_lab_track_variant
Return the variant for a lab and canonical or legacy track ID.
labs/mlsysbook_labs/variants.py:4023
↓ 67 callersMethodupdate
(e = [])
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js:4750
↓ 66 callersMethodtitle
(*args, **kwargs)
tinytorch/src/19_benchmarking/19_benchmarking.py:232
↓ 66 callersFunctionwrite
(fig, chapter: str, name: str)
book/tools/scripts/margin_figures/generate_margin_figures.py:91
↓ 65 callersMethodclear
(storeName)
socratiq/src_shadow/js/libs/memory/indexDB-utils.js:174
↓ 65 callersFunctionfetch
(request: Request, env: Env)
interviews/staffml/worker/src/index.ts:1032
↓ 65 callersFunctionsource_trace
Render MLSysIM APIs, registry refs, equations, and assumptions.
labs/mlsysbook_labs/ui.py:1104
↓ 61 callersMethodnumel
Return total number of elements (PyTorch-compatible).
tinytorch/src/01_tensor/01_tensor.py:330
↓ 60 callersFunctionfmt
Format a Pint Quantity (or plain number) for narrative text. Returns a MarkdownStr so Quarto inserts the value verbatim (no escape). The
mlsysim/mlsysim/fmt.py:525
↓ 60 callersMethodsave
(self, path: Path)
book/tools/audit/ledger.py:178
↓ 60 callersFunctionv2_15_color
(name, fallback)
labs/vol2/lab_15_sustainable_ai.py:127
↓ 60 callersMethodwalk
(dir: string)
kits/vscode-ext/src/providers/infoTreeProvider.ts:85
↓ 59 callersMethodeval
Set layer to evaluation mode.
tinytorch/src/09_convolutions/09_convolutions.py:2133
↓ 59 callersFunctiontrack
(event: AnalyticsEvent)
interviews/staffml/src/lib/analytics.ts:169
↓ 57 callersMethodgetAll
(storeName)
socratiq/src_shadow/js/libs/utils/indexDb.js:115
↓ 56 callersMethodload
(cls, path: Path)
book/tools/audit/ledger.py:182
↓ 55 callersMethodencode
(text: str)
mlperf-edu/reference/dataset_factory.py:46
↓ 53 callersFunction_ensure_unit
Attach a unit if val is a raw number; verify dimensional correctness AND convert to ``expected_unit`` if it is already a Pint Quantity.
mlsysim/mlsysim/physics/_units.py:10
↓ 52 callersFunctionshowPopover
(shadowEle, message, type = "info", duration = 3000)
socratiq/src_shadow/js/libs/utils/utils.js:400
↓ 51 callersMethodput
(storeName, data)
socratiq/src_shadow/js/libs/utils/indexDb.js:96
↓ 50 callersFunctionmake_issue_id
Generate a deterministic issue ID like 'vol1-h3-titlecase-0042'.
book/tools/audit/ledger.py:211
↓ 50 callersMethodrun
Run the CLI application.
tinytorch/tito/main.py:354
↓ 50 callersFunctionvalidate_at_least
Ensure a numeric value is >= minimum.
mlsysim/mlsysim/core/_validation.py:30
↓ 49 callersMethodevaluate
Runs a full multi-level evaluation of the scenario.
mlsysim/mlsysim/engine/scenarios.py:40
↓ 49 callersMethodzero_grad
Clear gradients from all parameters. TODO: Reset all parameter gradients to None APPROACH: 1. Iterate through all p
tinytorch/src/07_optimizers/07_optimizers.py:285
↓ 48 callersFunctionfmt_usd
Canonical currency formatter — the single, blessed way to render any dollar amount in prose, tables, or callouts. This is the currency m
mlsysim/mlsysim/fmt.py:656
↓ 48 callersFunctionrand
(min, max)
site/assets/games/lander.mjs:85
↓ 45 callersFunctionalert
(shadowElem, text, type)
socratiq/src_shadow/js/libs/utils/utils.js:103
↓ 45 callersMethodexec
(query, params = [])
socratiq/src_shadow/js/components/spaced_repetition/handlers/spaced-repetition-indexdb.js:1440
↓ 45 callersFunctionmargin_axes
(device="other-new", figsize=None)
book/tools/scripts/margin_figures/generate_margin_figures.py:262
↓ 44 callersFunctionfmt_qty
Format a pint Quantity in ``display_unit`` with a canonical unit suffix. Required OUTPUT path for physical quantities in LEGO cells. The valu
mlsysim/mlsysim/fmt.py:1899
↓ 44 callersFunctionmake_ladder
(chapter, name, tiers, *, domain="memory", wall=False, style="bars", color=None)
book/tools/scripts/margin_figures/generate_margin_figures.py:110
↓ 44 callersFunctionv2_15_num
(value, digits=1)
labs/vol2/lab_15_sustainable_ai.py:145
↓ 41 callersMethoddecode
(tokens: list[int])
mlperf-edu/reference/dataset_factory.py:50
↓ 41 callersMethodperformTransaction
(storeNames, mode, operation)
socratiq/src_shadow/js/components/spaced_repetition/handlers/spaced-repetition-indexdb.js:100
↓ 39 callersFunctionbuild_lab_report
Build a Markdown report and JSON snapshot for a lab submission.
labs/mlsysbook_labs/reports.py:70
↓ 39 callersMethodstop
(self)
tinytorch/tito/core/auth.py:375
↓ 39 callersMethodylabel
(*args, **kwargs)
tinytorch/src/19_benchmarking/19_benchmarking.py:229
↓ 38 callersMethodtight_layout
(*args, **kwargs)
tinytorch/src/19_benchmarking/19_benchmarking.py:238
↓ 37 callersMethodforward
Forward pass through linear layer. TODO: Implement y = xW + b APPROACH: 1. Matrix multiply input with weights: xW
tinytorch/src/03_layers/03_layers.py:336
↓ 37 callersFunctionrequire_unit_family
(v: Any, expected_unit, field_name: str, family: str)
mlsysim/mlsysim/core/types.py:94
↓ 37 callersMethodtrain
Set layer to training mode.
tinytorch/src/09_convolutions/09_convolutions.py:2128
↓ 37 callersMethodtranspose
Transpose tensor dimensions. TODO: Swap tensor dimensions (default: swap last two dimensions). APPROACH: 1. If no dims speci
tinytorch/src/01_tensor/01_tensor.py:697
↓ 37 callersMethodview
Alias for reshape, matching PyTorch's Tensor.view() for contiguous tensors.
tinytorch/src/01_tensor/01_tensor.py:338
↓ 37 callersMethodxlabel
(*args, **kwargs)
tinytorch/src/19_benchmarking/19_benchmarking.py:226
↓ 36 callersFunction_resolve_display_precision
Pick precision when caller passes precision=None. Auto mode should produce the shortest display that still carries the value's useful magnitu
mlsysim/mlsysim/fmt.py:922
next →1–100 of 13,553, ranked by callers