MCPcopy Create free account

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

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

↓ 1 callersMethod__init__
(self, num_classes=10, pretrained=False)
phases/04-computer-vision/12-video-understanding/code/main.py:27
↓ 1 callersMethod__init__
(self, vocab_size: int, embed_dim: int)
phases/19-capstone-projects/62-vision-language-pretraining/code/main.py:117
↓ 1 callersMethod__init__
(self, in_dim: int, hidden_dim: int, out_dim: int)
phases/19-capstone-projects/60-projection-layer-modality-align/code/main.py:64
↓ 1 callersMethod__init__
(self, cfg: FrontEndConfig)
phases/19-capstone-projects/58-vision-encoder-patches/code/main.py:76
↓ 1 callersMethod__init__
(self, graph: StateGraph, checkpointer: InMemoryCheckpointer)
phases/14-agent-engineering/13-langgraph-stateful-graphs/code/main.py:92
↓ 1 callersMethod__init__
(self, in_features, out_features, rank=8, alpha=16)
phases/11-llm-engineering/08-fine-tuning-lora/code/lora.py:7
↓ 1 callersMethod__mul__
(self, other)
phases/03-deep-learning-core/03-backpropagation/code/main.py:30
↓ 1 callersMethod__mul__
(self, other)
phases/01-math-foundations/05-chain-rule-and-autodiff/code/autodiff.py:27
↓ 1 callersMethod__mul__
(self, other)
phases/01-math-foundations/19-complex-numbers/code/complex_numbers.py:26
↓ 1 callersMethod__mul__
(self, other)
phases/01-math-foundations/20-fourier-transform/code/fourier.py:22
↓ 1 callersFunction_acceptance_findings
(art: Artifacts)
phases/14-agent-engineering/38-verification-gates/code/main.py:80
↓ 1 callersMethod_aggregate
(self, pre: PreGenVerdict, during: DuringGenVerdict, post: PostGenVerdict | None)
phases/19-capstone-projects/87-end-to-end-safety-gate/code/safety_gate.py:158
↓ 1 callersFunction_all_leaves
(node: Node)
phases/14-agent-engineering/04-tree-of-thoughts-lats/code/main.py:142
↓ 1 callersMethod_answer
(self, prompt: str)
phases/19-capstone-projects/49-lm-eval-harness/code/main.py:90
↓ 1 callersMethod_apply_action
(self, action: str, raw_output: str, post: PostGenVerdict | None)
phases/19-capstone-projects/87-end-to-end-safety-gate/code/safety_gate.py:184
↓ 1 callersFunction_apply_merge
(symbols: tuple[int, ...], pair: tuple[int, int], new_id: int)
phases/19-capstone-projects/30-bpe-tokenizer-from-scratch/code/main.py:88
↓ 1 callersFunction_apply_merge_to_corpus
( units: dict[tuple[int, ...], int], pair: tuple[int, int], new_id: int, )
phases/19-capstone-projects/31-tokenized-dataset-sliding-window/code/main.py:71
↓ 1 callersFunction_apply_merge_to_corpus
( units: dict[tuple[int, ...], int], pair: tuple[int, int], new_id: int, )
phases/19-capstone-projects/30-bpe-tokenizer-from-scratch/code/main.py:143
↓ 1 callersMethod_apply_redactors
(self, text: str, verdicts: list[ClassifierVerdict])
phases/19-capstone-projects/85-content-classifier-integration/code/main.py:51
↓ 1 callersFunction_arithmetic_response
(a: int, b: int, op: str)
phases/19-capstone-projects/39-instruction-tuning-sft/code/main.py:230
↓ 1 callersMethod_backward
()
phases/03-deep-learning-core/03-backpropagation/code/main.py:20
↓ 1 callersMethod_backward
()
phases/01-math-foundations/05-chain-rule-and-autodiff/code/autodiff.py:18
↓ 1 callersFunction_benchmark_case
()
phases/14-agent-engineering/30-eval-driven-agent-development/code/main.py:58
↓ 1 callersMethod_best_split
(self, X, y)
phases/02-ml-fundamentals/04-decision-trees/code/trees.py:151
↓ 1 callersFunction_beta_function
(a, b)
phases/01-math-foundations/15-statistics-for-ml/code/statistics.py:173
↓ 1 callersMethod_blocked_response
(self, request_id, user_id, template_name, guardrail_result, start_time)
phases/11-llm-engineering/13-production-app/code/production_app.py:537
↓ 1 callersMethod_broadcast_params
(self)
phases/19-capstone-projects/77-data-parallel-ddp/code/main.py:72
↓ 1 callersMethod_build
(self, X, y, depth)
phases/02-ml-fundamentals/04-decision-trees/code/trees.py:104
↓ 1 callersMethod_build
(self, X, y, depth)
phases/02-ml-fundamentals/13-ml-pipelines/code/pipeline.py:231
↓ 1 callersMethod_build
(self, X, y, depth)
phases/02-ml-fundamentals/11-ensemble-methods/code/ensembles.py:111
↓ 1 callersMethod_build
(self, X, y, depth)
phases/02-ml-fundamentals/12-hyperparameter-tuning/code/tuning.py:34
↓ 1 callersMethod_build
(self, points, depth)
phases/02-ml-fundamentals/06-knn-and-distances/code/knn.py:127
↓ 1 callersFunction_build_initial_units
(corpus: str)
phases/19-capstone-projects/30-bpe-tokenizer-from-scratch/code/main.py:134
↓ 1 callersMethod_build_nested
(self, data, shape, offset)
phases/01-math-foundations/12-tensor-operations/code/tensors.py:235
↓ 1 callersFunction_build_runner
(code: str, assertions: list[str])
phases/19-capstone-projects/72-code-exec-metric/code/main.py:144
↓ 1 callersMethod_build_table
(max_context_length: int, d_model: int, base: float)
phases/19-capstone-projects/32-token-positional-embeddings/code/main.py:106
↓ 1 callersFunction_build_tree_importance
(X, y, feature_subset, max_depth, depth=0)
phases/02-ml-fundamentals/18-feature-selection/code/feature_selection.py:168
↓ 1 callersFunction_by_task
(runs: Sequence[EvalRun])
phases/19-capstone-projects/74-leaderboard-aggregation/code/main.py:93
↓ 1 callersFunction_calibration_blocks
(buf: dict[str, list[tuple[float, float, int]]])
phases/19-capstone-projects/75-end-to-end-eval-runner/code/main.py:190
↓ 1 callersFunction_category_means
(runs: Sequence[EvalRun])
phases/19-capstone-projects/74-leaderboard-aggregation/code/main.py:162
↓ 1 callersFunction_check
(label: str, actual: Recommendation, expected_framework: str)
phases/11-llm-engineering/17-agent-framework-tradeoffs/code/main.py:103
↓ 1 callersFunction_check_array
(schema: dict, value: list, path: str, errs: list[ValidationError])
phases/19-capstone-projects/21-tool-registry-schema-validation/code/main.py:235
↓ 1 callersMethod_check_budget
(self)
phases/19-capstone-projects/20-agent-harness-loop-contract/code/main.py:198
↓ 1 callersMethod_check_budget
(self)
phases/11-llm-engineering/11-caching-cost/code/caching_cost.py:253
↓ 1 callersFunction_check_category_metric
(record: dict)
phases/19-capstone-projects/70-task-spec-format/code/main.py:140
↓ 1 callersFunction_check_object
(schema: dict, value: dict, path: str, errs: list[ValidationError])
phases/19-capstone-projects/21-tool-registry-schema-validation/code/main.py:220
↓ 1 callersFunction_check_required
(record: dict)
phases/19-capstone-projects/70-task-spec-format/code/main.py:89
↓ 1 callersFunction_check_string
(schema: dict, value: str, path: str, errs: list[ValidationError])
phases/19-capstone-projects/21-tool-registry-schema-validation/code/main.py:195
↓ 1 callersFunction_check_type
(value: Any, types: str | list[str])
phases/14-agent-engineering/34-repo-memory-and-state/code/main.py:60
↓ 1 callersFunction_check_types
(record: dict)
phases/19-capstone-projects/70-task-spec-format/code/main.py:103
↓ 1 callersFunction_check_unknown_fields
(record: dict)
phases/19-capstone-projects/70-task-spec-format/code/main.py:96
↓ 1 callersMethod_classify
(self, neighbors)
phases/02-ml-fundamentals/06-knn-and-distances/code/knn.py:78
↓ 1 callersFunction_coerce
(value: Any, schema: dict[str, Any])
phases/14-agent-engineering/06-tool-use-and-function-calling/code/main.py:36
↓ 1 callersMethod_compress_if_needed
(self)
phases/11-llm-engineering/05-context-engineering/code/main.py:105
↓ 1 callersFunction_confusion
(results: list[TrialResult])
phases/19-capstone-projects/84-refusal-evaluation/code/main.py:81
↓ 1 callersFunction_cosine
(a: Counter, b: Counter)
phases/19-capstone-projects/85-content-classifier-integration/code/classifiers.py:162
↓ 1 callersFunction_count_pairs
(units: dict[tuple[int, ...], int])
phases/19-capstone-projects/31-tokenized-dataset-sliding-window/code/main.py:63
↓ 1 callersFunction_count_pairs
(corpus_units: dict[tuple[int, ...], int])
phases/19-capstone-projects/30-bpe-tokenizer-from-scratch/code/main.py:80
↓ 1 callersFunction_coverage_findings
Anthropic Hybrid Norm: pair verifiable rewards (tests + coverage) with rubric judging. Floor failure is a block. Regression versus the previous m
phases/14-agent-engineering/38-verification-gates/code/main.py:114
↓ 1 callersFunction_custom_llm_judge_case
()
phases/14-agent-engineering/30-eval-driven-agent-development/code/main.py:77
↓ 1 callersFunction_demo
()
phases/19-capstone-projects/52-experiment-runner/code/main.py:304
↓ 1 callersFunction_demo
()
phases/19-capstone-projects/51-literature-retrieval/code/main.py:405
↓ 1 callersFunction_demo
()
phases/19-capstone-projects/23-function-call-dispatcher/code/main.py:293
↓ 1 callersFunction_demo
()
phases/19-capstone-projects/50-hypothesis-generator/code/main.py:298
↓ 1 callersFunction_demo
()
phases/19-capstone-projects/20-agent-harness-loop-contract/code/main.py:318
↓ 1 callersFunction_demo
()
phases/19-capstone-projects/53-result-evaluator/code/main.py:310
↓ 1 callersFunction_demo
Self-terminating demo using io.BytesIO. No process spawn.
phases/19-capstone-projects/22-jsonrpc-stdio-transport/code/main.py:217
↓ 1 callersFunction_demo
()
phases/19-capstone-projects/24-plan-execute-control-flow/code/main.py:236
↓ 1 callersFunction_demo
()
phases/19-capstone-projects/21-tool-registry-schema-validation/code/main.py:243
↓ 1 callersFunction_demo_examples
()
phases/19-capstone-projects/72-code-exec-metric/code/main.py:280
↓ 1 callersFunction_demo_tools
Three synthetic tools. read_file is verbose, list_dir is small, run_tests is structured.
phases/19-capstone-projects/25-verification-gates-observation-budget/code/main.py:390
↓ 1 callersFunction_deserialize_state
(data: bytes)
phases/19-capstone-projects/80-checkpoint-sharded-resume/code/main.py:99
↓ 1 callersFunction_diff_plans
(old: list[Step], new: list[Step], revision: int)
phases/19-capstone-projects/24-plan-execute-control-flow/code/main.py:85
↓ 1 callersMethod_dispatch
(self, tool_name: str, args: dict[str, Any])
phases/14-agent-engineering/17-claude-agent-sdk/code/main.py:91
↓ 1 callersMethod_doc_tokens
(self, doc: Doc)
phases/19-capstone-projects/65-hybrid-retrieval-bm25-dense/code/main.py:60
↓ 1 callersMethod_dom_has_injection
(self, screen: Screen)
phases/14-agent-engineering/21-computer-use-agents/code/main.py:87
↓ 1 callersMethod_during_gen
(self, chunks: Iterable[str], buffer_cap: int = 2)
phases/19-capstone-projects/87-end-to-end-safety-gate/code/safety_gate.py:121
↓ 1 callersFunction_editor
(prior: Any, tools: list[Callable[..., str]], memory: Memory | None)
phases/14-agent-engineering/15-crewai-role-based-crews/code/main.py:216
↓ 1 callersFunction_embedded_few_shot
(prompt: str)
phases/19-capstone-projects/70-task-spec-format/code/main.py:157
↓ 1 callersFunction_encode_chunk
(tokenizer: BPETokenizer, chunk: str)
phases/19-capstone-projects/30-bpe-tokenizer-from-scratch/code/main.py:155
↓ 1 callersMethod_ensure_open
(self)
phases/19-capstone-projects/28-observability-otel-traces/code/main.py:148
↓ 1 callersFunction_ensure_outputs_dir
()
phases/19-capstone-projects/82-jailbreak-taxonomy/code/main.py:166
↓ 1 callersMethod_error_rate
(self)
phases/16-multi-agent-and-swarms/23-failure-modes-mast-groupthink/code/main.py:73
↓ 1 callersMethod_evict_one
(self)
phases/17-infrastructure-and-production/06-sglang-radixattention/code/main.py:77
↓ 1 callersMethod_expected_improvement
(self, mu, var, best_y)
phases/02-ml-fundamentals/12-hyperparameter-tuning/code/tuning.py:242
↓ 1 callersMethod_failed_verdict
( self, hypothesis_id: int, metric_spec: MetricSpec, bad: list[ExperimentResultLike] )
phases/19-capstone-projects/53-result-evaluator/code/main.py:268
↓ 1 callersFunction_fixture_root
()
phases/19-capstone-projects/29-end-to-end-coding-task-demo/code/main.py:661
↓ 1 callersFunction_flaky_benchmark_case
()
phases/14-agent-engineering/30-eval-driven-agent-development/code/main.py:115
↓ 1 callersFunction_flat_to_multi_index
(flat_idx, shape)
phases/03-deep-learning-core/13-debugging-neural-networks/code/debug_neural_nets.py:226
↓ 1 callersMethod_flatten_nested
(self, data)
phases/01-math-foundations/12-tensor-operations/code/tensors.py:27
↓ 1 callersFunction_fmt
(v: float)
phases/19-capstone-projects/68-rag-eval-precision-recall/code/main.py:402
↓ 1 callersFunction_format_le
(bound: float)
phases/19-capstone-projects/28-observability-otel-traces/code/main.py:317
↓ 1 callersFunction_fsync_dir
Fsync a directory so rename metadata reaches disk; no-op where unsupported.
phases/19-capstone-projects/80-checkpoint-sharded-resume/code/main.py:77
↓ 1 callersFunction_gather_payloads_to_rank0
Allgather variable-length byte buffers across ranks via padding.
phases/19-capstone-projects/81-end-to-end-distributed-train/code/main.py:302
↓ 1 callersFunction_gemini_schema
(node: Any)
phases/13-tools-and-protocols/02-function-calling-deep-dive/code/main.py:76
↓ 1 callersMethod_get_pairs
(self, tokens)
phases/10-llms-from-scratch/01-tokenizers/code/bpe.py:9
↓ 1 callersMethod_get_pairs
(self, tokens)
phases/10-llms-from-scratch/01-tokenizers/code/main.py:17
↓ 1 callersMethod_graph_score
(self, distance: int | None)
phases/19-capstone-projects/51-literature-retrieval/code/main.py:287
↓ 1 callersFunction_hash_seed_pair
Derive two 64-bit coefficients (a, b) from a seed. The signature uses universal hashing of the form ((a * x + b) mod p) mod 2^64. Two coeffic
phases/19-capstone-projects/42-large-corpus-downloader/code/main.py:105
↓ 1 callersMethod_hash_shingle
(shingle: str)
phases/19-capstone-projects/42-large-corpus-downloader/code/main.py:143
← previousnext →2,501–2,600 of 8,347, ranked by callers