Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/rohitg00/ai-engineering-from-scratch
/ functions
Functions
8,347 in github.com/rohitg00/ai-engineering-from-scratch
⨍
Functions
8,347
◇
Types & classes
1,490
↳
Endpoints
1
Method
d_model
(self)
phases/19-capstone-projects/32-token-positional-embeddings/code/main.py:153
Function
dataParallel
(host)
site/figures-infra.js:14
Method
deadline_hit
()
phases/19-capstone-projects/56-iteration-scheduler/code/main.py:168
Function
debate
(tasks: list[str])
phases/14-agent-engineering/28-orchestration-patterns/code/main.py:79
Function
decisionTreeDepth
(host)
site/figures-ml.js:269
Method
decision_function
(self, X)
phases/02-ml-fundamentals/05-support-vector-machines/code/svm.py:95
Function
deco
(fn)
phases/15-autonomous-systems/12-durable-execution/code/main.py:52
Method
decode
(self, ids)
phases/10-llms-from-scratch/03-data-pipelines/code/main.py:147
Function
decorator
(fn: Callable[..., str])
phases/14-agent-engineering/15-crewai-role-based-crews/code/main.py:24
Method
decorator
(fn: Callable[[Any], tuple[str, Any] | None])
phases/14-agent-engineering/15-crewai-role-based-crews/code/main.py:136
Method
decorator
(fn: Callable[..., Any])
phases/11-llm-engineering/14-model-context-protocol/code/main.py:60
Function
default_q
()
phases/09-reinforcement-learning/11-sim-to-real-transfer/code/main.py:24
Function
default_q
()
phases/09-reinforcement-learning/10-multi-agent-rl/code/main.py:30
Function
defense_adjusted
A simple defense: classifier detects the many-shot pattern and caps effective shot count at 16. ASR curve saturates at the 16-shot value.
phases/18-ethics-safety-alignment/13-many-shot-jailbreaking/code/main.py:32
Function
delete_user
(user_id: int)
phases/11-llm-engineering/14-model-context-protocol/code/main.py:175
Function
demo_model_bad
(prompt)
phases/10-llms-from-scratch/10-evaluation/code/main.py:176
Function
demo_model_good
(prompt)
phases/10-llms-from-scratch/10-evaluation/code/main.py:162
Function
demo_model_random
(prompt)
phases/10-llms-from-scratch/10-evaluation/code/main.py:190
Function
demo_pos_tagger
(tokens)
phases/05-nlp-foundations-to-advanced/01-text-processing/code/main.py:56
Function
dense_active_params
Total params, active params per token. d_model used for attention est.
phases/07-transformers-deep-dive/11-mixture-of-experts/code/main.py:92
Method
deny_reason
(self)
phases/19-capstone-projects/25-verification-gates-observation-budget/code/main.py:274
Method
deny_reason
(self)
phases/19-capstone-projects/29-end-to-end-coding-task-demo/code/main.py:143
Function
derivativeTangent
(host)
site/figures-math.js:143
Function
destructive_guard
(payload: dict[str, Any])
phases/19-capstone-projects/01-terminal-native-coding-agent/code/main.py:164
Function
det
()
phases/19-capstone-projects/09-code-migration-agent/code/ts/tests/migrations.test.ts:44
Method
detect
(self, image, concept)
phases/04-computer-vision/24-sam3-open-vocab-segmentation/code/main.py:68
Function
detect_cascading_errors
(trace: Trace)
phases/14-agent-engineering/26-failure-modes-agentic/code/main.py:55
Function
detect_context_loss
(trace: Trace)
phases/14-agent-engineering/26-failure-modes-agentic/code/main.py:69
Function
detect_hallucinated_action
(trace: Trace)
phases/14-agent-engineering/26-failure-modes-agentic/code/main.py:37
Function
detect_scope_creep
(trace: Trace)
phases/14-agent-engineering/26-failure-modes-agentic/code/main.py:44
Function
detect_success_hallucination
(trace: Trace)
phases/14-agent-engineering/26-failure-modes-agentic/code/main.py:98
Function
detect_tool_misuse
(trace: Trace)
phases/14-agent-engineering/26-failure-modes-agentic/code/main.py:80
Function
deterministic_expander
Spawn two follow-up hypotheses on the same branch with a monotonic id.
phases/19-capstone-projects/56-iteration-scheduler/code/main.py:319
Function
diff_attention
Differential attention: A1 = softmax(Q1 K1^T / sqrt(d)) A2 = softmax(Q2 K2^T / sqrt(d)) out = (A1 - lam * A2) V
phases/10-llms-from-scratch/16-differential-attention-v2/code/main.py:47
Function
differentialAttention
(host)
site/figures-llms2.js:379
Function
diffusionDenoise
(host)
site/figures-genai-rl.js:20
Function
direct_sample
(q: List[float], n: int, rng: random.Random)
phases/10-llms-from-scratch/15-speculative-decoding-eagle3/code/main.py:101
Function
discountHorizon
(host)
site/figures-genai-rl.js:316
Method
discoverAndDelegate
( fromDid: string, signature: string, skillTag: string, message: AgentMessage )
phases/16-multi-agent-and-swarms/03-communication-protocols/code/main.ts:529
Method
discoverByInputMode
(mimeType: string)
phases/16-multi-agent-and-swarms/03-communication-protocols/code/main.ts:81
Method
dispatch_until_full
()
phases/19-capstone-projects/56-iteration-scheduler/code/main.py:174
Method
do_DELETE
(self)
phases/13-tools-and-protocols/09-mcp-transports/code/main.py:160
Method
do_GET
(self)
phases/16-multi-agent-and-swarms/12-a2a-protocol/code/main.py:95
Method
do_GET
(self)
phases/13-tools-and-protocols/09-mcp-transports/code/main.py:134
Method
do_POST
(self)
phases/16-multi-agent-and-swarms/12-a2a-protocol/code/main.py:109
Method
do_POST
(self)
phases/13-tools-and-protocols/09-mcp-transports/code/main.py:107
Method
document_count
(self)
phases/19-capstone-projects/43-hdf5-tokenized-corpus/code/main.py:190
Method
done
(self)
phases/17-infrastructure-and-production/04-vllm-serving-internals/code/main.py:47
Function
dpoLoss
(host)
site/figures-llms2.js:177
Function
dpoMargin
(host)
site/figures-agents-alignment.js:298
Function
drift
(question: str, peer_answers: list[str])
phases/14-agent-engineering/25-multi-agent-debate/code/main.py:22
Function
dropoutMask
(host)
site/figures-dl.js:302
Method
duration_ms
(self)
phases/19-capstone-projects/28-observability-otel-traces/code/main.py:93
Method
duration_ms
(self)
phases/19-capstone-projects/29-end-to-end-coding-task-demo/code/main.py:290
Method
duration_ms
(self)
phases/14-agent-engineering/23-otel-genai-conventions/code/main.py:24
Method
e2e_ms
(self)
phases/17-infrastructure-and-production/08-inference-metrics-goodput/code/main.py:27
Function
echo_handler
(method, params)
phases/19-capstone-projects/22-jsonrpc-stdio-transport/code/tests/test_transport.py:43
Function
editDistance
(host)
site/figures-nlp2.js:188
Function
eigenDirections
(host)
site/figures-math.js:93
Function
embeddingArithmetic
(host)
site/figures.js:503
Function
embeddingProjection
(host)
site/figures.js:847
Function
emit
( workspace: SharedWorkspace, to: Role | "broadcast", topic: string, body: string, )
phases/19-capstone-projects/10-multi-agent-software-team/code/ts/src/agent.ts:13
Method
empty
(goal, history)
phases/19-capstone-projects/20-agent-harness-loop-contract/code/tests/test_loop.py:83
Function
entropyKl
(host)
site/figures-math.js:293
Function
epsilonGreedy
(host)
site/figures-genai-rl.js:277
Function
evalHarnessMatrix
(host)
site/figures-frontier.js:280
Method
evaluate
(self, call: ToolCall, ctx: GateContext)
phases/19-capstone-projects/25-verification-gates-observation-budget/code/main.py:136
Method
evaluate
(self, call: ToolCall, ctx: GateContext)
phases/19-capstone-projects/25-verification-gates-observation-budget/code/main.py:151
Method
evaluate
(self, call: ToolCall, ctx: GateContext)
phases/19-capstone-projects/29-end-to-end-coding-task-demo/code/main.py:91
Method
evaluate
(self, call: ToolCall, ctx: GateContext)
phases/19-capstone-projects/29-end-to-end-coding-task-demo/code/main.py:123
Method
evaluate
(self, call: ToolCall, ctx: GateContext)
phases/19-capstone-projects/29-end-to-end-coding-task-demo/code/main.py:154
Function
evaluate_retrieval_recall
(queries_with_relevant, retrieval_fn, k=5)
phases/11-llm-engineering/07-advanced-rag/code/main.py:260
Method
events
(self)
phases/19-capstone-projects/20-agent-harness-loop-contract/code/main.py:173
Function
execAck
(args: ToolArgs)
phases/19-capstone-projects/13-mcp-server-with-registry/code/ts/src/tools.ts:59
Function
execGet
(args: ToolArgs)
phases/19-capstone-projects/13-mcp-server-with-registry/code/ts/src/tools.ts:52
Function
execList
(args: ToolArgs)
phases/19-capstone-projects/13-mcp-server-with-registry/code/ts/src/tools.ts:46
Function
execNotesCreate
(args: ToolArgs)
phases/13-tools-and-protocols/07-building-an-mcp-server/code/main.ts:127
Function
execNotesList
(args: ToolArgs)
phases/13-tools-and-protocols/07-building-an-mcp-server/code/main.ts:105
Function
execNotesSearch
(args: ToolArgs)
phases/13-tools-and-protocols/07-building-an-mcp-server/code/main.ts:115
Function
exec_notes_create
(args: dict)
phases/13-tools-and-protocols/07-building-an-mcp-server/code/main.py:109
Function
exec_notes_list
(args: dict)
phases/13-tools-and-protocols/07-building-an-mcp-server/code/main.py:89
Function
exec_notes_search
(args: dict)
phases/13-tools-and-protocols/07-building-an-mcp-server/code/main.py:99
Function
executor_buggy
(spec: Spec)
phases/16-multi-agent-and-swarms/08-role-specialization/code/main.py:52
Function
executor_correct
(spec: Spec)
phases/16-multi-agent-and-swarms/08-role-specialization/code/main.py:48
Function
expertCapacity
(host)
site/figures-llms2.js:282
Method
export
(self, span: GenAISpan)
phases/19-capstone-projects/28-observability-otel-traces/code/main.py:171
Method
export
(self, span: GenAISpan)
phases/19-capstone-projects/29-end-to-end-coding-task-demo/code/main.py:321
Function
extract_area
(utterance)
phases/05-nlp-foundations-to-advanced/29-dialogue-state-tracking/code/main.py:31
Function
extract_cuisine
(utterance)
phases/05-nlp-foundations-to-advanced/29-dialogue-state-tracking/code/main.py:21
Function
extract_people
(utterance)
phases/05-nlp-foundations-to-advanced/29-dialogue-state-tracking/code/main.py:47
Function
extract_price
(utterance)
phases/05-nlp-foundations-to-advanced/29-dialogue-state-tracking/code/main.py:39
Function
f1
(params)
phases/01-math-foundations/13-numerical-stability/code/numerical.py:414
Method
f1
(self)
phases/19-capstone-projects/83-prompt-injection-detector/code/main.py:63
Function
f2
(logits)
phases/01-math-foundations/13-numerical-stability/code/numerical.py:430
Function
f3
(params)
phases/01-math-foundations/13-numerical-stability/code/numerical.py:442
Function
f_grad2
(x)
phases/01-math-foundations/18-convex-optimization/code/convex.py:355
Function
factorial
(n)
phases/19-capstone-projects/27-eval-harness-fixture-tasks/code/tasks/task_002_factorial_missing_return/buggy/factorial.py:1
Function
factorial
(n)
phases/19-capstone-projects/27-eval-harness-fixture-tasks/code/tasks/task_002_factorial_missing_return/expected/factorial.py:1
Function
fail_b
(job: Job)
phases/14-agent-engineering/29-production-runtimes/code/main.py:105
Function
fakeClassifier
(input: ClassifyIn)
phases/17-infrastructure-and-production/15-batch-apis/code/main.ts:143
← previous
next →
6,501–6,600 of 8,347, ranked by callers