MCPcopy Create free account

hub / github.com/rohitg00/ai-engineering-from-scratch / functions

Functions8,347 in github.com/rohitg00/ai-engineering-from-scratch

↓ 3 callersFunctionoptimize_gd
(grad_f, x0, lr=0.01, steps=1000, tol=1e-12)
phases/01-math-foundations/18-convex-optimization/code/convex.py:73
↓ 3 callersFunctionpairKey
(a: Sym, b: Sym)
phases/05-nlp-foundations-to-advanced/19-subword-tokenization/code/main.ts:21
↓ 3 callersMethodparameters
(self)
phases/03-deep-learning-core/03-backpropagation/code/main.py:125
↓ 3 callersMethodparameters
(self)
phases/01-math-foundations/05-chain-rule-and-autodiff/code/autodiff.py:225
↓ 3 callersFunctionparseSseStream
(text: string)
phases/19-capstone-projects/08-production-rag-chatbot/code/ts/src/stream.ts:72
↓ 3 callersFunctionparse_confidence
(response: str)
phases/19-capstone-projects/84-refusal-evaluation/code/main.py:58
↓ 3 callersFunctionpassK
(p, k)
site/figures-frontier.js:251
↓ 3 callersMethodpassed
(self)
phases/14-agent-engineering/36-scope-contracts/code/main.py:63
↓ 3 callersFunctionpdf
(x, mu, s)
site/figures-math.js:225
↓ 3 callersFunctionpeak_freq
(samples, sr)
phases/06-speech-and-audio/01-audio-fundamentals/code/main.py:60
↓ 3 callersFunctionper_tile_tokens
(resolution: int, patch: int, pool: int)
phases/12-multimodal-ai/08-llava-onevision-single-multi-video/code/main.py:35
↓ 3 callersFunctionpercentiles
(values: list[float], ps: list[float])
phases/17-infrastructure-and-production/08-inference-metrics-goodput/code/main.py:60
↓ 3 callersFunctionperf_score
(agent: Agent)
phases/15-autonomous-systems/08-bounded-self-improvement/code/main.py:80
↓ 3 callersFunctionperplexity
(neg_log_probs: Sequence[float], token_counts: Sequence[int])
phases/19-capstone-projects/73-perplexity-calibration/code/main.py:53
↓ 3 callersFunctionperplexity_eval
( model: TinyGPT, tok: InstructionTokenizer, texts: Sequence[str], max_len: int, batch_siz
phases/19-capstone-projects/41-eval-pipeline/code/main.py:387
↓ 3 callersMethodpersist
(self)
phases/13-tools-and-protocols/13-mcp-async-tasks/code/main.py:43
↓ 3 callersFunctionpersona_for
(prompt: str)
phases/19-capstone-projects/87-end-to-end-safety-gate/code/mock_llm_stream.py:75
↓ 3 callersFunctionperturb
(q, amount, rng)
phases/07-transformers-deep-dive/16-speculative-decoding/code/main.py:102
↓ 3 callersFunctionperturb
(q: List[float], amount: float, rng: random.Random)
phases/10-llms-from-scratch/15-speculative-decoding-eagle3/code/main.py:165
↓ 3 callersFunctionpick_recipe
(budget_b: int, task: str)
phases/12-multimodal-ai/07-open-weight-vlm-recipes/code/main.py:106
↓ 3 callersFunctionplot_schedule_ascii
Return a text plot of the schedule across [0, total_steps].
phases/19-capstone-projects/44-cosine-lr-warmup/code/main.py:179
↓ 3 callersFunctionpolicy_probs
(theta, prompt_idx)
phases/09-reinforcement-learning/09-reward-modeling-rlhf/code/main.py:67
↓ 3 callersFunctionpositional_encoding
(x, L=10)
phases/04-computer-vision/13-3d-vision-nerf/code/main.py:32
↓ 3 callersFunctionpre_tokenize
(text)
phases/10-llms-from-scratch/02-building-a-tokenizer/code/main.py:17
↓ 3 callersMethodprecision
(self)
phases/02-ml-fundamentals/03-logistic-regression/code/logistic_regression.py:110
↓ 3 callersMethodpredict
(self, X)
phases/02-ml-fundamentals/02-linear-regression/code/linear_regression.py:25
↓ 3 callersMethodpredict
(self, X)
phases/02-ml-fundamentals/02-linear-regression/code/linear_regression.py:111
↓ 3 callersMethodpredict
(self, X)
phases/02-ml-fundamentals/12-hyperparameter-tuning/code/tuning.py:66
↓ 3 callersMethodpredict_proba
(self, x)
phases/02-ml-fundamentals/03-logistic-regression/code/logistic_regression.py:43
↓ 3 callersFunctionprint_curve
(name: str, curve: list[tuple[float, float, float]])
phases/18-ethics-safety-alignment/02-reward-hacking-goodhart/code/main.py:157
↓ 3 callersFunctionprint_ranking
(label: str, hits: Iterable[tuple[Doc, float]], top: int = 5)
phases/19-capstone-projects/65-hybrid-retrieval-bm25-dense/code/main.py:225
↓ 3 callersFunctionprint_summary
(summary, suite_name="Eval")
phases/10-llms-from-scratch/10-evaluation/code/main.py:148
↓ 3 callersFunctionprint_trajectory
(label: str, cfg: Config, cycles: int = 40)
phases/15-autonomous-systems/07-recursive-self-improvement/code/main.py:49
↓ 3 callersFunctionprobs
(counts, style, prev_tok)
phases/08-generative-ai/11-audio-generation/code/main.py:25
↓ 3 callersMethodproject_memory
(self, memory: torch.Tensor)
phases/19-capstone-projects/61-cross-attention-fusion/code/main.py:97
↓ 3 callersFunctionprojector
(features, audio_dim=1280, llm_dim=4096)
phases/06-speech-and-audio/10-audio-language-models/code/main.py:20
↓ 3 callersFunctionprometheus_exposition
Render the registry into Prometheus text exposition format.
phases/19-capstone-projects/28-observability-otel-traces/code/main.py:274
↓ 3 callersFunctionpropose
(store: Store, p: Proposal)
phases/15-autonomous-systems/15-propose-then-commit/code/main.py:78
↓ 3 callersMethodpropose
(self, bidder: str, bid: Bid, conv: str)
phases/16-multi-agent-and-swarms/02-fipa-acl-heritage/code/main.py:141
↓ 3 callersFunctionpseudoinverse_via_svd
(A, tol=1e-10)
phases/01-math-foundations/11-singular-value-decomposition/code/svd.py:77
↓ 3 callersMethodpublish
(self, writer: str, topic: str, content: str, prompt: str, source_uri: str | None = None)
phases/16-multi-agent-and-swarms/13-shared-memory-blackboard/code/main.py:77
↓ 3 callersFunctionq_value
(state, action, V, gamma)
phases/09-reinforcement-learning/02-dynamic-programming/code/main.py:37
↓ 3 callersFunctionquality
(n)
site/figures-frontier.js:89
↓ 3 callersMethodquery
Return the doc id of a near-duplicate keeper or None.
phases/19-capstone-projects/42-large-corpus-downloader/code/main.py:188
↓ 3 callersMethodquery
(self, question, top_k=None)
phases/11-llm-engineering/06-rag/code/main.py:135
↓ 3 callersFunctionrandn_matrix
(rows, cols, rng, scale=0.3)
phases/08-generative-ai/10-video-generation/code/main.py:31
↓ 3 callersFunctionrandn_matrix
(rows, cols, rng, scale=0.3)
phases/08-generative-ai/06-diffusion-ddpm-from-scratch/code/main.py:32
↓ 3 callersFunctionrandn_matrix
(rows, cols, rng, scale=0.3)
phases/08-generative-ai/13-flow-matching-rectified-flows/code/main.py:21
↓ 3 callersFunctionrandn_matrix
(rows, cols, rng, scale=0.3)
phases/08-generative-ai/09-inpainting-outpainting-editing/code/main.py:31
↓ 3 callersFunctionrandn_matrix
(rows, cols, rng, scale=0.3)
phases/08-generative-ai/07-latent-diffusion-stable-diffusion/code/main.py:37
↓ 3 callersFunctionrandom_baseline
(y_train, y_test, seed=42)
phases/02-ml-fundamentals/01-what-is-machine-learning/code/ml_intro.py:46
↓ 3 callersFunctionrandom_search
(param_distributions, X_train, y_train, X_val, y_val, n_iter=50, seed=42)
phases/02-ml-fundamentals/12-hyperparameter-tuning/code/tuning.py:157
↓ 3 callersMethodrank
(self)
phases/01-math-foundations/01-linear-algebra-intuition/code/vectors.py:109
↓ 3 callersFunctionread_experiment_manifest
Convert experiment output manifests into Figure records. Each manifest is expected to be a dict of shape: {"name": str, "artifacts": [{"p
phases/19-capstone-projects/54-paper-writer/code/main.py:188
↓ 3 callersMethodrecall
(self)
phases/02-ml-fundamentals/03-logistic-regression/code/logistic_regression.py:114
↓ 3 callersMethodreceive_proposal
(self, task_id: str, bid: Bid)
phases/16-multi-agent-and-swarms/16-negotiation-bargaining/code/main.py:124
↓ 3 callersFunctionrecursive_split
(doc_id: str, text: str, target: int = 500, separators: tuple[str, ...] = DEFAULT_SEPARATO
phases/19-capstone-projects/64-chunking-strategies-advanced/code/main.py:145
↓ 3 callersMethodredact
(self, text: str)
phases/19-capstone-projects/85-content-classifier-integration/code/classifiers.py:135
↓ 3 callersFunctionreference_single_process
Train the same model on the same per-step concatenated batch sequentially. A 'no-DDP' rank that walks every rank's micro-batch in rank order each
phases/19-capstone-projects/77-data-parallel-ddp/code/main.py:173
↓ 3 callersFunctionreflection_y
()
phases/01-math-foundations/03-matrix-transformations/code/transformations.py:36
↓ 3 callersMethodrefresh_jwks
Re-fetch the AS's published JWKS into the cache. Idempotent. Key *rotation* happens at the authorization server, not here. A resource
phases/13-tools-and-protocols/18-mcp-auth-production/code/main.py:206
↓ 3 callersMethodregister
(tool: ToolDef)
phases/14-agent-engineering/06-tool-use-and-function-calling/code/main.ts:145
↓ 3 callersMethodregister
(self, tool: ToolDef)
phases/14-agent-engineering/06-tool-use-and-function-calling/code/main.py:113
↓ 3 callersMethodregister
(name: string, fn: ToolFn)
phases/14-agent-engineering/01-the-agent-loop/code/main.ts:31
↓ 3 callersMethodregister
(self, name: str, fn: Callable[..., str])
phases/14-agent-engineering/01-the-agent-loop/code/main.py:38
↓ 3 callersFunctionrender
(M, label)
phases/07-transformers-deep-dive/15-attention-variants/code/main.py:45
↓ 3 callersFunctionrender_json_report
(mismatches: list[Mismatch], totals: dict[str, int])
scripts/check_readme_counts.py:203
↓ 3 callersFunctionrender_markdown
(rows: Sequence[LeaderboardRow])
phases/19-capstone-projects/74-leaderboard-aggregation/code/main.py:241
↓ 3 callersFunctionrender_pool
(label: str, state: SharedState)
phases/16-multi-agent-and-swarms/04-primitive-model/code/main.py:142
↓ 3 callersFunctionrender_prompt
(task: TaskSpec)
phases/19-capstone-projects/70-task-spec-format/code/main.py:228
↓ 3 callersFunctionreport
(title: str, r: dict)
phases/18-ethics-safety-alignment/17-wmdp-dual-use-evaluation/code/main.py:59
↓ 3 callersFunctionreport
(name: str, sft: Policy, rlhf: Policy, reward: list[float], r_traj: list[float], kl_traj: list[floa
phases/18-ethics-safety-alignment/01-instruction-following-alignment-signal/code/main.py:160
↓ 3 callersMethodreport
(self)
phases/11-llm-engineering/05-context-engineering/code/main.py:52
↓ 3 callersMethodrequireBatch
(id: string)
phases/17-infrastructure-and-production/15-batch-apis/code/main.ts:131
↓ 3 callersFunctionresponse
(mid: int, result: Any)
phases/13-tools-and-protocols/06-mcp-fundamentals/code/main.py:42
↓ 3 callersFunctionretrieve
(query: string, jurisdiction: string, k: number)
phases/19-capstone-projects/08-production-rag-chatbot/code/ts/src/stream.ts:30
↓ 3 callersMethodretrieve
(self, query: str, k: int = 5)
phases/19-capstone-projects/04-multimodal-document-qa/code/main.py:97
↓ 3 callersFunctionrle_encode
(binary_mask)
phases/04-computer-vision/24-sam3-open-vocab-segmentation/code/main.py:27
↓ 3 callersFunctionrmsnorm_params
(hidden: int)
phases/10-llms-from-scratch/20-deepseek-v3-walkthrough/code/main.py:80
↓ 3 callersFunctionrolling_skip_rate
Return the rolling skip rate over the last `window` steps for each step.
phases/19-capstone-projects/45-gradient-clipping-amp/code/main.py:306
↓ 3 callersMethodrotate_key
AS-side key rotation: introduce the next key, retire the oldest. Steady state is two overlapping keys, so tokens signed by the previous
phases/13-tools-and-protocols/18-mcp-auth-production/code/main.py:107
↓ 3 callersFunctionrotation_3d_z
(theta)
phases/01-math-foundations/03-matrix-transformations/code/transformations.py:9
↓ 3 callersFunctionrrf
(rankings: list[list[tuple[Chunk, float]]], k: int = 60)
phases/19-capstone-projects/69-end-to-end-rag-system/code/main.py:200
↓ 3 callersFunctionrtt
(a: str, b: str)
phases/17-infrastructure-and-production/11-multi-region-kv-locality/code/main.py:31
↓ 3 callersFunctionrun
(label: str, docs: int, prefix: int, per_doc: int, output: int)
phases/17-infrastructure-and-production/15-batch-apis/code/main.py:47
↓ 3 callersFunctionrun
Execute stages in DAG order. Halts on budget or hash failure.
phases/10-llms-from-scratch/13-building-complete-llm-pipeline/code/main.py:137
↓ 3 callersFunctionrun
( gates: dict[str, bool], allow_manifest_edit: bool, cycles: int = 200, seed: int | None = Non
phases/15-autonomous-systems/08-bounded-self-improvement/code/main.py:147
↓ 3 callersMethodrun
(self, image, image_id="anonymous")
phases/04-computer-vision/16-vision-pipeline-capstone/code/main.py:105
↓ 3 callersMethodrun
(self, argv: list[str])
phases/19-capstone-projects/29-end-to-end-coding-task-demo/code/main.py:214
↓ 3 callersFunctionrunEval
(sandbox: string, cases: EvalCase[] = EVAL_TASKS)
phases/19-capstone-projects/01-terminal-native-coding-agent/code/ts/src/eval.ts:13
↓ 3 callersFunctionrunScenario
( label: string, docs: number, prefix: number, perDoc: number, output: number, )
phases/17-infrastructure-and-production/15-batch-apis/code/main.ts:243
↓ 3 callersFunctionrun_experiment
(name, model, train_loader, test_loader, optimizer, device, epochs=10)
phases/03-deep-learning-core/11-intro-to-pytorch/code/pytorch_intro.py:136
↓ 3 callersFunctionrun_hogwild
All workers default to category A. Coordination makes them diverge. Without coordination, redundant tokens (same category from multiple worker
phases/10-llms-from-scratch/22-async-hogwild-inference/code/main.py:71
↓ 3 callersFunctionrun_period
(name: str, policies: dict, examples: list[Example])
phases/18-ethics-safety-alignment/06-mesa-optimization-deceptive-alignment/code/main.py:84
↓ 3 callersFunctionsafety_score
(agent: Agent)
phases/15-autonomous-systems/08-bounded-self-improvement/code/main.py:88
↓ 3 callersFunctionsample
(bs=48)
phases/04-computer-vision/20-image-retrieval-metric/code/main.py:64
↓ 3 callersFunctionsample
(dist: list[float], rng: random.Random)
phases/19-capstone-projects/14-speculative-decoding-server/code/main.py:33
↓ 3 callersMethodsample
(self, on_ood: bool)
phases/15-autonomous-systems/02-star-family-reasoning/code/main.py:37
↓ 3 callersFunctionsample_batch
(pairs: list[tuple[torch.Tensor, torch.Tensor]], indices: list[int] )
phases/19-capstone-projects/62-vision-language-pretraining/code/main.py:222
↓ 3 callersFunctionsample_data
(rng, d=5)
phases/08-generative-ai/09-inpainting-outpainting-editing/code/main.py:106
← previousnext →1,301–1,400 of 8,347, ranked by callers