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
backward
(self, grad)
phases/03-deep-learning-core/10-mini-framework/code/main.py:103
Method
backward
(self, grad)
phases/03-deep-learning-core/10-mini-framework/code/main.py:119
Method
backward
(self, grad)
phases/03-deep-learning-core/10-mini-framework/code/main.py:193
Method
backward
(self)
phases/03-deep-learning-core/10-mini-framework/code/main.py:253
Method
bad
()
phases/19-capstone-projects/23-function-call-dispatcher/code/tests/test_dispatcher.py:145
Method
bad
(m, p)
phases/19-capstone-projects/22-jsonrpc-stdio-transport/code/tests/test_transport.py:77
Function
baseline_pipeline
Bag-of-words term overlap on content tokens only. Loses on every query whose phrasing diverges from the corpus's vocabulary, e.g. query says
phases/19-capstone-projects/68-rag-eval-precision-recall/code/main.py:272
Function
batchnormEffect
(host)
site/figures-dl.js:341
Function
bayesUpdate
(host)
site/figures-math.js:256
Function
beamSearch
(host)
site/figures-llms-systems.js:15
Function
biasVariance
(host)
site/lesson-figures.js:224
Method
big_tool
(call: ToolCall)
phases/19-capstone-projects/25-verification-gates-observation-budget/code/tests/test_main.py:204
Function
bimodal_log_prob
(x)
phases/01-math-foundations/22-stochastic-processes/code/stochastic.py:199
Function
binary_cross_entropy_naive
(y_true, y_pred)
phases/01-math-foundations/13-numerical-stability/code/numerical.py:57
Function
binary_cross_entropy_stable
(y_true, logit)
phases/01-math-foundations/13-numerical-stability/code/numerical.py:61
Method
block
(p)
phases/19-capstone-projects/20-agent-harness-loop-contract/code/tests/test_loop.py:132
Method
boom
(tool, args)
phases/19-capstone-projects/24-plan-execute-control-flow/code/tests/test_agent.py:132
Function
bowTfidf
(host)
site/figures-nlp2.js:24
Function
bowl
(x, y)
phases/01-math-foundations/04-calculus-for-ml/code/derivatives.py:157
Function
bpeMerge
(host)
site/figures-transformers.js:231
Method
budget_hit
()
phases/19-capstone-projects/56-iteration-scheduler/code/main.py:171
Function
bug
(state: State)
phases/14-agent-engineering/13-langgraph-stateful-graphs/code/main.ts:144
Function
buildIndex
(items: Lesson[])
phases/19-capstone-projects/17-personal-ai-tutor/code/ts/src/curriculum.ts:16
Function
build_multi_turn
(pattern_name, turns, system_override=None)
phases/11-llm-engineering/01-prompt-engineering/code/prompt_engineering.py:194
Function
build_rag_prompt
(query, retrieved_chunks)
phases/11-llm-engineering/07-advanced-rag/code/main.py:282
Function
build_signal_plus_noise
Return an input embedding sequence X[n_tokens][d_embed] and a query vector q. Position signal_pos carries a specific pattern; the query is ali
phases/10-llms-from-scratch/16-differential-attention-v2/code/main.py:88
Function
build_structured_prompt
(question, context=None)
phases/11-llm-engineering/02-few-shot-cot/code/advanced_prompting.py:400
Method
build_topo
(v)
phases/03-deep-learning-core/03-backpropagation/code/main.py:65
Method
build_topo
(v)
phases/01-math-foundations/05-chain-rule-and-autodiff/code/autodiff.py:94
Function
calculator
(args: Record<string, string>)
phases/14-agent-engineering/01-the-agent-loop/code/main.ts:51
Function
calculator
(expr: str)
phases/14-agent-engineering/01-the-agent-loop/code/main.py:56
Function
calculator
(args: Readonly<Record<string, JsonValue>>)
phases/11-llm-engineering/09-function-calling/code/main.ts:54
Function
calculator
(expression, precision=2)
phases/11-llm-engineering/09-function-calling/code/function_calling.py:23
Function
calculator
Evaluate a Python arithmetic expression like '2 + 2 * 3'. Returns the result as a string.
phases/11-llm-engineering/16-langgraph-state-machines/code/main.py:48
Function
call
(prompt: string)
phases/17-infrastructure-and-production/19-ai-gateways/code/main.ts:156
Function
canaryRollout
(host)
site/figures-frontier.js:333
Method
cancelTask
(taskId: string)
phases/16-multi-agent-and-swarms/03-communication-protocols/code/main.ts:199
Function
causalMask
(host)
site/figures-transformers.js:104
Function
chainRule
(host)
site/figures-math.js:178
Method
challenge
(status: int, params: str)
phases/13-tools-and-protocols/18-mcp-auth-production/code/main.py:228
Function
check_url
(url: str, timeout: int)
scripts/link_check.py:262
Function
chw_to_hwc
(arr)
phases/04-computer-vision/01-image-fundamentals/code/main.py:46
Function
classImbalance
(host)
site/figures-ml.js:404
Function
classify
(args: ToolArgs)
phases/14-agent-engineering/06-tool-use-and-function-calling/code/main.ts:199
Function
classify
(status: str)
phases/14-agent-engineering/06-tool-use-and-function-calling/code/main.py:150
Function
classify
(state: State)
phases/14-agent-engineering/13-langgraph-stateful-graphs/code/main.ts:130
Method
classify
(self, text: str)
phases/19-capstone-projects/85-content-classifier-integration/code/classifiers.py:60
Method
close
(self)
phases/19-capstone-projects/28-observability-otel-traces/code/main.py:174
Function
cnnParamCount
(host)
site/figures-vision-speech.js:224
Function
code_review
(language: str, code: str)
phases/11-llm-engineering/14-model-context-protocol/code/main.py:185
Function
coder_policy
(pool: list[Msg])
phases/16-multi-agent-and-swarms/10-group-chat-speaker-selection/code/main.py:25
Function
combinations
(n, k)
phases/01-math-foundations/06-probability-and-distributions/code/probability.py:14
Function
consoleExporter
(span: Readonly<Span>)
phases/17-infrastructure-and-production/13-llm-observability/code/main.ts:101
Function
constant_schedule
(step, lr=0.01, **kwargs)
phases/03-deep-learning-core/09-learning-rate-schedules/code/main.py:5
Method
constructor
(catalog: readonly Model[], hardSetThreshold = 0.88)
phases/17-infrastructure-and-production/16-model-routing/code/main.ts:125
Method
constructor
(capacity: number, ttlMs: number, now: () => number = Date.now)
phases/17-infrastructure-and-production/14-prompt-semantic-caching/code/main.ts:44
Method
constructor
(threshold = 0.95, capacity = 1000)
phases/17-infrastructure-and-production/14-prompt-semantic-caching/code/main.ts:124
Method
constructor
( processor: (input: I) => Promise<O>, turnaroundMs: number, )
phases/17-infrastructure-and-production/15-batch-apis/code/main.ts:59
Method
constructor
( tierConfig: Record< Tenant["tier"], { capacity: number; refillPerSec: number } >, no
phases/17-infrastructure-and-production/19-ai-gateways/code/main.ts:81
Method
constructor
( private readonly auth: AuthService, private readonly limiter: TokenBucketLimiter, private readon
phases/17-infrastructure-and-production/19-ai-gateways/code/main.ts:245
Method
constructor
(exporter: SpanExporter)
phases/17-infrastructure-and-production/13-llm-observability/code/main.ts:66
Method
constructor
(initialDigest: string)
phases/17-infrastructure-and-production/20-shadow-canary-progressive/code/main.ts:195
Method
constructor
( registry: AgentRegistry, taskManager: TaskManager, auditRunner: AuditableRunner, identityReg
phases/16-multi-agent-and-swarms/03-communication-protocols/code/main.ts:491
Method
constructor
(goal: string)
phases/19-capstone-projects/01-terminal-native-coding-agent/code/ts/src/plan.ts:7
Method
constructor
()
phases/19-capstone-projects/01-terminal-native-coding-agent/code/ts/src/hooks.ts:17
Method
constructor
(agents?: Agent[])
phases/19-capstone-projects/10-multi-agent-software-team/code/ts/src/coordinator.ts:10
Method
constructor
(public readonly role: Role)
phases/19-capstone-projects/10-multi-agent-software-team/code/ts/tests/coordinator.test.ts:73
Method
constructor
(capacity: number)
phases/19-capstone-projects/11-llm-observability-dashboard/code/ts/src/spans.ts:43
Method
constructor
(capacity = 10_000)
phases/19-capstone-projects/11-llm-observability-dashboard/code/ts/src/spans.ts:106
Method
constructor
( readonly name: string, readonly instructions: string, private readonly tools: Map<string, Mastra
phases/14-agent-engineering/18-agno-and-mastra-runtimes/code/main.ts:88
Method
constructor
(public node: string, public state: State)
phases/14-agent-engineering/13-langgraph-stateful-graphs/code/main.ts:89
Method
constructor
(public graph: StateGraph, public checkpointer: InMemoryCheckpointer)
phases/14-agent-engineering/13-langgraph-stateful-graphs/code/main.ts:103
Method
constructor
(private script: ScriptEntry[])
phases/14-agent-engineering/01-the-agent-loop/code/main.ts:93
Method
constructor
( private llm: ToyLLM, private tools: ToolRegistry, private maxTurns = 12, )
phases/14-agent-engineering/01-the-agent-loop/code/main.ts:106
Method
constructor
(maxTokens = 128_000, generationReserve = 4_000)
phases/11-llm-engineering/05-context-engineering/code/main.ts:26
Method
constructor
(private readonly maxHistoryTokens = 5_000)
phases/11-llm-engineering/05-context-engineering/code/main.ts:104
Method
constructor
( private opts: { enum?: readonly string[]; minLength?: number } = {}, )
phases/11-llm-engineering/03-structured-outputs/code/main.ts:28
Method
constructor
(private opts: { minimum?: number; maximum?: number; integer?: boolean } = {})
phases/11-llm-engineering/03-structured-outputs/code/main.ts:54
Method
constructor
( private item: Schema<T>, private opts: { minItems?: number; maxItems?: number } = {}, )
phases/11-llm-engineering/03-structured-outputs/code/main.ts:91
Method
constructor
(private shape: S)
phases/11-llm-engineering/03-structured-outputs/code/main.ts:125
Method
constructor
(private readonly systemPrompt = "You are a helpful assistant.")
phases/11-llm-engineering/12-guardrails/code/main.ts:276
Method
constructor
(private chunkSize = 200, private overlap = 50)
phases/11-llm-engineering/04-embeddings/code/main.ts:190
Method
constructor
( private readonly chunkSize = 200, private readonly overlap = 50, private readonly topK = 5, )
phases/11-llm-engineering/06-rag/code/main.ts:136
Function
contextBudget
(host)
site/figures-agents-alignment.js:334
Function
contextWindowSlide
(host)
site/figures-llms-systems.js:189
Function
continuousBatching
(host)
site/figures-llms-systems.js:279
Function
convOutputSize
(host)
site/figures-vision-speech.js:176
Function
conv_hook
(m, inp, out)
phases/04-computer-vision/15-real-time-edge/code/main.py:39
Function
convexVsNonconvex
(host)
site/figures-math.js:425
Function
convolutionKernel
(host)
site/figures-vision-speech.js:24
Method
core_memory_append
(self, section: str, text: str)
phases/14-agent-engineering/07-memory-virtual-context-memgpt/code/main.py:91
Method
core_memory_replace
(self, section: str, old: str, new: str)
phases/14-agent-engineering/07-memory-virtual-context-memgpt/code/main.py:96
Function
cosineSim
(host)
site/lesson-figures.js:600
Function
cosine_distance
(a, b)
phases/02-ml-fundamentals/06-knn-and-distances/code/knn.py:13
Function
cosine_schedule
(step, lr=0.01, total_steps=1000, lr_min=1e-5, **kwargs)
phases/03-deep-learning-core/09-learning-rate-schedules/code/main.py:13
Function
costPerToken
(host)
site/figures-infra.js:361
Function
countCompletedFromUrls
* Given a list of lesson urls (full GitHub urls from data.js), count how * many the user has completed. Match by the trailing "phases/.../..." path
site/progress.js:114
Function
count_tokens_json
(obj)
phases/11-llm-engineering/05-context-engineering/code/main.py:12
Function
covariance
(x, y, sample=True)
phases/01-math-foundations/15-statistics-for-ml/code/statistics.py:58
Function
crossEntropy
(host)
site/lesson-figures.js:570
← previous
next →
6,401–6,500 of 8,347, ranked by callers