MCPcopy Create free account

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

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

↓ 1 callersFunctiondemo_zero_shot
()
phases/12-multimodal-ai/02-clip-contrastive-pretraining/code/main.py:128
↓ 1 callersFunctiondemo_zscore
()
phases/02-ml-fundamentals/16-anomaly-detection/code/anomaly_detection.py:204
↓ 1 callersFunctiondemographic_parity
(preds)
phases/18-ethics-safety-alignment/21-fairness-criteria-group-individual-counterfactual/code/main.py:65
↓ 1 callersFunctiondemonstrate_constrained_decoding
()
phases/11-llm-engineering/03-structured-outputs/code/main.py:157
↓ 1 callersFunctiondense_score
Stand-in for a real Voyage-3 or Nomic embedding cosine.
phases/19-capstone-projects/08-production-rag-chatbot/code/main.py:71
↓ 1 callersFunctiondeploy_gap_note
Eval-context-gaming adjustment.
phases/15-autonomous-systems/01-long-horizon-agents/code/main.py:127
↓ 1 callersMethoddeposit
(self, task_type: str, agent: str, quality: float)
phases/16-multi-agent-and-swarms/19-swarm-optimization-pso-aco/code/main.py:97
↓ 1 callersFunctiondeprocess_imagenet
(chw_float32)
phases/04-computer-vision/01-image-fundamentals/code/main.py:87
↓ 1 callersFunctiondepth
Serial-depth count for RNN vs attention-style reductions.
phases/07-transformers-deep-dive/01-why-transformers/code/main.py:72
↓ 1 callersFunctiondepth
(e: Expr)
phases/15-autonomous-systems/03-alphaevolve-evolutionary-coding/code/main.py:44
↓ 1 callersFunctiondepth_to_point_cloud
(depth, intrinsics)
phases/04-computer-vision/26-monocular-depth/code/main.py:36
↓ 1 callersFunctiondepth_transformer
(context_text, context_user_mimi, context_moshi_mimi)
phases/06-speech-and-audio/15-streaming-speech-to-speech-moshi-hibiki/code/main.py:36
↓ 1 callersFunctiondequantize_asymmetric
(quantized, scale, zero_point)
phases/10-llms-from-scratch/11-quantization/code/main.py:133
↓ 1 callersFunctiondequantize_from_nf4
(quantized, scales, original_shape, pad_size)
phases/11-llm-engineering/08-fine-tuning-lora/code/lora.py:99
↓ 1 callersFunctiondequantize_gptq
(quantized, scales)
phases/10-llms-from-scratch/11-quantization/code/main.py:323
↓ 1 callersFunctionderive_phase_lesson
(path: Path)
scripts/install_skills.py:74
↓ 1 callersFunctionderive_risks
(verdict: dict, state: dict, review: dict)
phases/14-agent-engineering/42-agent-workbench-capstone/outputs/agent-workbench-pack/scripts/generate_handoff.py:27
↓ 1 callersFunctionderive_risks
(snapshot: WorkbenchSnapshot)
phases/14-agent-engineering/40-multi-session-handoff/code/main.py:56
↓ 1 callersMethoddescribe
(self, target_root: Path)
scripts/scaffold_workbench.py:58
↓ 1 callersFunctiondescribeRegistry
()
phases/13-tools-and-protocols/01-the-tool-interface/code/main.ts:258
↓ 1 callersFunctiondescribe_pipeline
()
phases/04-computer-vision/11-stable-diffusion/code/main.py:18
↓ 1 callersFunctiondescribe_registry
()
phases/13-tools-and-protocols/01-the-tool-interface/code/main.py:216
↓ 1 callersFunctiondescribe_token_norms
Print the L2 norm of the first few tokens for sanity inspection.
phases/19-capstone-projects/58-vision-encoder-patches/code/main.py:164
↓ 1 callersMethoddetect
(self, image: np.ndarray, concept: str)
phases/04-computer-vision/24-sam3-open-vocab-segmentation/code/main.py:61
↓ 1 callersFunctiondetectInjection
(text: string)
phases/11-llm-engineering/12-guardrails/code/main.ts:90
↓ 1 callersFunctiondetectPii
(text: string)
phases/11-llm-engineering/12-guardrails/code/main.ts:114
↓ 1 callersFunctiondetect_collisions
(target: Path, actions: list[Action])
scripts/scaffold_workbench.py:93
↓ 1 callersFunctiondetect_groupthink
(symptoms: dict)
phases/16-multi-agent-and-swarms/23-failure-modes-mast-groupthink/code/main.py:41
↓ 1 callersFunctiondetect_injection
(text)
phases/11-llm-engineering/12-guardrails/code/guardrails.py:80
↓ 1 callersFunctiondetect_pii
(text)
phases/11-llm-engineering/12-guardrails/code/guardrails.py:112
↓ 1 callersFunctiondetect_watermark
(wave_original, wave_wm, n_bits=32)
phases/06-speech-and-audio/08-voice-cloning-conversion/code/main.py:72
↓ 1 callersFunctiondeterministic_critic
Score the paper and emit one suggestion per dimension that is below target.
phases/19-capstone-projects/55-critic-loop/code/main.py:256
↓ 1 callersFunctiondeterministic_tail
(text: str, head: int = HEAD_LINES, tail: int = TAIL_LINES)
phases/14-agent-engineering/37-runtime-feedback-loops/code/main.py:70
↓ 1 callersFunctiondfs
(graph, start)
phases/01-math-foundations/21-graph-theory/code/graph_theory.py:73
↓ 1 callersFunctiondft
(signal)
phases/01-math-foundations/19-complex-numbers/code/complex_numbers.py:83
↓ 1 callersFunctiondft_mag
(x)
phases/06-speech-and-audio/02-spectrograms-mel-features/code/main.py:28
↓ 1 callersFunctiondft_mag
(x)
phases/06-speech-and-audio/03-audio-classification/code/main.py:27
↓ 1 callersFunctiondft_mag
(x)
phases/06-speech-and-audio/06-speaker-recognition-verification/code/main.py:32
↓ 1 callersFunctiondice_loss
(logits, targets, num_classes, eps=1e-6)
phases/04-computer-vision/07-semantic-segmentation-unet/code/main.py:75
↓ 1 callersFunctiondiff
(capability: str)
phases/15-autonomous-systems/20-openai-preparedness-deepmind-fsf/code/main.py:78
↓ 1 callersFunctiondiff_attention_row
(q1, q2, K1, K2, V, mask_row, lam)
phases/07-transformers-deep-dive/15-attention-variants/code/main.py:90
↓ 1 callersFunctiondiff_line
(a: str, b: str, c: str)
phases/13-tools-and-protocols/02-function-calling-deep-dive/code/main.py:227
↓ 1 callersFunctiondiffusion_forward
(signal, n_steps, beta_start=0.0001, beta_end=0.02, seed=None)
phases/01-math-foundations/22-stochastic-processes/code/stochastic.py:92
↓ 1 callersFunctiondisambiguate
(mention, context, use_prior=True)
phases/05-nlp-foundations-to-advanced/25-entity-linking/code/main.py:43
↓ 1 callersMethoddiscover
(self)
phases/13-tools-and-protocols/18-mcp-auth-production/code/main.py:286
↓ 1 callersFunctiondiscoverArtifacts
()
site/build.js:340
↓ 1 callersMethoddiscover_all
(self)
phases/13-tools-and-protocols/08-building-an-mcp-client/code/main.py:101
↓ 1 callersFunctiondiscover_artifacts
()
scripts/install_skills.py:91
↓ 1 callersFunctiondiscover_skills
(root: Path)
phases/13-tools-and-protocols/22-skills-and-agent-sdks/code/main.py:123
↓ 1 callersFunctiondiscretize
(x, n_bins=10)
phases/02-ml-fundamentals/18-feature-selection/code/feature_selection.py:43
↓ 1 callersFunctiondispatch
(task: Task, ledger: BudgetLedger, rng: random.Random)
phases/19-capstone-projects/16-github-issue-to-pr-agent/code/main.py:191
↓ 1 callersFunctiondispatch
(msg: dict)
phases/13-tools-and-protocols/09-mcp-transports/code/main.py:42
↓ 1 callersMethoddispatch
(call: ToolCall)
phases/14-agent-engineering/06-tool-use-and-function-calling/code/main.ts:157
↓ 1 callersMethoddispatch
(self, call: ToolCall)
phases/14-agent-engineering/06-tool-use-and-function-calling/code/main.py:123
↓ 1 callersMethoddispatch
(call: ToolCall)
phases/14-agent-engineering/01-the-agent-loop/code/main.ts:39
↓ 1 callersMethoddispatch
(self, call: ToolCall)
phases/14-agent-engineering/01-the-agent-loop/code/main.py:44
↓ 1 callersFunctiondispatchAgent
( audit: AuditLog, repo: string, issueNumber: number, title: string, )
phases/19-capstone-projects/16-github-issue-to-pr-agent/code/ts/src/agent.ts:19
↓ 1 callersMethoddispatchMany
(calls: ToolCall[])
phases/14-agent-engineering/06-tool-use-and-function-calling/code/main.ts:182
↓ 1 callersMethoddispatch_many
(self, calls: list[ToolCall])
phases/14-agent-engineering/06-tool-use-and-function-calling/code/main.py:138
↓ 1 callersFunctiondispatch_tool
(name, args)
phases/06-speech-and-audio/12-voice-assistant-pipeline/code/main.py:52
↓ 1 callersFunctiondisplay_format_comparison
(value)
phases/10-llms-from-scratch/11-quantization/code/main.py:67
↓ 1 callersFunctiondistribution_check
(n_tokens, vocab_size, mask_prob=0.15, seed=42)
phases/07-transformers-deep-dive/06-bert-masked-language-modeling/code/main.py:77
↓ 1 callersFunctiondistribution_check
Check that the FIRST emitted token (the Leviathan-sampled one) is distributed as q. On accept that is the draft; on reject it is the residual
phases/10-llms-from-scratch/15-speculative-decoding-eagle3/code/main.py:105
↓ 1 callersFunctiondoc_prune
Keep patches with highest per-patch norm (poor proxy for info density but matches the DocPruner intuition: drop low-signal patches).
phases/19-capstone-projects/04-multimodal-document-qa/code/main.py:54
↓ 1 callersFunctiondocument_frequency
(bow_matrix)
phases/05-nlp-foundations-to-advanced/02-bag-of-words-tfidf/code/main.py:30
↓ 1 callersFunctiondocument_rotate
(tokens, rng=None)
phases/07-transformers-deep-dive/08-t5-bart-encoder-decoder/code/main.py:138
↓ 1 callersFunctiondomain_of
(url: str)
scripts/link_check.py:211
↓ 1 callersFunctiondonut_schema
(task: str = "invoice")
phases/12-multimodal-ai/22-document-diagram-understanding/code/main.py:44
↓ 1 callersFunctiondot
(a: list[float], b: list[float])
phases/19-capstone-projects/04-multimodal-document-qa/code/main.py:67
↓ 1 callersFunctiondot
(a: list[float], b: list[float])
phases/12-multimodal-ai/03-blip2-qformer-bridge/code/main.py:41
↓ 1 callersFunctiondot
(a: list[float], b: list[float])
phases/12-multimodal-ai/04-flamingo-gated-cross-attention/code/main.py:32
↓ 1 callersMethoddot
(self, other)
phases/01-math-foundations/02-vectors-matrices-operations/code/matrices.py:21
↓ 1 callersFunctiondot_attention
(decoder_state, encoder_states)
phases/05-nlp-foundations-to-advanced/10-attention-mechanism/code/main.py:17
↓ 1 callersFunctiondownload_mnist
(path="./mnist_data")
phases/03-deep-learning-core/11-intro-to-pytorch/code/pytorch_intro.py:19
↓ 1 callersFunctiondownload_model_file
(repo_id: str, filename: str)
phases/00-setup-and-tooling/09-data-management/code/data_utils.py:102
↓ 1 callersFunctiondownsample_naive
(samples, factor)
phases/06-speech-and-audio/01-audio-fundamentals/code/main.py:68
↓ 1 callersFunctiondp_sgd
(data, epochs: int, lr: float, sigma: float, C: float)
phases/18-ethics-safety-alignment/22-differential-privacy-for-llms/code/main.py:39
↓ 1 callersFunctiondpo_loss
( policy_logprob_preferred, policy_logprob_rejected, ref_logprob_preferred, ref_logprob_reject
phases/10-llms-from-scratch/08-dpo/code/main.py:94
↓ 1 callersFunctiondriveSession
(ws: WebSocket)
phases/19-capstone-projects/03-realtime-voice-assistant/code/ts/src/server.ts:38
↓ 1 callersFunctiondrum_pattern
(genre, bars=8)
phases/06-speech-and-audio/09-music-generation/code/main.py:46
↓ 1 callersFunctionduplex_modes
()
phases/12-multimodal-ai/20-omni-models-thinker-talker/code/main.py:96
↓ 1 callersFunctionduration
(phones, jitter=0.1, seed=0)
phases/06-speech-and-audio/07-text-to-speech/code/main.py:72
↓ 1 callersFunctiondvd_throughput
(encoder_flops: int, llm_flops: int, llm_tokens: int = 128)
phases/12-multimodal-ai/10-internvl3-native-multimodal/code/main.py:52
↓ 1 callersFunctiondynamic_sample
Allocate samples by per-second motion; cap per second at fps_cap.
phases/12-multimodal-ai/17-video-language-temporal-grounding/code/main.py:25
↓ 1 callersFunctioneaseIO
(t)
site/figures.js:50
↓ 1 callersFunctionedit_distance
(s1, s2)
phases/01-math-foundations/14-norms-and-distances/code/distances.py:110
↓ 1 callersFunctioneer
(same_scores, diff_scores)
phases/06-speech-and-audio/06-speaker-recognition-verification/code/main.py:121
↓ 1 callersFunctioneer_from_scores
(same, diff)
phases/06-speech-and-audio/17-audio-evaluation-metrics/code/main.py:43
↓ 1 callersFunctioneffective_rate
Normalize to $/M tokens for cross-vendor comparison.
phases/17-infrastructure-and-production/02-inference-platform-economics/code/main.py:56
↓ 1 callersFunctionefficiency
(observed: float | None, ceiling_val: float)
phases/17-infrastructure-and-production/12-edge-inference/code/main.py:39
↓ 1 callersMethodelement_wise_multiply
(self, other)
phases/01-math-foundations/02-vectors-matrices-operations/code/matrices.py:86
↓ 1 callersFunctionelo_update
(r_a, r_b, winner, k=32)
phases/08-generative-ai/14-evaluation-fid-clip-score/code/main.py:91
↓ 1 callersMethodembedBatch
(texts: readonly string[])
phases/11-llm-engineering/04-embeddings/code/main.ts:88
↓ 1 callersMethodembed_batch
(self, texts)
phases/11-llm-engineering/04-embeddings/code/embeddings.py:69
↓ 1 callersFunctionembed_mfcc_stats
(signal, sr)
phases/06-speech-and-audio/06-speaker-recognition-verification/code/main.py:108
↓ 1 callersMethodembed_patches
Multi-vector: each content token becomes a patch vector.
phases/19-capstone-projects/04-multimodal-document-qa/code/main.py:45
↓ 1 callersFunctionembedding_fad_like
(real_embeds, fake_embeds)
phases/06-speech-and-audio/17-audio-evaluation-metrics/code/main.py:62
↓ 1 callersFunctionencode
(x)
phases/08-generative-ai/07-latent-diffusion-stable-diffusion/code/main.py:115
↓ 1 callersFunctionencode
(box_xyxy, cell_x, cell_y, stride, anchor_wh)
phases/04-computer-vision/06-object-detection-yolo/code/main.py:44
↓ 1 callersFunctionencode
(sequence)
phases/05-nlp-foundations-to-advanced/09-sequence-to-sequence/code/main.py:13
← previousnext →3,501–3,600 of 8,347, ranked by callers