MCPcopy Create free account

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

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

↓ 3 callersFunctionchargeTurn
(m: Migration, rng: () => number = Math.random)
phases/19-capstone-projects/09-code-migration-agent/code/ts/src/cost.ts:25
↓ 3 callersMethodcheck
(self, key: str)
phases/19-capstone-projects/08-production-rag-chatbot/code/main.py:136
↓ 3 callersFunctioncheck_gradient
(analytical, numerical, tolerance=1e-5)
phases/01-math-foundations/13-numerical-stability/code/numerical.py:77
↓ 3 callersMethodcheckout
(self)
phases/14-agent-engineering/20-benchmarks-webarena-osworld/code/main.py:38
↓ 3 callersFunctionchinchilla_loss
(N, D, A=A, B=B_CONST, alpha=ALPHA, beta=BETA, E=E_CONST)
phases/07-transformers-deep-dive/13-scaling-laws/code/main.py:16
↓ 3 callersFunctionchunkRecursive
( text: string, size: number, seps: readonly string[] = ["\n\n", "\n", ". ", " "], )
phases/05-nlp-foundations-to-advanced/23-chunking-strategies-rag/code/main.ts:63
↓ 3 callersFunctionchunk_recursive
(text, size, seps=("\n\n", "\n", ". ", " "))
phases/05-nlp-foundations-to-advanced/23-chunking-strategies-rag/code/main.py:36
↓ 3 callersFunctionclose
()
site/cmdpalette.js:319
↓ 3 callersMethodcollect_if_on_pellet
(self)
phases/16-multi-agent-and-swarms/20-marl-maddpg-qmix-mappo/code/main.py:40
↓ 3 callersMethodcompress
()
phases/11-llm-engineering/05-context-engineering/code/main.ts:113
↓ 3 callersFunctionconjugate_gradient
(A, b, tol=1e-10, max_iter=None)
phases/01-math-foundations/17-linear-systems/code/linear_systems.py:114
↓ 3 callersFunctionconnected_components
(graph)
phases/01-math-foundations/21-graph-theory/code/graph_theory.py:89
↓ 3 callersFunctionconvergence_curve
(history)
phases/02-ml-fundamentals/12-hyperparameter-tuning/code/tuning.py:293
↓ 3 callersFunctioncosine
(a: list[float], b: list[float])
phases/19-capstone-projects/12-video-understanding-pipeline/code/main.py:38
↓ 3 callersFunctioncosineSimilarity
(a: Vec, b: Vec)
phases/11-llm-engineering/04-embeddings/code/main.ts:101
↓ 3 callersFunctioncosine_distance
(a: list[float], b: list[float])
phases/19-capstone-projects/50-hypothesis-generator/code/main.py:80
↓ 3 callersFunctioncosine_similarity
(a, b)
phases/11-llm-engineering/04-embeddings/code/embeddings.py:73
↓ 3 callersMethodcount_parameters
(self)
phases/03-deep-learning-core/02-multi-layer-networks/code/main.py:46
↓ 3 callersFunctioncount_params
(module: nn.Module)
phases/19-capstone-projects/59-vit-transformer/code/main.py:169
↓ 3 callersFunctioncount_runs
(log: EventLog)
phases/15-autonomous-systems/12-durable-execution/code/main.py:111
↓ 3 callersMethodcounter
(self, name: str, help: str = "")
phases/19-capstone-projects/28-observability-otel-traces/code/main.py:263
↓ 3 callersMethodcreate
(self, label: str, description: str, limit: int = 300)
phases/14-agent-engineering/08-memory-blocks-sleep-time-compute/code/main.py:54
↓ 3 callersFunctioncritic
LLM-style review. Pattern-matches against common issues but can be fooled by plausible-looking code that is semantically wrong.
phases/16-multi-agent-and-swarms/08-role-specialization/code/main.py:56
↓ 3 callersFunctioncross_entropy_loss
(true_class, logits)
phases/01-math-foundations/09-information-theory/code/information_theory.py:57
↓ 3 callersMethodcumulative
(self)
phases/19-capstone-projects/25-verification-gates-observation-budget/code/main.py:103
↓ 3 callersMethodcumulative
(self)
phases/19-capstone-projects/29-end-to-end-coding-task-demo/code/main.py:54
↓ 3 callersFunctioncurve
(fn, st, dash)
site/figures-agents-alignment.js:270
↓ 3 callersFunctiondbscan
(data, eps, min_samples)
phases/02-ml-fundamentals/07-unsupervised-learning/code/clustering.py:111
↓ 3 callersFunctiondcg_at_k
(retrieved: list[str], graded: dict[str, int], k: int)
phases/19-capstone-projects/68-rag-eval-precision-recall/code/main.py:74
↓ 3 callersFunctiondebug_print
(name, tensor)
phases/00-setup-and-tooling/12-debugging-and-profiling/code/debug_tools.py:20
↓ 3 callersMethoddecode
(self, tokens)
phases/10-llms-from-scratch/01-tokenizers/code/main.py:57
↓ 3 callersMethoddecompose
(self, query: str)
phases/19-capstone-projects/67-query-rewriting-hyde/code/main.py:257
↓ 3 callersFunctiondelta_accuracy
(pred, target, threshold=1.25, mask=None)
phases/04-computer-vision/26-monocular-depth/code/main.py:15
↓ 3 callersFunctiondescribeType
(value: unknown)
phases/13-tools-and-protocols/01-the-tool-interface/code/main.ts:150
↓ 3 callersFunctiondet_3x3
(m)
phases/01-math-foundations/03-matrix-transformations/code/transformations.py:60
↓ 3 callersFunctiondeterministic_reviser
Apply each suggestion's edit deterministically. Returns a mutated paper (same object).
phases/19-capstone-projects/55-critic-loop/code/main.py:300
↓ 3 callersFunctiondft
(x)
phases/01-math-foundations/20-fourier-transform/code/fourier.py:52
↓ 3 callersFunctiondispatch
(server: MCPServer, token: Token, tool: str, args: dict, audit: list[AuditEntry])
phases/19-capstone-projects/13-mcp-server-with-registry/code/main.py:126
↓ 3 callersFunctiondoc_level_mrr
(retrieved_chunks: list[tuple[Chunk, float]], gold: set[str])
phases/19-capstone-projects/69-end-to-end-rag-system/code/main.py:604
↓ 3 callersMethoddone
(self)
phases/16-multi-agent-and-swarms/20-marl-maddpg-qmix-mappo/code/main.py:37
↓ 3 callersFunctiondot
(a: list[float], b: list[float])
phases/18-ethics-safety-alignment/02-reward-hacking-goodhart/code/main.py:25
↓ 3 callersFunctiondot
(a: List[float], b: List[float])
phases/10-llms-from-scratch/16-differential-attention-v2/code/main.py:20
↓ 3 callersFunctioneigenvector_2x2
(matrix, eigenvalue)
phases/01-math-foundations/03-matrix-transformations/code/transformations.py:82
↓ 3 callersMethodembed
(self)
phases/19-capstone-projects/12-video-understanding-pipeline/code/main.py:59
↓ 3 callersMethodenqueue
(self, payload: str)
phases/14-agent-engineering/29-production-runtimes/code/main.py:48
↓ 3 callersFunctionensureLesson
(state, path)
site/progress.js:57
↓ 3 callersFunctionepsAt
(t)
site/figures-genai-rl.js:285
↓ 3 callersFunctionepsilon_greedy
(Q, state, rng, epsilon)
phases/09-reinforcement-learning/04-q-learning-sarsa/code/main.py:25
↓ 3 callersFunctioneuler
(theta)
phases/01-math-foundations/20-fourier-transform/code/fourier.py:48
↓ 3 callersMethodeval
(self)
phases/03-deep-learning-core/10-mini-framework/code/main.py:236
↓ 3 callersFunctioneval_recall
(chunker: ChunkFn, fixture: list[dict], ks: tuple[int, ...] = (1, 3, 5))
phases/19-capstone-projects/64-chunking-strategies-advanced/code/main.py:363
↓ 3 callersFunctionevaluate
(model, loader, criterion, device)
phases/03-deep-learning-core/11-intro-to-pytorch/code/pytorch_intro.py:98
↓ 3 callersFunctionevaluate
(model: Classifier, loader: DataLoader, positive: int = 1)
phases/19-capstone-projects/38-classifier-finetuning/code/main.py:446
↓ 3 callersFunctionevaluate
(detector: Detector, fixtures: list[dict[str, object]], benign: list[str])
phases/19-capstone-projects/83-prompt-injection-detector/code/main.py:171
↓ 3 callersMethodevaluate
(self, shard_id: str, doc_index: int, text: str)
phases/19-capstone-projects/42-large-corpus-downloader/code/main.py:222
↓ 3 callersMethodevaluate
(self, call: ToolCall, ctx: GateContext)
phases/19-capstone-projects/25-verification-gates-observation-budget/code/main.py:194
↓ 3 callersMethodevaluate
(self, call: ToolCall, ctx: GateContext)
phases/19-capstone-projects/25-verification-gates-observation-budget/code/main.py:221
↓ 3 callersFunctionevaluate_margins
Mean (chosen - rejected) log-prob difference under the policy. Without DPO this can be anything; DPO training drives it positive.
phases/19-capstone-projects/40-dpo-from-scratch/code/main.py:430
↓ 3 callersFunctionevaluate_model
Mean cross entropy over `max_batches` validation batches; no grad, no dropout.
phases/19-capstone-projects/36-training-loop-eval/code/main.py:223
↓ 3 callersFunctionevaluate_preference_accuracy
( model, reference_model, preference_data, beta=0.1, max_seq_len=128 )
phases/10-llms-from-scratch/08-dpo/code/main.py:222
↓ 3 callersMethodevents
(self)
phases/15-autonomous-systems/12-durable-execution/code/main.py:32
↓ 3 callersFunctionexact_match_set
( model: TinyGPT, tok: InstructionTokenizer, pairs: Sequence[Dict[str, str]], max_len: int, )
phases/19-capstone-projects/39-instruction-tuning-sft/code/main.py:575
↓ 3 callersFunctionexecuteToolCall
(call: ToolCall)
phases/11-llm-engineering/09-function-calling/code/main.ts:263
↓ 3 callersFunctionexecute_tool_call
(tool_call)
phases/11-llm-engineering/09-function-calling/code/function_calling.py:244
↓ 3 callersFunctionexpected_tokens_per_verify
(alpha: float, N: int)
phases/10-llms-from-scratch/15-speculative-decoding-eagle3/code/main.py:148
↓ 3 callersFunctionextract_claims
(answer: str)
phases/19-capstone-projects/68-rag-eval-precision-recall/code/main.py:101
↓ 3 callersFunctionextract_content
(wave, reference_contents)
phases/06-speech-and-audio/08-voice-cloning-conversion/code/main.py:44
↓ 3 callersFunctionextract_speaker
Pretend speaker-encoder: return speaker with highest cosine.
phases/06-speech-and-audio/08-voice-cloning-conversion/code/main.py:37
↓ 3 callersFunctionf1_score
(y_true, y_pred)
phases/02-ml-fundamentals/09-model-evaluation/code/evaluation.py:123
↓ 3 callersFunctionfailure_report
(result: RunResult)
phases/14-agent-engineering/31-agent-workbench-why-models-fail/code/main.py:87
↓ 3 callersFunctionfake_work
(task: Task)
phases/16-multi-agent-and-swarms/09-parallel-swarm-networks/code/main.py:25
↓ 3 callersFunctionfeatures
(state)
phases/09-reinforcement-learning/07-actor-critic-a2c-a3c/code/main.py:27
↓ 3 callersFunctionfeatures
(state)
phases/09-reinforcement-learning/08-ppo/code/main.py:27
↓ 3 callersFunctionfind
(x)
phases/05-nlp-foundations-to-advanced/24-coreference-resolution/code/main.py:106
↓ 3 callersFunctionfind_mismatches
(readme_text: str, totals: dict[str, int])
scripts/check_readme_counts.py:144
↓ 3 callersMethodfind_support_vectors
(self, X, y, tol=0.1)
phases/02-ml-fundamentals/05-support-vector-machines/code/svm.py:104
↓ 3 callersMethodfit
(self, X, y)
phases/02-ml-fundamentals/14-naive-bayes/code/naive_bayes.py:56
↓ 3 callersMethodfit
(self, X)
phases/02-ml-fundamentals/16-anomaly-detection/code/anomaly_detection.py:98
↓ 3 callersMethodfit
(self, X, y)
phases/02-ml-fundamentals/11-ensemble-methods/code/ensembles.py:65
↓ 3 callersMethodfit
(self, X, y, epochs=1000, print_every=200)
phases/02-ml-fundamentals/03-logistic-regression/code/logistic_regression.py:190
↓ 3 callersFunctionfit_polynomial
(x_train, y_train, degree, lam=0.0)
phases/02-ml-fundamentals/10-bias-variance/code/bias_variance.py:17
↓ 3 callersFunctionfizz
(n)
phases/19-capstone-projects/29-end-to-end-coding-task-demo/code/fixture_repo/src/fizz.py:1
↓ 3 callersFunctionflashBytes
(N)
site/figures-transformers.js:418
↓ 3 callersFunctionflat_param_numel
(module: nn.Module)
phases/19-capstone-projects/81-end-to-end-distributed-train/code/main.py:119
↓ 3 callersFunctionflat_param_numel
(module: nn.Module)
phases/19-capstone-projects/78-zero-parameter-sharding/code/main.py:55
↓ 3 callersFunctionfmtPct
(n: number, baseline: number)
phases/17-infrastructure-and-production/15-batch-apis/code/main.ts:239
↓ 3 callersFunctionfnv1a
(s: string)
phases/19-capstone-projects/02-rag-over-codebase/code/ts/src/index_store.ts:10
↓ 3 callersFunctionforward
(x_t, t_emb, net)
phases/08-generative-ai/09-inpainting-outpainting-editing/code/main.py:46
↓ 3 callersFunctionforward
(x_t, t_emb, c_emb, net)
phases/08-generative-ai/07-latent-diffusion-stable-diffusion/code/main.py:55
↓ 3 callersMethodforward
(self, X)
phases/07-transformers-deep-dive/02-self-attention-from-scratch/code/self_attention.py:28
↓ 3 callersFunctionfreshJob
(createdAt: number)
phases/19-capstone-projects/12-video-understanding-pipeline/code/ts/tests/stages.test.ts:8
↓ 3 callersFunctionfresh_team
(seed: int)
phases/16-multi-agent-and-swarms/07-society-of-mind-debate/code/main.py:70
↓ 3 callersMethodfrom_strings
(cls, patterns: Iterable[str], name: str = "regex")
phases/19-capstone-projects/25-verification-gates-observation-budget/code/main.py:169
↓ 3 callersMethodfrom_urls
(urls: Iterable[str])
phases/19-capstone-projects/42-large-corpus-downloader/code/main.py:415
↓ 3 callersFunctiongate
Apply each gate. Return (ship?, reasons).
phases/10-llms-from-scratch/13-building-complete-llm-pipeline/code/main.py:181
↓ 3 callersFunctiongateway_tools_list
(bearer: str)
phases/13-tools-and-protocols/17-mcp-gateways-and-registries/code/main.py:112
↓ 3 callersFunctiongauss
(x, mu)
site/figures-ml.js:373
↓ 3 callersFunctiongaussian_elimination
(A, b)
phases/01-math-foundations/17-linear-systems/code/linear_systems.py:4
↓ 3 callersFunctiongenerate_classification_data
(n_per_class=100, n_features=2, separation=2.0, seed=42)
phases/02-ml-fundamentals/01-what-is-machine-learning/code/ml_intro.py:26
↓ 3 callersFunctiongenerate_greedy
( model: TinyGPT, tok: InstructionTokenizer, instruction: str, max_new_tokens: int = 48, )
phases/19-capstone-projects/41-eval-pipeline/code/main.py:446
← previousnext →1,101–1,200 of 8,347, ranked by callers