MCPcopy Create free account

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

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

Methodq
(self)
phases/14-agent-engineering/04-tree-of-thoughts-lats/code/main.py:34
FunctionqlearningGridworld
(host)
site/figures-genai-rl.js:180
Functionquantization
(host)
site/lesson-figures.js:422
Functionquote_product
(product: str)
phases/16-multi-agent-and-swarms/11-handoffs-and-routines/code/main.py:58
Methodr_squared
(self, X, y)
phases/02-ml-fundamentals/02-linear-regression/code/linear_regression.py:86
Methodr_squared
(self, X, y)
phases/02-ml-fundamentals/02-linear-regression/code/linear_regression.py:136
Methodr_squared
(self, X, y)
phases/02-ml-fundamentals/02-linear-regression/code/linear_regression.py:216
Functionraf
(step)
site/lesson-figures.js:87
FunctionragChunking
(host)
site/lesson-figures.js:656
FunctionrandomWalkDiffusion
(host)
site/figures-math2.js:322
Functionrandom_projection
d_in x d_out projection matrix with unit-variance columns.
phases/10-llms-from-scratch/16-differential-attention-v2/code/main.py:72
Functionrandom_walk_2d
(n_steps, seed=None)
phases/01-math-foundations/22-stochastic-processes/code/stochastic.py:11
Methodrank
(self)
phases/01-math-foundations/12-tensor-operations/code/tensors.py:61
Functionrank_main
( rank: int, world_size: int, backend: str, master_port: int, result_queue, in_dim: in
phases/19-capstone-projects/48-distributed-fsdp-ddp/code/main.py:223
FunctionreactTrace
(host)
site/figures-agents-alignment.js:72
FunctionreadFile
(args: Readonly<Record<string, JsonValue>>)
phases/11-llm-engineering/09-function-calling/code/main.ts:126
Functionread_file
(call: ToolCall)
phases/19-capstone-projects/25-verification-gates-observation-budget/code/main.py:393
Functionread_file
(path)
phases/11-llm-engineering/09-function-calling/code/function_calling.py:90
Methodread_topic
(self, topic: str)
phases/16-multi-agent-and-swarms/13-shared-memory-blackboard/code/main.py:101
Methodrecall
(self)
phases/19-capstone-projects/83-prompt-injection-detector/code/main.py:58
Functionreceive
(_m: Message)
phases/19-capstone-projects/10-multi-agent-software-team/code/ts/src/agent.ts:9
Methodreceive
(self, message: Message, runtime: Runtime)
phases/14-agent-engineering/14-autogen-actor-model/code/main.py:81
Methodreceive
(self, message: Message, runtime: Runtime)
phases/14-agent-engineering/14-autogen-actor-model/code/main.py:108
FunctionreceptiveField
(host)
site/figures-vision-speech.js:148
Functionreconstruct
(U, S, Vt)
phases/01-math-foundations/11-singular-value-decomposition/code/svd.py:67
FunctionrecordAnswer
(path, qid, picked, correct)
site/progress.js:72
FunctionrecordVisit
(path)
site/progress.js:64
Methodredact
(self, text: str)
phases/19-capstone-projects/85-content-classifier-integration/code/classifiers.py:79
Methodredact
(self, text: str)
phases/19-capstone-projects/85-content-classifier-integration/code/classifiers.py:201
FunctionreflectionLoop
(host)
site/figures-frontier.js:80
Functionrefund
(state: State)
phases/14-agent-engineering/13-langgraph-stateful-graphs/code/main.ts:140
FunctionregL2
(host)
site/lesson-figures.js:259
Functionregister
(obj)
site/lesson-figures.js:736
Functionrelu
(x)
phases/03-deep-learning-core/08-weight-initialization/code/main.py:32
Functionrelu_d
(x)
phases/03-deep-learning-core/08-weight-initialization/code/main.py:224
Functionrelu_derivative
(x)
phases/03-deep-learning-core/04-activation-functions/code/main.py:28
Functionrender_dialog
(turns)
phases/05-nlp-foundations-to-advanced/29-dialogue-state-tracking/code/main.py:85
Functionreparam_gradient
(epsilon)
phases/01-math-foundations/16-sampling-methods/code/sampling.py:304
Functionreplace
(match: re.Match[str], expected: int = expected)
scripts/check_readme_counts.py:177
MethodrequiresHumanAuth
(did: string, operationKeyId: string)
phases/16-multi-agent-and-swarms/03-communication-protocols/code/main.ts:430
Functionresearcher_policy
(state: SharedState)
phases/16-multi-agent-and-swarms/04-primitive-model/code/main.py:56
Functionreset
()
site/progress.js:139
Methodresolve
(did: string)
phases/16-multi-agent-and-swarms/03-communication-protocols/code/main.ts:400
Methodresource
(self, uri: str, description: str)
phases/11-llm-engineering/14-model-context-protocol/code/main.py:65
Methodresource_metadata
(self)
phases/13-tools-and-protocols/18-mcp-auth-production/code/main.py:203
Functionreverse_list
(items)
phases/19-capstone-projects/27-eval-harness-fixture-tasks/code/tasks/task_004_empty_reverse/buggy/reverse.py:1
Functionreverse_list
(items)
phases/19-capstone-projects/27-eval-harness-fixture-tasks/code/tasks/task_004_empty_reverse/expected/reverse.py:1
Functionreviewer_policy
(pool: list[Msg])
phases/16-multi-agent-and-swarms/10-group-chat-speaker-selection/code/main.py:35
Functionreviewer_policy
(state: SharedState)
phases/16-multi-agent-and-swarms/04-primitive-model/code/main.py:68
Methodrewrite
(self, query: str)
phases/19-capstone-projects/67-query-rewriting-hyde/code/main.py:426
FunctionrlhfPipeline
(host)
site/figures-llms2.js:112
FunctionrlhfRewardKL
(host)
site/figures-agents-alignment.js:254
FunctionrmsnormVsLayernorm
(host)
site/figures-llms2.js:15
FunctionrnnUnroll
(host)
site/figures-nlp2.js:69
Functionroofline
(host)
site/figures-infra.js:392
FunctionrootsOfUnity
(host)
site/figures-math2.js:381
FunctionropeExplorer
(host)
site/lesson-figures.js:460
Functionrosenbrock
(x, y)
phases/01-math-foundations/04-calculus-for-ml/code/derivatives.py:178
Functionrosenbrock_grad
(x)
phases/01-math-foundations/18-convex-optimization/code/convex.py:454
Functionrosenbrock_gradient
(params)
phases/01-math-foundations/08-optimization/code/optimizers.py:9
Functionrosenbrock_hessian
(x)
phases/01-math-foundations/18-convex-optimization/code/convex.py:459
Functionround_robin_selector
(pool: list[Msg], team: dict[str, Agent])
phases/16-multi-agent-and-swarms/10-group-chat-speaker-selection/code/main.py:60
Functionround_robin_selector
(state: SharedState, team: dict[str, Agent])
phases/16-multi-agent-and-swarms/04-primitive-model/code/main.py:131
Functionrounded_million
(text: str)
phases/14-agent-engineering/02-rewoo-plan-and-execute/code/main.py:112
Functionrun
(hyp: Hypothesis)
phases/19-capstone-projects/56-iteration-scheduler/code/main.py:306
Methodrun
(self, team: dict[str, Agent], state: SharedState, max_steps: int = 10)
phases/16-multi-agent-and-swarms/04-primitive-model/code/main.py:88
Methodrun
(self, team: dict[str, Agent], state: SharedState, max_steps: int = 10)
phases/16-multi-agent-and-swarms/04-primitive-model/code/main.py:100
Methodrun
(self, team: dict[str, Agent], state: SharedState, max_steps: int = 10)
phases/16-multi-agent-and-swarms/04-primitive-model/code/main.py:121
Methodrun
(self, task: str)
phases/16-multi-agent-and-swarms/06-hierarchical-architecture/code/main.py:57
Methodrun
(self, task: str, branch_labels: list[str])
phases/16-multi-agent-and-swarms/06-hierarchical-architecture/code/main.py:71
Methodrun
(self, sub_question: str, results: list[WorkerResult | None], idx: int)
phases/16-multi-agent-and-swarms/05-supervisor-orchestrator-pattern/code/main.py:54
Methodrun
(initial: unknown)
phases/14-agent-engineering/18-agno-and-mastra-runtimes/code/main.ts:138
FunctionrunCode
(args: Readonly<Record<string, JsonValue>>)
phases/11-llm-engineering/09-function-calling/code/main.ts:138
Functionrun_code
(code, language="python")
phases/11-llm-engineering/09-function-calling/code/function_calling.py:100
Functionrun_independent
Each agent independently targets the nearest pellet; no awareness of the other agent's target. Often both target the same pellet.
phases/16-multi-agent-and-swarms/20-marl-maddpg-qmix-mappo/code/main.py:69
Functionrun_mappo_style
PPO with centralized value function. Behaves like CTDE at deploy; the scripted variant mirrors MADDPG here because they converge to similar po
phases/16-multi-agent-and-swarms/20-marl-maddpg-qmix-mappo/code/main.py:124
Functionrun_qmix_style
Value decomposition: each agent picks the pellet with higher local Q (lower manhattan). Monotone mixing makes this argmax-decomposable.
phases/16-multi-agent-and-swarms/20-marl-maddpg-qmix-mappo/code/main.py:107
Functionrun_tests
(call: ToolCall)
phases/19-capstone-projects/25-verification-gates-observation-budget/code/main.py:403
Methodrunner
(hyp: Hypothesis)
phases/19-capstone-projects/56-iteration-scheduler/code/tests/test_scheduler.py:57
Methodrunner
(hyp: Hypothesis)
phases/19-capstone-projects/56-iteration-scheduler/code/tests/test_scheduler.py:151
Methodrunner
(hyp: Hypothesis)
phases/19-capstone-projects/56-iteration-scheduler/code/tests/test_scheduler.py:171
Functionsaddle
(x, y)
phases/01-math-foundations/04-calculus-for-ml/code/derivatives.py:154
Functionsaddle_gradient
(params)
phases/01-math-foundations/08-optimization/code/optimizers.py:258
Functionsafe
()
phases/19-capstone-projects/84-refusal-evaluation/code/prompts.py:103
Functionsales
(state: State)
phases/14-agent-engineering/13-langgraph-stateful-graphs/code/main.ts:148
Functionsample_unconditional
(net, alphas, alpha_bars, T, t_dim, d, rng)
phases/08-generative-ai/09-inpainting-outpainting-editing/code/main.py:125
Functionsample_uniform
(a, b, n=1)
phases/01-math-foundations/06-probability-and-distributions/code/probability.py:75
FunctionsamplingDecoder
(host, cfg)
site/lesson-figures.js:342
FunctionscalingLaws
(host)
site/lesson-figures.js:389
Functionscore
(r: Request)
phases/17-infrastructure-and-production/06-sglang-radixattention/code/main.py:96
Functionscore
(m: Memory)
phases/16-multi-agent-and-swarms/17-generative-agents-simulation/code/main.py:67
Functionscore_assumptions
(inputs: ReviewerInputs)
phases/14-agent-engineering/39-reviewer-agent/code/main.py:64
Functionscore_handoff
(inputs: ReviewerInputs)
phases/14-agent-engineering/39-reviewer-agent/code/main.py:80
Functionscore_problem_fit
(inputs: ReviewerInputs)
phases/14-agent-engineering/39-reviewer-agent/code/main.py:46
Functionscore_scope_discipline
(inputs: ReviewerInputs)
phases/14-agent-engineering/39-reviewer-agent/code/main.py:55
Functionscore_verification
(inputs: ReviewerInputs)
phases/14-agent-engineering/39-reviewer-agent/code/main.py:71
MethodscriptLength
()
phases/19-capstone-projects/01-terminal-native-coding-agent/code/ts/src/model.ts:59
Functionsearch
Return top results for the query.
phases/14-agent-engineering/15-crewai-role-based-crews/code/main.py:33
Methodsearch
(self, query: str, k: int)
phases/19-capstone-projects/67-query-rewriting-hyde/code/main.py:122
Methodsearch
(self, query: str, k_each: int = 5, k_out: int = 5)
phases/19-capstone-projects/67-query-rewriting-hyde/code/main.py:146
← previousnext →7,001–7,100 of 8,347, ranked by callers