MCPcopy Create free account

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

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

↓ 2 callersMethod__init__
(self, hidden: int, heads: int, max_len: int)
phases/19-capstone-projects/39-instruction-tuning-sft/code/main.py:112
↓ 2 callersMethod__init__
(self, vocab: int = VOCAB, embed_dim: int = EMBED_DIM, num_heads: int = NUM_HEADS, num_layers
phases/19-capstone-projects/81-end-to-end-distributed-train/code/main.py:96
↓ 2 callersMethod__init__
(self, hidden: int, heads: int, max_len: int)
phases/19-capstone-projects/41-eval-pipeline/code/main.py:102
↓ 2 callersMethod__init__
(self, name: str)
phases/14-agent-engineering/14-autogen-actor-model/code/main.py:25
↓ 2 callersMethod__init__
(self, name: str, replies: dict[str, str])
phases/14-agent-engineering/22-voice-agents-pipecat-livekit/code/main.py:57
↓ 2 callersMethod_add_token
(self, token_bytes: bytes)
phases/19-capstone-projects/30-bpe-tokenizer-from-scratch/code/main.py:41
↓ 2 callersFunction_apply_fix
Apply the per-path fix in place. Returns True iff a fix was applied.
phases/15-autonomous-systems/09-coding-agent-landscape/code/main.py:60
↓ 2 callersFunction_assigned_targets
Centralized optimal pellet assignment: minimize total Manhattan.
phases/16-multi-agent-and-swarms/20-marl-maddpg-qmix-mappo/code/main.py:83
↓ 2 callersFunction_backoff
(attempt: int)
phases/19-capstone-projects/23-function-call-dispatcher/code/main.py:272
↓ 2 callersMethod_band_key
(band: list[int])
phases/19-capstone-projects/42-large-corpus-downloader/code/main.py:185
↓ 2 callersFunction_basename
(executable: str)
phases/19-capstone-projects/26-sandbox-runner-denylist/code/main.py:152
↓ 2 callersFunction_batch_encode
(pairs: list[Triple], max_len: int = 96)
phases/19-capstone-projects/66-reranker-cross-encoder/code/main.py:114
↓ 2 callersMethod_begin_plan
(self)
phases/19-capstone-projects/20-agent-harness-loop-contract/code/main.py:253
↓ 2 callersFunction_bow
(text: str)
phases/19-capstone-projects/68-rag-eval-precision-recall/code/main.py:251
↓ 2 callersFunction_by_model
(runs: Sequence[EvalRun])
phases/19-capstone-projects/74-leaderboard-aggregation/code/main.py:86
↓ 2 callersFunction_c_factor
(n)
phases/02-ml-fundamentals/16-anomaly-detection/code/anomaly_detection.py:28
↓ 2 callersFunction_clone_body
Deep-copy a body so two regimes start from the same pretrained weights.
phases/19-capstone-projects/38-classifier-finetuning/code/main.py:603
↓ 2 callersFunction_coerce
(value: str)
phases/19-capstone-projects/86-constitutional-rules-engine/code/yaml_subset.py:49
↓ 2 callersMethod_complete
(self, reason: str)
phases/19-capstone-projects/20-agent-harness-loop-contract/code/main.py:310
↓ 2 callersFunction_cosine
(a: Counter, b: Counter)
phases/19-capstone-projects/82-jailbreak-taxonomy/code/main.py:60
↓ 2 callersFunction_count
(ngrams: list[tuple[int, ...]])
phases/19-capstone-projects/63-multimodal-eval/code/main.py:115
↓ 2 callersFunction_deps_fingerprint
()
phases/14-agent-engineering/35-initialization-scripts/code/main.py:139
↓ 2 callersFunction_deserialize
(data: bytes)
phases/19-capstone-projects/81-end-to-end-distributed-train/code/main.py:234
↓ 2 callersFunction_edit_distance
(a_tokens, b_tokens)
phases/06-speech-and-audio/17-audio-evaluation-metrics/code/main.py:13
↓ 2 callersFunction_encode_corpus_to_ids
(tokenizer: MiniBPE, corpus: str, target_vocab: int)
phases/19-capstone-projects/31-tokenized-dataset-sliding-window/code/main.py:218
↓ 2 callersMethod_ensure_player
(self, name)
phases/10-llms-from-scratch/10-evaluation/code/main.py:70
↓ 2 callersFunction_eval_predicate
(node: dict[str, Any] | None, text: str)
phases/19-capstone-projects/86-constitutional-rules-engine/code/main.py:81
↓ 2 callersMethod_flat_index
(self, indices)
phases/01-math-foundations/12-tensor-operations/code/tensors.py:72
↓ 2 callersFunction_gamma_sample
(shape, rng_module)
phases/01-math-foundations/07-bayes-theorem/code/bayes.py:318
↓ 2 callersMethod_get_bucket
(self, user_id, tier="free")
phases/11-llm-engineering/11-caching-cost/code/caching_cost.py:174
↓ 2 callersFunction_grad_norm
(module: nn.Module)
phases/19-capstone-projects/48-distributed-fsdp-ddp/code/main.py:132
↓ 2 callersFunction_handle_one
Dispatch a single Request. Returns the response envelope (or None for notification).
phases/19-capstone-projects/22-jsonrpc-stdio-transport/code/main.py:140
↓ 2 callersMethod_hash
(self, model, messages, temperature)
phases/11-llm-engineering/11-caching-cost/code/caching_cost.py:54
↓ 2 callersFunction_hex
(n_bytes: int)
phases/13-tools-and-protocols/20-opentelemetry-genai/code/main.py:28
↓ 2 callersFunction_init_normal
Init a parameter tensor in place from a small Gaussian.
phases/19-capstone-projects/32-token-positional-embeddings/code/main.py:26
↓ 2 callersFunction_is_valid_envelope
(msg: Any)
phases/19-capstone-projects/22-jsonrpc-stdio-transport/code/main.py:52
↓ 2 callersFunction_lentz_betacf
Continued fraction for the regularised incomplete beta function via Lentz.
phases/19-capstone-projects/53-result-evaluator/code/main.py:89
↓ 2 callersFunction_load_fixture_tasks
()
phases/19-capstone-projects/75-end-to-end-eval-runner/code/main.py:339
↓ 2 callersMethod_log_likelihood
(self, word, cls)
phases/01-math-foundations/07-bayes-theorem/code/bayes.py:40
↓ 2 callersMethod_log_likelihood
(self, X)
phases/02-ml-fundamentals/14-naive-bayes/code/naive_bayes.py:73
↓ 2 callersMethod_log_prior
(self, cls)
phases/01-math-foundations/07-bayes-theorem/code/bayes.py:36
↓ 2 callersFunction_log_transform
(values: list[float], scale: str)
phases/19-capstone-projects/53-result-evaluator/code/main.py:209
↓ 2 callersFunction_luhn
(digits: str)
phases/19-capstone-projects/85-content-classifier-integration/code/classifiers.py:94
↓ 2 callersFunction_map_exception
(exc: Exception, attempts: int)
phases/19-capstone-projects/23-function-call-dispatcher/code/main.py:277
↓ 2 callersFunction_mean
(values)
phases/02-ml-fundamentals/04-decision-trees/code/trees.py:62
↓ 2 callersMethod_merge_heads
(self, x: torch.Tensor)
phases/19-capstone-projects/33-multihead-self-attention/code/main.py:59
↓ 2 callersMethod_merge_pair
(self, tokens, pair, new_token)
phases/10-llms-from-scratch/01-tokenizers/code/bpe.py:15
↓ 2 callersMethod_merge_pair
(self, tokens, pair, new_token)
phases/10-llms-from-scratch/01-tokenizers/code/main.py:23
↓ 2 callersFunction_navigate
(item)
site/cmdpalette.js:503
↓ 2 callersMethod_negated_at
(self, text: str, start: int)
phases/19-capstone-projects/85-content-classifier-integration/code/classifiers.py:56
↓ 2 callersFunction_ngrams
(seq: list[int], n: int)
phases/19-capstone-projects/63-multimodal-eval/code/main.py:109
↓ 2 callersFunction_normalize_command
(cmd)
phases/14-agent-engineering/42-agent-workbench-capstone/outputs/agent-workbench-pack/scripts/verify_agent.py:26
↓ 2 callersFunction_ok_envelope
(rid: int | str | None, result: Any)
phases/19-capstone-projects/22-jsonrpc-stdio-transport/code/main.py:98
↓ 2 callersFunction_palEl
()
site/cmdpalette.js:283
↓ 2 callersMethod_params_to_vec
(self, params)
phases/02-ml-fundamentals/12-hyperparameter-tuning/code/tuning.py:197
↓ 2 callersFunction_parse_block
(lines: list[str], start: int, indent: int)
phases/19-capstone-projects/86-constitutional-rules-engine/code/yaml_subset.py:91
↓ 2 callersFunction_parse_mapping
(lines: list[str], start: int, indent: int)
phases/19-capstone-projects/86-constitutional-rules-engine/code/yaml_subset.py:104
↓ 2 callersFunction_per_category_under_refusal
(unsafe_results: list[TrialResult])
phases/19-capstone-projects/84-refusal-evaluation/code/main.py:114
↓ 2 callersFunction_persona
(prompt: str)
phases/19-capstone-projects/87-end-to-end-safety-gate/code/mock_llm_stream.py:49
↓ 2 callersMethod_predict_one
(self, x)
phases/02-ml-fundamentals/06-knn-and-distances/code/knn.py:66
↓ 2 callersFunction_pretokenize
(text: str)
phases/19-capstone-projects/31-tokenized-dataset-sliding-window/code/main.py:59
↓ 2 callersFunction_pretokenize
Split text on whitespace/non-whitespace runs. Each chunk becomes one BPE training unit. Merges never cross chunk boundaries. Whitespace runs
phases/19-capstone-projects/30-bpe-tokenizer-from-scratch/code/main.py:66
↓ 2 callersFunction_print_metrics
(label: str, metrics: dict)
phases/19-capstone-projects/63-multimodal-eval/code/main.py:270
↓ 2 callersMethod_rbf_kernel
(self, X1, X2, length_scale=0.3)
phases/02-ml-fundamentals/12-hyperparameter-tuning/code/tuning.py:212
↓ 2 callersMethod_recency_score
(self, record: Record, now: float)
phases/14-agent-engineering/09-hybrid-memory-mem0/code/main.py:129
↓ 2 callersFunction_regularized_beta
(x, a, b)
phases/01-math-foundations/15-statistics-for-ml/code/statistics.py:156
↓ 2 callersFunction_request
(url: str, method: str, timeout: int)
scripts/link_check.py:233
↓ 2 callersFunction_run_policy
(policy: Callable[[str], str], records: Iterable[dict[str, object]], label_unsafe: bool)
phases/19-capstone-projects/84-refusal-evaluation/code/main.py:65
↓ 2 callersMethod_sample_random
(self)
phases/02-ml-fundamentals/12-hyperparameter-tuning/code/tuning.py:194
↓ 2 callersFunction_serialize
(state: dict)
phases/19-capstone-projects/81-end-to-end-distributed-train/code/main.py:227
↓ 2 callersFunction_set_eval_mode
Disable dropout so the comparison between pre-LN and post-LN is deterministic.
phases/19-capstone-projects/34-transformer-block/code/main.py:195
↓ 2 callersFunction_sha
(data: bytes)
phases/19-capstone-projects/81-end-to-end-distributed-train/code/main.py:223
↓ 2 callersFunction_sha256_bytes
(data: bytes)
phases/19-capstone-projects/80-checkpoint-sharded-resume/code/main.py:73
↓ 2 callersFunction_sign
(payload: dict[str, object])
phases/14-agent-engineering/38-verification-gates/code/main.py:166
↓ 2 callersFunction_stable_hash
(tok: str)
phases/19-capstone-projects/69-end-to-end-rag-system/code/main.py:58
↓ 2 callersFunction_token_to_id
(token: str)
phases/19-capstone-projects/69-end-to-end-rag-system/code/main.py:278
↓ 2 callersFunction_token_to_id
(token: str)
phases/19-capstone-projects/66-reranker-cross-encoder/code/main.py:40
↓ 2 callersFunction_tokens
(s: str)
phases/19-capstone-projects/49-lm-eval-harness/code/main.py:168
↓ 2 callersFunction_trigrams
(text: str)
phases/19-capstone-projects/85-content-classifier-integration/code/classifiers.py:151
↓ 2 callersFunction_validate_runs
(runs: Sequence[EvalRun])
phases/19-capstone-projects/74-leaderboard-aggregation/code/main.py:75
↓ 2 callersFunction_word_count
(text: str)
phases/19-capstone-projects/86-constitutional-rules-engine/code/main.py:77
↓ 2 callersFunction_word_to_byte_ids
(word: str)
phases/19-capstone-projects/30-bpe-tokenizer-from-scratch/code/main.py:76
↓ 2 callersFunction_zst_url
(directory: Path, name: str, lines: list[str])
phases/19-capstone-projects/42-large-corpus-downloader/code/tests/test_downloader.py:41
↓ 2 callersFunctionab
(t)
site/figures-genai-rl.js:68
↓ 2 callersFunctionab_test_simulator
( n_per_group=100, true_effect=0.0, base_mean=50, base_std=10, alpha=0.05, )
phases/01-math-foundations/15-statistics-for-ml/code/statistics.py:329
↓ 2 callersFunctionablate
(base: ExperimentSpec, knob: str, values: Iterable[Any])
phases/19-capstone-projects/52-experiment-runner/code/main.py:261
↓ 2 callersFunctionaccumulate
(x, target)
phases/08-generative-ai/03-gans-generator-discriminator/code/main.py:79
↓ 2 callersFunctionaccumulate_d_grad
(x, c, target, D, num_classes, grads)
phases/08-generative-ai/04-conditional-gans-pix2pix/code/main.py:86
↓ 2 callersFunctionaccuracy
(model: list[float], data: list[tuple[list[float], int]])
phases/18-ethics-safety-alignment/11-scalable-oversight-weak-to-strong/code/main.py:56
↓ 2 callersFunctionaccuracy
(params, x, y)
phases/03-deep-learning-core/12-intro-to-jax/code/jax_intro.py:66
↓ 2 callersFunctionaccuracy
(prediction: str, targets: list[str])
phases/19-capstone-projects/71-classical-metrics/code/main.py:34
↓ 2 callersMethodaccuracy
(self, X, y)
phases/02-ml-fundamentals/11-ensemble-methods/code/ensembles.py:216
↓ 2 callersFunctionadd
(a, b)
phases/08-generative-ai/05-stylegan/code/main.py:17
↓ 2 callersFunctionadd
(a: list[float], b: list[float])
phases/12-multimodal-ai/04-flamingo-gated-cross-attention/code/main.py:43
↓ 2 callersMethodadd
(self, doc: Doc)
phases/19-capstone-projects/67-query-rewriting-hyde/code/main.py:79
↓ 2 callersMethodadd
(self, chunk: Chunk)
phases/19-capstone-projects/64-chunking-strategies-advanced/code/main.py:251
↓ 2 callersMethodaddEvent
(span: Span, name: string, attributes?: Record<string, unknown>)
phases/17-infrastructure-and-production/13-llm-observability/code/main.ts:86
↓ 2 callersMethodaddTurn
(role: Turn["role"], content: string)
phases/11-llm-engineering/05-context-engineering/code/main.ts:106
↓ 2 callersMethodadd_boundary
Inject the separator token between documents.
phases/19-capstone-projects/43-hdf5-tokenized-corpus/code/main.py:161
↓ 2 callersMethodadd_conditional_edges
(self, src: str, router: Router, targets: dict[str, str])
phases/14-agent-engineering/13-langgraph-stateful-graphs/code/main.py:47
← previousnext →1,501–1,600 of 8,347, ranked by callers