MCPcopy Create free account

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

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

↓ 20 callersMethodvalidate
(self, name: str, args: Any)
phases/19-capstone-projects/21-tool-registry-schema-validation/code/main.py:102
↓ 19 callersMethodadd_edge
(self, u, v, weight=1.0)
phases/01-math-foundations/21-graph-theory/code/graph_theory.py:11
↓ 19 callersMethodhead
(self)
phases/15-autonomous-systems/06-automated-alignment-research/code/main.py:34
↓ 19 callersMethodload_state_dict
(self, state: dict)
phases/19-capstone-projects/81-end-to-end-distributed-train/code/main.py:209
↓ 19 callersFunctionpx
(x)
site/figures-ml.js:24
↓ 19 callersFunctionpy
(y)
site/figures-math.js:153
↓ 18 callersMethoddecode
(self, ids: Iterable[int])
phases/19-capstone-projects/43-hdf5-tokenized-corpus/code/main.py:98
↓ 18 callersMethodexpand
Return a mapping of paper id to shortest hop distance from any seed.
phases/19-capstone-projects/51-literature-retrieval/code/main.py:126
↓ 18 callersFunctionf
(point)
phases/01-math-foundations/04-calculus-for-ml/code/derivatives.py:70
↓ 18 callersFunctiongenerate_normal
(n, mu=0, sigma=1)
phases/01-math-foundations/15-statistics-for-ml/code/statistics.py:315
↓ 18 callersFunctionpx
(x)
site/lesson-figures.js:155
↓ 18 callersFunctionpy
(v)
site/figures-llms2.js:24
↓ 18 callersFunctionres
(seed: int, metric_name: str, value: float, terminal: str = "ok")
phases/19-capstone-projects/53-result-evaluator/code/tests/test_evaluator.py:29
↓ 18 callersMethodrun
(self, goal: str)
phases/19-capstone-projects/20-agent-harness-loop-contract/code/main.py:214
↓ 18 callersFunctionsequence_log_prob
Sum of log-probabilities of the completion tokens conditioned on prompt. Returns a 0-dim tensor on the same device as the model. Implementat
phases/19-capstone-projects/40-dpo-from-scratch/code/main.py:195
↓ 17 callersFunctionpx
(x)
site/figures-math.js:152
↓ 17 callersMethodzero_grad
(self)
phases/03-deep-learning-core/10-mini-framework/code/main.py:293
↓ 16 callersMethodforward
(self, token_ids)
phases/10-llms-from-scratch/07-rlhf/code/main.py:65
↓ 16 callersMethodpost
(self, m: Msg)
phases/19-capstone-projects/10-multi-agent-software-team/code/main.py:50
↓ 16 callersMethodtext
(self)
phases/19-capstone-projects/68-rag-eval-precision-recall/code/main.py:172
↓ 15 callersFunction_print_outcome
(label: str, result: SandboxResult)
phases/19-capstone-projects/26-sandbox-runner-denylist/code/main.py:412
↓ 15 callersMethoddecode
(self, tokens)
phases/10-llms-from-scratch/01-tokenizers/code/bpe.py:51
↓ 15 callersMethodfetch
(self, paper_id: str)
phases/19-capstone-projects/51-literature-retrieval/code/main.py:190
↓ 15 callersMethodget
(id: string)
phases/19-capstone-projects/08-production-rag-chatbot/code/ts/src/session.ts:34
↓ 15 callersMethodget
(self, name: str)
phases/19-capstone-projects/21-tool-registry-schema-validation/code/main.py:94
↓ 15 callersMethodget
(self, query)
phases/11-llm-engineering/13-production-app/code/production_app.py:201
↓ 15 callersMethodlr
(self, step: int)
phases/19-capstone-projects/44-cosine-lr-warmup/code/main.py:68
↓ 15 callersMethodnormalize
(self)
phases/01-math-foundations/01-linear-algebra-intuition/code/vectors.py:21
↓ 15 callersFunctionrandn
(rows, cols, rng, scale=None)
phases/07-transformers-deep-dive/05-full-transformer/code/main.py:36
↓ 15 callersMethodregister
(self, actor: Actor)
phases/14-agent-engineering/14-autogen-actor-model/code/main.py:41
↓ 15 callersMethodrelu
(self)
phases/01-math-foundations/05-chain-rule-and-autodiff/code/autodiff.py:58
↓ 15 callersMethodto_list
(self)
phases/01-math-foundations/12-tensor-operations/code/tensors.py:230
↓ 14 callersMethodall
(self)
phases/19-capstone-projects/82-jailbreak-taxonomy/code/main.py:116
↓ 14 callersMethodappend
(self, role: str, text: str)
phases/14-agent-engineering/07-memory-virtual-context-memgpt/code/main.py:28
↓ 14 callersFunctionencode
Encode `text` to a list of token ids. When `allow_special` is True, literal special-token strings in the input are mapped to their reserved i
phases/19-capstone-projects/30-bpe-tokenizer-from-scratch/code/main.py:182
↓ 14 callersMethodencode_completion
(self, completion: str)
phases/19-capstone-projects/40-dpo-from-scratch/code/main.py:52
↓ 14 callersFunctionfail
(issues: ValidationIssue[])
phases/11-llm-engineering/03-structured-outputs/code/main.ts:23
↓ 14 callersMethodfit
(self, X, y)
phases/02-ml-fundamentals/06-knn-and-distances/code/knn.py:59
↓ 14 callersMethodget
(self, cid: str)
phases/14-agent-engineering/23-otel-genai-conventions/code/main.py:39
↓ 14 callersMethodpredict
(self, X)
phases/02-ml-fundamentals/06-knn-and-distances/code/knn.py:63
↓ 14 callersFunctionpx
(j)
site/figures-genai-rl.js:34
↓ 14 callersMethodrun
(self, state: SharedState)
phases/16-multi-agent-and-swarms/04-primitive-model/code/main.py:50
↓ 14 callersMethodsearch
(self, query: str, top_k: int = 10)
phases/19-capstone-projects/51-literature-retrieval/code/main.py:96
↓ 14 callersFunctionsvgText
(x, y, str, anchor, fill, size)
site/figures-nlp2.js:19
↓ 14 callersFunctiontoX
(u)
site/figures-math2.js:180
↓ 14 callersFunctiontoY
(v)
site/figures-math2.js:181
↓ 14 callersMethodtransform
(self, X)
phases/02-ml-fundamentals/13-ml-pipelines/code/pipeline.py:67
↓ 13 callersFunction_drive
Encode requests as newline-delimited JSON and run the server over them.
phases/19-capstone-projects/22-jsonrpc-stdio-transport/code/tests/test_transport.py:27
↓ 13 callersMethod_emit
(self, etype: str, payload: dict)
phases/19-capstone-projects/20-agent-harness-loop-contract/code/main.py:180
↓ 13 callersMethodapply
(self, text: str, violations: list[Violation])
phases/19-capstone-projects/86-constitutional-rules-engine/code/main.py:178
↓ 13 callersFunctionbox
(x, y, w, h, label, fill)
site/figures-llms-systems.js:424
↓ 13 callersFunctiondot
(a, b)
phases/02-ml-fundamentals/05-support-vector-machines/code/svm.py:5
↓ 13 callersFunctioneuclidean_distance
(a, b)
phases/02-ml-fundamentals/07-unsupervised-learning/code/clustering.py:5
↓ 13 callersFunctionfileDiff
( path: string, recipe: Recipe, status: FileStatus = "queued", )
phases/19-capstone-projects/09-code-migration-agent/code/ts/src/migrations.ts:18
↓ 13 callersFunctiongood_record
()
phases/19-capstone-projects/70-task-spec-format/code/tests/test_spec.py:27
↓ 13 callersMethodload
(cls, tid: str)
phases/13-tools-and-protocols/13-mcp-async-tasks/code/main.py:47
↓ 13 callersMethodprocess
(self, frame: Frame)
phases/14-agent-engineering/22-voice-agents-pipecat-livekit/code/main.py:36
↓ 13 callersFunctionpy
(y)
site/lesson-figures.js:156
↓ 13 callersFunctionpy
(v)
site/figures-genai-rl.js:35
↓ 13 callersFunctionquantization_error
(original, reconstructed)
phases/10-llms-from-scratch/11-quantization/code/main.py:137
↓ 13 callersFunctionrun
(coro)
phases/19-capstone-projects/23-function-call-dispatcher/code/tests/test_dispatcher.py:22
↓ 13 callersFunctionselect
(state, key, label, options)
site/lesson-figures.js:75
↓ 13 callersFunctiontrain
Train BPE merges on `corpus` until the vocabulary reaches `target_vocab_size`. The training loop is deterministic given the corpus. Ties on pair
phases/19-capstone-projects/30-bpe-tokenizer-from-scratch/code/main.py:104
↓ 12 callersMethod_emit
(self, etype: str, payload: dict)
phases/19-capstone-projects/24-plan-execute-control-flow/code/main.py:115
↓ 12 callersFunction_set_seed
(seed: int = SEED)
phases/19-capstone-projects/66-reranker-cross-encoder/code/main.py:35
↓ 12 callersFunctionaccuracy
(y_true, y_pred)
phases/02-ml-fundamentals/05-support-vector-machines/code/svm.py:113
↓ 12 callersFunctionaggregate
( runs: Sequence[EvalRun], b: int = 500, alpha: float = 0.05, seed: int = 0, )
phases/19-capstone-projects/74-leaderboard-aggregation/code/main.py:169
↓ 12 callersFunctioncompute_sequence_log_prob
(model, prompt_tokens, response_tokens, max_seq_len=128)
phases/10-llms-from-scratch/08-dpo/code/main.py:52
↓ 12 callersMethodempty
(g, h, e)
phases/19-capstone-projects/24-plan-execute-control-flow/code/tests/test_agent.py:40
↓ 12 callersMethodevaluate
(self, text: str)
phases/19-capstone-projects/86-constitutional-rules-engine/code/main.py:144
↓ 12 callersMethodfire
(self, topic: str, payload: dict)
phases/19-capstone-projects/20-agent-harness-loop-contract/code/main.py:129
↓ 12 callersMethodfit_transform
(self, X)
phases/01-math-foundations/10-dimensionality-reduction/code/dim_reduction.py:35
↓ 12 callersFunctionhandler
(method: str, params: Any)
phases/19-capstone-projects/22-jsonrpc-stdio-transport/code/main.py:220
↓ 12 callersFunctionhuman
(x)
site/lesson-figures.js:396
↓ 12 callersFunctionloss_fn
(params, x, y)
phases/03-deep-learning-core/12-intro-to-jax/code/jax_intro.py:48
↓ 12 callersFunctionmat_vec_mul
(matrix, vector)
phases/01-math-foundations/03-matrix-transformations/code/transformations.py:40
↓ 12 callersFunctionpx
(i)
site/figures-llms2.js:23
↓ 12 callersMethodrun
(self, seed: list[Hypothesis])
phases/19-capstone-projects/56-iteration-scheduler/code/main.py:158
↓ 12 callersMethodsearch
(self, query: str, k: int = 10)
phases/19-capstone-projects/65-hybrid-retrieval-bm25-dense/code/main.py:77
↓ 12 callersMethodtrain
(self)
phases/03-deep-learning-core/10-mini-framework/code/main.py:18
↓ 12 callersMethodviolations
(self)
phases/19-capstone-projects/86-constitutional-rules-engine/code/main.py:52
↓ 12 callersFunctionwrite
(path: Path, content: str)
phases/14-agent-engineering/42-agent-workbench-capstone/code/main.py:593
↓ 11 callersFunctionbuild_models
Build a reference and a policy. The policy is initialised from the reference's state dict so they start in the same place, then the policy div
phases/19-capstone-projects/40-dpo-from-scratch/code/main.py:364
↓ 11 callersMethodchunk
(self, doc_id: str, text: str)
phases/19-capstone-projects/69-end-to-end-rag-system/code/main.py:134
↓ 11 callersFunctiondispatch
(state: ProtocolState, msg: JsonRpcRequest)
phases/19-capstone-projects/13-mcp-server-with-registry/code/ts/src/protocol.ts:56
↓ 11 callersMethodencode_prompt
(self, prompt: str)
phases/19-capstone-projects/40-dpo-from-scratch/code/main.py:46
↓ 11 callersFunctionfft
(x)
phases/01-math-foundations/20-fourier-transform/code/fourier.py:78
↓ 11 callersMethodforward
(self, token_ids)
phases/10-llms-from-scratch/04-pre-training-mini-gpt/code/main.py:93
↓ 11 callersFunctionmake_fake_embedding
(seed: int, dim: int = 64)
phases/12-multimodal-ai/02-clip-contrastive-pretraining/code/main.py:92
↓ 11 callersFunctionmatmul
(A, B)
phases/07-transformers-deep-dive/05-full-transformer/code/main.py:45
↓ 11 callersMethodpredict
(self, X)
phases/02-ml-fundamentals/05-support-vector-machines/code/svm.py:92
↓ 11 callersMethodput
(self, key: KVKey, record: Record)
phases/14-agent-engineering/09-hybrid-memory-mem0/code/main.py:60
↓ 11 callersMethodresume
(self, payload: dict | None = None)
phases/19-capstone-projects/20-agent-harness-loop-contract/code/main.py:222
↓ 11 callersFunctionrun_eval
( adapters: Sequence[ModelAdapter], tasks: Sequence[TaskSpec], parallel: bool = True, max_work
phases/19-capstone-projects/75-end-to-end-eval-runner/code/main.py:137
↓ 11 callersMethodsignature
Return the MinHash signature as a list of num_hashes 64-bit ints.
phases/19-capstone-projects/42-large-corpus-downloader/code/main.py:147
↓ 11 callersMethodsize
()
phases/19-capstone-projects/02-rag-over-codebase/code/ts/src/index_store.ts:128
↓ 11 callersMethodsqueeze
(self, dim=None)
phases/01-math-foundations/12-tensor-operations/code/tensors.py:125
↓ 11 callersMethodstep
(self, params, grads)
phases/03-deep-learning-core/06-optimizers/code/main.py:9
↓ 11 callersFunctiontokenize
(text: str)
phases/19-capstone-projects/71-classical-metrics/code/main.py:23
↓ 11 callersFunctionvalidate_task
(record: dict, line_number: int = 0)
phases/19-capstone-projects/70-task-spec-format/code/main.py:164
← previousnext →101–200 of 8,347, ranked by callers