MCPcopy Create free account

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

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

↓ 7 callersFunctionprint_separator
(title)
phases/02-ml-fundamentals/15-time-series/code/time_series.py:156
↓ 7 callersMethodprocess
(self, user_input, model_fn=None)
phases/11-llm-engineering/12-guardrails/code/guardrails.py:309
↓ 7 callersFunctionpx
(s)
site/figures-llms-systems.js:23
↓ 7 callersFunctionpx
(x)
site/figures-transformers.js:195
↓ 7 callersMethodr_squared
(self, X, y)
phases/02-ml-fundamentals/02-linear-regression/code/linear_regression.py:52
↓ 7 callersFunctionrecall_at_k
Return (i2t, t2i) recall@k. sim is (N, N) where row i is the similarity of image i to every caption.
phases/19-capstone-projects/63-multimodal-eval/code/main.py:77
↓ 7 callersMethodrecord
(id: string, correct: boolean, now: number)
phases/19-capstone-projects/17-personal-ai-tutor/code/ts/src/mastery.ts:31
↓ 7 callersMethodrecv
(self, src: int)
phases/19-capstone-projects/76-collective-ops-from-scratch/code/main.py:63
↓ 7 callersFunctionreport
(name: str, pi: Policy)
phases/18-ethics-safety-alignment/03-direct-preference-optimization-family/code/main.py:180
↓ 7 callersFunctionreported_score
(agent: Agent, hack_allowed: bool)
phases/15-autonomous-systems/04-darwin-godel-machine/code/main.py:79
↓ 7 callersFunctionrrf
( rankings: list[list[tuple[Doc, float]]], k: int = 60, weights: list[float] | None = None, )
phases/19-capstone-projects/65-hybrid-retrieval-bm25-dense/code/main.py:143
↓ 7 callersFunctionrun_demo
(out_dir: str | None = None, seed: int = 11)
phases/19-capstone-projects/57-end-to-end-research-demo/code/main.py:260
↓ 7 callersMethodsearch
(self, query: str, *, user_id: str, scope: str | None = None, top_k: int = 5)
phases/14-agent-engineering/09-hybrid-memory-mem0/code/main.py:134
↓ 7 callersFunctionseq_length
(cfg: ViTConfig)
phases/12-multimodal-ai/01-vision-transformer-patch-tokens/code/main.py:49
↓ 7 callersFunctionsmall_cfg
()
phases/19-capstone-projects/61-cross-attention-fusion/code/test_main.py:21
↓ 7 callersFunctionsoftmax_row
(row: List[float])
phases/10-llms-from-scratch/16-differential-attention-v2/code/main.py:24
↓ 7 callersFunctionsoftmax_stable
(logits)
phases/01-math-foundations/13-numerical-stability/code/numerical.py:12
↓ 7 callersFunctionstates
()
phases/09-reinforcement-learning/02-dynamic-programming/code/main.py:8
↓ 7 callersFunctionstep_toward
(pos: tuple[int, int], target: tuple[int, int])
phases/16-multi-agent-and-swarms/20-marl-maddpg-qmix-mappo/code/main.py:49
↓ 7 callersFunctionsynthesize_image
Build a deterministic 1x3x224x224 fixture from numpy.random. Values are in [0, 1] float32. Adding a smooth gradient on top of noise gives the
phases/19-capstone-projects/58-vision-encoder-patches/code/main.py:132
↓ 7 callersFunctiontoken_f1_score
(pred: str, ref: str)
phases/19-capstone-projects/41-eval-pipeline/code/main.py:480
↓ 7 callersFunctiontokenize
(text: str)
phases/19-capstone-projects/02-rag-over-codebase/code/main.py:99
↓ 7 callersFunctiontopoOrder
(items: Lesson[])
phases/19-capstone-projects/17-personal-ai-tutor/code/ts/src/curriculum.ts:20
↓ 7 callersMethodtotal_cost
(self)
phases/11-llm-engineering/11-caching-cost/code/caching_cost.py:263
↓ 7 callersFunctiontwo_sample_ttest
(data1, data2)
phases/01-math-foundations/15-statistics-for-ml/code/statistics.py:190
↓ 7 callersFunctionval
(c)
site/figures-dl.js:389
↓ 7 callersFunctionvector_search
(query_embedding, stored_embeddings, top_k=5)
phases/11-llm-engineering/07-advanced-rag/code/main.py:56
↓ 7 callersFunctionverifySlackSignature
(args: VerifyArgs)
phases/19-capstone-projects/06-devops-troubleshooting-agent/code/ts/src/slack_verify.ts:15
↓ 7 callersFunctionyes
(prompt: str)
phases/11-llm-engineering/17-agent-framework-tradeoffs/code/main.py:159
↓ 6 callersFunction_brevity_penalty
(cand_len: int, ref_len: int)
phases/19-capstone-projects/71-classical-metrics/code/main.py:75
↓ 6 callersFunction_correct_from_score
(metric_name: str, score: float, threshold: float = 0.5)
phases/19-capstone-projects/75-end-to-end-eval-runner/code/main.py:99
↓ 6 callersFunction_label_key
(labels: dict[str, str])
phases/19-capstone-projects/28-observability-otel-traces/code/main.py:183
↓ 6 callersFunction_paper_min
()
phases/19-capstone-projects/54-paper-writer/code/tests/test_paper_writer.py:27
↓ 6 callersMethod_send_json
(self, status: int, body: Any)
phases/16-multi-agent-and-swarms/12-a2a-protocol/code/main.py:87
↓ 6 callersMethodaccuracy
(self, X, y)
phases/02-ml-fundamentals/11-ensemble-methods/code/ensembles.py:89
↓ 6 callersMethodaddNode
(name: string, fn: NodeFn)
phases/14-agent-engineering/13-langgraph-stateful-graphs/code/main.ts:33
↓ 6 callersMethodadd_edge
(self, src: str, dst: str)
phases/14-agent-engineering/13-langgraph-stateful-graphs/code/main.py:44
↓ 6 callersMethodadd_to_cart
(self, sku: str, qty: int = 1)
phases/14-agent-engineering/20-benchmarks-webarena-osworld/code/main.py:26
↓ 6 callersMethodadd_turn
(self, role, content)
phases/11-llm-engineering/05-context-engineering/code/main.py:101
↓ 6 callersFunctionadvanceFile
(file: FileDiff, rng: () => number = Math.random)
phases/19-capstone-projects/09-code-migration-agent/code/ts/src/migrations.ts:76
↓ 6 callersMethodanchor
(self)
phases/19-capstone-projects/69-end-to-end-rag-system/code/main.py:93
↓ 6 callersFunctionarrow
(x1, y1, x2, y2, dash)
site/figures-agents-alignment.js:23
↓ 6 callersFunctionbleu4
BLEU-4 against multiple reference captions. Uses Chen and Cherry "method 1" smoothing when any n-gram precision is 0 and `smoothing` is True.
phases/19-capstone-projects/63-multimodal-eval/code/main.py:122
↓ 6 callersFunctionbrier_score
(confidences: Sequence[float], correct: Sequence[int])
phases/19-capstone-projects/73-perplexity-calibration/code/main.py:102
↓ 6 callersFunctionbuild_model
(cfg: Config)
phases/19-capstone-projects/38-classifier-finetuning/code/main.py:486
↓ 6 callersFunctionbuild_toy_model
( in_dim: int = 16, out_dim: int = 4, seed: int = 7, )
phases/19-capstone-projects/45-gradient-clipping-amp/code/main.py:349
↓ 6 callersFunctioncalculate_cost
(model, input_tokens, output_tokens, cached_input_tokens=0)
phases/11-llm-engineering/11-caching-cost/code/caching_cost.py:25
↓ 6 callersMethodcall
(self, tool: str, args: dict, approver: str | None = None)
phases/19-capstone-projects/06-devops-troubleshooting-agent/code/main.py:167
↓ 6 callersFunctionconv
(ox, oy)
site/figures-vision-speech.js:48
↓ 6 callersFunctioncount_parameters
Count unique parameters. Weight tied tensors are counted once.
phases/19-capstone-projects/35-gpt-model-assembly/code/main.py:175
↓ 6 callersFunctioncount_parameters
(module: nn.Module)
phases/19-capstone-projects/32-token-positional-embeddings/code/main.py:165
↓ 6 callersMethodcounters
()
phases/19-capstone-projects/11-llm-observability-dashboard/code/ts/src/spans.ts:128
↓ 6 callersFunctioncross_entropy_stable
(true_class, logits)
phases/01-math-foundations/13-numerical-stability/code/numerical.py:39
↓ 6 callersFunctioncross_validate_pipeline
(pipeline_factory, data, n_folds=5, seed=42)
phases/02-ml-fundamentals/13-ml-pipelines/code/pipeline.py:273
↓ 6 callersFunctiondescribeType
(value: unknown)
phases/14-agent-engineering/06-tool-use-and-function-calling/code/main.ts:52
↓ 6 callersFunctiondispatch
(method: str, params: dict)
phases/13-tools-and-protocols/10-mcp-resources-and-prompts/code/main.py:147
↓ 6 callersMethodembed
(text: string)
phases/11-llm-engineering/04-embeddings/code/main.ts:71
↓ 6 callersMethodembed
(self, text)
phases/11-llm-engineering/04-embeddings/code/embeddings.py:55
↓ 6 callersFunctionencodeSseFrame
(event: string, data: unknown)
phases/19-capstone-projects/08-production-rag-chatbot/code/ts/src/stream.ts:68
↓ 6 callersFunctionevaluate_pipeline
( pipeline: PipelineFn, qrels: list[Qrel], ks: tuple[int, ...] = (1, 3, 5), judge: MockJudge |
phases/19-capstone-projects/68-rag-eval-precision-recall/code/main.py:354
↓ 6 callersFunctionevaluate_policy
(name: str, policy: Callable[[str], str])
phases/19-capstone-projects/84-refusal-evaluation/code/main.py:126
↓ 6 callersFunctionextract_code
(text: str)
phases/19-capstone-projects/72-code-exec-metric/code/main.py:135
↓ 6 callersFunctionf
(x)
phases/01-math-foundations/16-sampling-methods/code/sampling.py:103
↓ 6 callersFunctionfinish
(sp: dict)
phases/13-tools-and-protocols/23-capstone-tool-ecosystem/code/main.py:45
↓ 6 callersMethodfit
(self, X, y)
phases/02-ml-fundamentals/14-naive-bayes/code/naive_bayes.py:11
↓ 6 callersMethodfit
(self, X, y)
phases/02-ml-fundamentals/11-ensemble-methods/code/ensembles.py:399
↓ 6 callersFunctionfmt
(n: int)
phases/10-llms-from-scratch/20-deepseek-v3-walkthrough/code/main.py:194
↓ 6 callersFunctionfmt_ms
(ms: int)
phases/19-capstone-projects/12-video-understanding-pipeline/code/main.py:136
↓ 6 callersMethodforward
(self, x)
phases/03-deep-learning-core/10-mini-framework/code/main.py:215
↓ 6 callersMethodfrom_token_nll
(cls, neg_log_probs: Sequence[float], token_counts: Sequence[int])
phases/19-capstone-projects/73-perplexity-calibration/code/main.py:35
↓ 6 callersFunctiongenerate
Greedy (temperature=0) or sampled generation. Stops on two consecutive sentence-ends.
phases/19-capstone-projects/39-instruction-tuning-sft/code/main.py:514
↓ 6 callersFunctiongradient_scan
(name, derivative_fn, start=-5, end=5, n=100)
phases/03-deep-learning-core/04-activation-functions/code/main.py:66
↓ 6 callersFunctionl2_distance
(a, b)
phases/01-math-foundations/14-norms-and-distances/code/distances.py:27
↓ 6 callersFunctionl2_distance
(a, b)
phases/02-ml-fundamentals/06-knn-and-distances/code/knn.py:5
↓ 6 callersFunctionl2_norm
(x)
phases/01-math-foundations/14-norms-and-distances/code/distances.py:9
↓ 6 callersMethodlink
(self, src: str, rel: str, dst: str)
phases/19-capstone-projects/06-devops-troubleshooting-agent/code/main.py:43
↓ 6 callersFunctionload_yaml
(text: str)
phases/19-capstone-projects/86-constitutional-rules-engine/code/yaml_subset.py:24
↓ 6 callersFunctionlogistic_regression_weighted
(X, y, weights, lr=0.01, epochs=200)
phases/02-ml-fundamentals/17-imbalanced-data/code/imbalanced.py:94
↓ 6 callersMethodmagnitude
(self)
phases/01-math-foundations/01-linear-algebra-intuition/code/vectors.py:18
↓ 6 callersFunctionmagnitude_spectrum
(X)
phases/01-math-foundations/20-fourier-transform/code/fourier.py:109
↓ 6 callersFunctionmajority
(items: list[str])
phases/16-multi-agent-and-swarms/15-voting-debate-topology/code/main.py:38
↓ 6 callersFunctionmake_lag_features
(series, n_lags)
phases/02-ml-fundamentals/15-time-series/code/time_series.py:75
↓ 6 callersFunctionmake_mixed_data
(n_samples=500, seed=42)
phases/02-ml-fundamentals/13-ml-pipelines/code/pipeline.py:6
↓ 6 callersFunctionmake_preferences
Twelve preference triples covering simple task types.
phases/19-capstone-projects/40-dpo-from-scratch/code/main.py:124
↓ 6 callersFunctionmanhattan
(a: tuple[int, int], b: tuple[int, int])
phases/16-multi-agent-and-swarms/20-marl-maddpg-qmix-mappo/code/main.py:45
↓ 6 callersFunctionmatmul_mat_vec
(M, v)
phases/08-generative-ai/08-controlnet-lora-conditioning/code/main.py:5
↓ 6 callersFunctionmemory_calculator
(num_params_billions, bits_per_param)
phases/10-llms-from-scratch/11-quantization/code/main.py:419
↓ 6 callersFunctionmockAgent
(alertText: string)
phases/19-capstone-projects/06-devops-troubleshooting-agent/code/ts/src/agent.ts:5
↓ 6 callersFunctionmock_embed
(text: str, dim: int = 96)
phases/19-capstone-projects/64-chunking-strategies-advanced/code/main.py:168
↓ 6 callersFunctionmutual_information
(joint_probs, base=2)
phases/01-math-foundations/09-information-theory/code/information_theory.py:34
↓ 6 callersFunctionoverallStatus
(job: Job)
phases/19-capstone-projects/12-video-understanding-pipeline/code/ts/src/stages.ts:29
↓ 6 callersFunctionpaired_t_test
Return (mean_diff, p_value, n). p_value is None when n < 2.
phases/19-capstone-projects/53-result-evaluator/code/main.py:153
↓ 6 callersFunctionparseCommand
(line: string)
phases/19-capstone-projects/01-terminal-native-coding-agent/code/ts/src/repl.ts:12
↓ 6 callersMethodpeek
(id: string)
phases/19-capstone-projects/17-personal-ai-tutor/code/ts/src/mastery.ts:23
↓ 6 callersFunctionpickFrom
(rng: () => number, arr: readonly T[])
phases/17-infrastructure-and-production/14-prompt-semantic-caching/code/main.ts:174
↓ 6 callersFunctionpolicy
(state, local_rng)
phases/09-reinforcement-learning/03-monte-carlo-methods/code/main.py:78
↓ 6 callersMethodpredict
(self, inputs)
phases/03-deep-learning-core/01-the-perceptron/code/perceptron.py:7
↓ 6 callersMethodpredict
(self, x)
phases/02-ml-fundamentals/09-model-evaluation/code/evaluation.py:255
↓ 6 callersFunctionpx
(s)
site/figures-agents-alignment.js:261
↓ 6 callersFunctionpy
(v)
site/figures-agents-alignment.js:263
← previousnext →401–500 of 8,347, ranked by callers