MCPcopy Create free account

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

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

↓ 6 callersFunctionpy
(rank, rows)
site/figures-llms-systems.js:24
↓ 6 callersFunctionrandint
(rng: () => number, lo: number, hi: number)
phases/17-infrastructure-and-production/16-model-routing/code/main.ts:226
↓ 6 callersFunctionrandn
(*shape: int)
phases/19-capstone-projects/37-loading-pretrained-weights/code/main.py:292
↓ 6 callersMethodrecord
(self, report, user_input="")
phases/11-llm-engineering/12-guardrails/code/guardrails.py:388
↓ 6 callersMethodregister
( self, name: str, schema: dict, handler: Callable[..., Any], *, idempotent: bool = False, tim
phases/19-capstone-projects/23-function-call-dispatcher/code/main.py:79
↓ 6 callersMethodresult
(self, shard_id: str)
phases/19-capstone-projects/43-hdf5-tokenized-corpus/code/main.py:193
↓ 6 callersFunctionretrieve_with_rewriter
( query: str, rewriter: Rewriter, retriever: HybridRetriever, k_each: int = 5, k_out: int
phases/19-capstone-projects/67-query-rewriting-hyde/code/main.py:321
↓ 6 callersFunctionrollUpByModel
(spans: GenAISpan[])
phases/19-capstone-projects/11-llm-observability-dashboard/code/ts/src/rollup.ts:14
↓ 6 callersFunctionrollout
(name: str, reg: Regression)
phases/17-infrastructure-and-production/20-shadow-canary-progressive/code/main.py:61
↓ 6 callersFunctionrolloutReport
(name: string, reg: Regression)
phases/17-infrastructure-and-production/20-shadow-canary-progressive/code/main.ts:223
↓ 6 callersFunctionrosenbrock
(x)
phases/01-math-foundations/18-convex-optimization/code/convex.py:451
↓ 6 callersFunctionrouge_l
(prediction: str, reference: str, beta: float = 1.0)
phases/19-capstone-projects/71-classical-metrics/code/main.py:116
↓ 6 callersFunctionroute
(audit: AuditLog, event: string, payload: unknown)
phases/19-capstone-projects/16-github-issue-to-pr-agent/code/ts/src/router.ts:9
↓ 6 callersMethodrun
(initialMessage: Message, maxTurns = 12)
phases/19-capstone-projects/10-multi-agent-software-team/code/ts/src/coordinator.ts:32
↓ 6 callersMethodrun
(self, candidate: Candidate)
phases/19-capstone-projects/27-eval-harness-fixture-tasks/code/main.py:370
↓ 6 callersFunctionrunSession
(frames: AudioChunk[], opts: SessionOptions)
phases/19-capstone-projects/03-realtime-voice-assistant/code/ts/src/orchestrator.ts:42
↓ 6 callersFunctionsafe_mean
(lst)
phases/02-ml-fundamentals/05-support-vector-machines/code/svm.py:356
↓ 6 callersFunctionsample
(probs, rng)
phases/07-transformers-deep-dive/16-speculative-decoding/code/main.py:15
↓ 6 callersFunctionsample
(probs: List[float], rng: random.Random)
phases/10-llms-from-scratch/15-speculative-decoding-eagle3/code/main.py:23
↓ 6 callersFunctionsample
(probs: np.ndarray, rng: np.random.Generator)
phases/10-llms-from-scratch/25-speculative-decoding/code/main.py:50
↓ 6 callersMethodsample
(self, prompt: str, temperature: float, seed: int)
phases/19-capstone-projects/50-hypothesis-generator/code/main.py:136
↓ 6 callersMethodscore
(self, X, y)
phases/02-ml-fundamentals/14-naive-bayes/code/naive_bayes.py:44
↓ 6 callersMethodscore
(self, X, y)
phases/02-ml-fundamentals/01-what-is-machine-learning/code/ml_intro.py:22
↓ 6 callersFunctionserve
Read requests from transport until EOF. Dispatch each through handler.
phases/19-capstone-projects/22-jsonrpc-stdio-transport/code/main.py:186
↓ 6 callersFunctionsigmoid
(x)
phases/04-computer-vision/06-object-detection-yolo/code/main.py:7
↓ 6 callersFunctionsine
(freq_hz, sr, seconds, amp=0.5)
phases/06-speech-and-audio/01-audio-fundamentals/code/main.py:14
↓ 6 callersMethodsnapshot
()
phases/19-capstone-projects/11-llm-observability-dashboard/code/ts/src/spans.ts:63
↓ 6 callersFunctionsoftmax
(logits, temperature=1.0)
phases/07-transformers-deep-dive/07-gpt-causal-language-modeling/code/main.py:11
↓ 6 callersFunctionspan
(name: str, kind: str, trace_id: str | None, parent: str | None, attrs: dict)
phases/13-tools-and-protocols/23-capstone-tool-ecosystem/code/main.py:36
↓ 6 callersFunctionsplit_heads
(X: Matrix, n_heads: int)
phases/07-transformers-deep-dive/03-multi-head-attention/code/main.py:91
↓ 6 callersMethodstep
(self)
phases/03-deep-learning-core/10-mini-framework/code/main.py:286
↓ 6 callersFunctiontaylor_approx
(f, f_prime, f_double_prime, x0, h, order=2)
phases/01-math-foundations/04-calculus-for-ml/code/derivatives.py:128
↓ 6 callersFunctiontokenize
(text: str)
phases/19-capstone-projects/67-query-rewriting-hyde/code/main.py:31
↓ 6 callersFunctiontokenize
(text: string)
phases/19-capstone-projects/02-rag-over-codebase/code/ts/src/index_store.ts:5
↓ 6 callersFunctiontrain_test_split
(X, y, test_ratio=0.2, seed=42)
phases/02-ml-fundamentals/05-support-vector-machines/code/svm.py:164
↓ 6 callersFunctiontrain_test_split
(X, y, test_ratio=0.2, seed=42)
phases/02-ml-fundamentals/06-knn-and-distances/code/knn.py:225
↓ 6 callersFunctiontruncate_stream
(buf: bytes, max_bytes: int)
phases/19-capstone-projects/26-sandbox-runner-denylist/code/main.py:240
↓ 6 callersFunctiontwo_sided_t_p_value
Two sided p value for a t statistic with df degrees of freedom.
phases/19-capstone-projects/53-result-evaluator/code/main.py:144
↓ 6 callersFunctiontx
(t)
site/figures-vision-speech.js:136
↓ 6 callersFunctionucb_score
(branch_stats: BranchStats, total_runs: int, c: float)
phases/19-capstone-projects/56-iteration-scheduler/code/main.py:106
↓ 6 callersFunctionvalidate_file
(path: str)
phases/19-capstone-projects/70-task-spec-format/code/main.py:192
↓ 6 callersFunctionverifySignature
( rawBody: Buffer, header: string | undefined, secret: string, )
phases/19-capstone-projects/16-github-issue-to-pr-agent/code/ts/src/verify.ts:9
↓ 6 callersMethodwrite
(self, writer: str, content: str, prompt: str, source_uri: str | None = None, topic: str = "defa
phases/16-multi-agent-and-swarms/13-shared-memory-blackboard/code/main.py:38
↓ 5 callersMethod__init__
(self, hidden: int, heads: int)
phases/19-capstone-projects/38-classifier-finetuning/code/main.py:95
↓ 5 callersFunction_build_model
(cfg: EvalConfig)
phases/19-capstone-projects/41-eval-pipeline/code/tests/test_main.py:42
↓ 5 callersFunction_check_path_jail
(argv: Sequence[str], cfg: SandboxConfig)
phases/19-capstone-projects/26-sandbox-runner-denylist/code/main.py:215
↓ 5 callersFunction_check_shell_metachars
(argv: Sequence[str], shell: bool)
phases/19-capstone-projects/26-sandbox-runner-denylist/code/main.py:183
↓ 5 callersFunction_escape_latex
(text: str)
phases/19-capstone-projects/54-paper-writer/code/main.py:106
↓ 5 callersFunction_format_labels
(labels: dict[str, str])
phases/19-capstone-projects/28-observability-otel-traces/code/main.py:187
↓ 5 callersFunction_inputEl
()
site/cmdpalette.js:284
↓ 5 callersFunction_load_sibling
(lesson_dir: str, module_name: str = "main")
phases/19-capstone-projects/75-end-to-end-eval-runner/code/main.py:23
↓ 5 callersFunction_needs_transpose
(pretrained_name: str)
phases/19-capstone-projects/37-loading-pretrained-weights/code/main.py:208
↓ 5 callersFunction_print_section
(title: str)
phases/19-capstone-projects/31-tokenized-dataset-sliding-window/code/main.py:245
↓ 5 callersFunction_print_section
(title: str)
phases/19-capstone-projects/32-token-positional-embeddings/code/main.py:204
↓ 5 callersMethodaccuracy
(self, X, y)
phases/02-ml-fundamentals/03-logistic-regression/code/logistic_regression.py:214
↓ 5 callersFunctionadd
(A, B)
phases/07-transformers-deep-dive/05-full-transformer/code/main.py:67
↓ 5 callersFunctionadd
(a: List[float], b: List[float])
phases/10-llms-from-scratch/18-multi-token-prediction/code/main.py:34
↓ 5 callersMethodaddEdge
(src: string, dst: string)
phases/14-agent-engineering/13-langgraph-stateful-graphs/code/main.ts:41
↓ 5 callersMethodadd_document
(self, token_ids: Iterable[int])
phases/19-capstone-projects/43-hdf5-tokenized-corpus/code/main.py:154
↓ 5 callersMethodall
()
phases/19-capstone-projects/17-personal-ai-tutor/code/ts/src/mastery.ts:27
↓ 5 callersMethodallocate
(component: string, content: string, maxComponentTokens?: number)
phases/11-llm-engineering/05-context-engineering/code/main.ts:32
↓ 5 callersMethodappend
(self, session_id: str, turn: str)
phases/14-agent-engineering/18-agno-and-mastra-runtimes/code/main.py:25
↓ 5 callersMethodappendTurn
(id: string, turn: Turn)
phases/19-capstone-projects/08-production-rag-chatbot/code/ts/src/session.ts:20
↓ 5 callersFunctionb64url
(raw: bytes)
phases/13-tools-and-protocols/18-mcp-auth-production/code/main.py:36
↓ 5 callersFunctionbar
(x, y, w, val, vmax, color, label)
site/figures-nlp2.js:112
↓ 5 callersFunctionbar
(label, value, ref)
site/figures-math.js:184
↓ 5 callersFunctionbase_model_sample
Base model: may emit harmful tokens at rate p_harmful.
phases/18-ethics-safety-alignment/05-constitutional-ai-rlaif/code/main.py:47
↓ 5 callersFunctionbias_variance_decomposition
( degrees, n_bootstrap=200, n_train=30, noise_std=0.5, n_test=100, lam=0.0, )
phases/02-ml-fundamentals/10-bias-variance/code/bias_variance.py:34
↓ 5 callersFunctionbuildIndices
()
phases/19-capstone-projects/02-rag-over-codebase/code/ts/src/retrieval.ts:46
↓ 5 callersFunctionbuild_corpus
Return a hundred paper mock corpus across five topics, with a citation graph. Topics: attention sparsity, retrieval augmentation, low rank adapte
phases/19-capstone-projects/51-literature-retrieval/code/main.py:355
↓ 5 callersFunctionbuild_default_chain
(budget: int = 4000)
phases/19-capstone-projects/29-end-to-end-coding-task-demo/code/main.py:807
↓ 5 callersMethodcall_tool
(self, tool: str, bearer: str)
phases/13-tools-and-protocols/18-mcp-auth-production/code/main.py:267
↓ 5 callersFunctionclassify
(text: str)
phases/14-agent-engineering/28-orchestration-patterns/code/main.py:14
↓ 5 callersFunctioncommit
(store: Store, k: str)
phases/15-autonomous-systems/15-propose-then-commit/code/main.py:125
↓ 5 callersMethodcommit
(self, state: Any)
phases/14-agent-engineering/34-repo-memory-and-state/code/main.py:123
↓ 5 callersFunctionconfusion_matrix
(y_true, y_pred)
phases/02-ml-fundamentals/09-model-evaluation/code/evaluation.py:99
↓ 5 callersFunctioncosine_alignment_loss
(image_emb: torch.Tensor, text_emb: torch.Tensor)
phases/19-capstone-projects/60-projection-layer-modality-align/code/main.py:113
↓ 5 callersFunctioncostOf
(route: "cheap" | "frontier", q: Query)
phases/17-infrastructure-and-production/16-model-routing/code/main.ts:258
↓ 5 callersFunctioncost_of
(route: str, q: Query)
phases/17-infrastructure-and-production/16-model-routing/code/main.py:44
↓ 5 callersFunctioncountTokens
(text: string)
phases/11-llm-engineering/05-context-engineering/code/main.ts:13
↓ 5 callersFunctiondecodeFrame
(raw: string)
phases/19-capstone-projects/03-realtime-voice-assistant/code/ts/src/protocol.ts:26
↓ 5 callersMethoddelete
(self, session_id: str)
phases/14-agent-engineering/17-claude-agent-sdk/code/main.py:62
↓ 5 callersFunctiondetect
Returns z-score: (green count - expected) / sqrt(expected * p(1-p)).
phases/18-ethics-safety-alignment/23-watermarking-synthid-stable-signature-c2pa/code/main.py:52
↓ 5 callersFunctiondoRequest
(path: string, init?: RequestInit)
phases/19-capstone-projects/06-devops-troubleshooting-agent/code/ts/src/index.ts:77
↓ 5 callersFunctiondot
(a, b)
site/figures-transformers.js:31
↓ 5 callersFunctiondrawColumn
(x, label)
site/figures.js:622
↓ 5 callersFunctionestimate_tokens
A deterministic, conservative stand-in for a real tokenizer. Real harnesses plug in tiktoken or the model's own tokenizer. The gate chain onl
phases/19-capstone-projects/25-verification-gates-observation-budget/code/main.py:77
↓ 5 callersMethodevaluate
(self, call: ToolCall, ctx: GateContext)
phases/19-capstone-projects/29-end-to-end-coding-task-demo/code/main.py:108
↓ 5 callersFunctionexact_match
(pred: str, gold: str)
phases/19-capstone-projects/39-instruction-tuning-sft/code/main.py:570
↓ 5 callersFunctionexact_match_score
(pred: str, ref: str)
phases/19-capstone-projects/41-eval-pipeline/code/main.py:476
↓ 5 callersFunctionf
(x)
site/figures-math.js:150
↓ 5 callersMethodfinalise
(self)
phases/19-capstone-projects/51-literature-retrieval/code/main.py:71
↓ 5 callersMethodfinish
(self)
phases/13-tools-and-protocols/20-opentelemetry-genai/code/main.py:44
↓ 5 callersMethodfit
(self, X)
phases/01-math-foundations/10-dimensionality-reduction/code/dim_reduction.py:12
↓ 5 callersMethodfit
(self, data)
phases/02-ml-fundamentals/13-ml-pipelines/code/pipeline.py:309
↓ 5 callersMethodfit
(self, X, y)
phases/02-ml-fundamentals/11-ensemble-methods/code/ensembles.py:108
↓ 5 callersMethodfit
(self, X, y)
phases/02-ml-fundamentals/09-model-evaluation/code/evaluation.py:237
↓ 5 callersFunctionfixed_window
(doc_id: str, text: str, size: int = 400, overlap: int = 80)
phases/19-capstone-projects/64-chunking-strategies-advanced/code/main.py:38
↓ 5 callersFunctionflow
(x1, y1, x2, y2, color)
site/figures-transformers.js:369
↓ 5 callersFunctionfmt
(n: int)
phases/12-multimodal-ai/01-vision-transformer-patch-tokens/code/main.py:96
← previousnext →501–600 of 8,347, ranked by callers