Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/19PINE-AI/ikp
/ functions
Functions
549 in github.com/19PINE-AI/ikp
⨍
Functions
549
◇
Types & classes
37
↓ 2 callers
Function
render_row
(i: int, frame: str)
cli/progress.py:75
↓ 2 callers
Function
repaint
()
cli/progress.py:102
↓ 2 callers
Function
run_with_progress
Run work_fn for each model concurrently with live in-place progress. work_fn(model, set_status) -> result. set_status(text) updates that mode
cli/progress.py:49
↓ 2 callers
Function
score_4way
Map 4-way verdict to a numeric score for tier accuracy. If no_cs_match is True (probe is for a name with no real CS researcher), REFUSAL is t
src/evidence_judge.py:209
↓ 2 callers
Function
score_verdict
Map any verdict (3-way or 4-way) to a per-probe score.
scripts/final_assembly.py:38
↓ 2 callers
Function
score_with_llm_judge
Score a response using an LLM as judge. Args: question: The probe question gold_answer: The verified correct answer model
src/scorer.py:38
↓ 2 callers
Function
search_brave
Get total result count from Brave Search API.
pipeline/search_count.py:50
↓ 2 callers
Function
search_google_cse
Get total result count from Google Custom Search JSON API.
pipeline/search_count.py:70
↓ 2 callers
Function
search_searchapi
Get total result count from SearchAPI.io (Google).
pipeline/search_count.py:87
↓ 2 callers
Function
search_serper
Get total result count from Serper.dev (Google).
pipeline/search_count.py:37
↓ 2 callers
Function
short
(n)
scripts/14_comprehensive_fingerprinting.py:404
↓ 2 callers
Method
status
Return a summary of the current store state.
pipeline/store.py:156
↓ 2 callers
Function
subsample_probes
Subsample probes for pilot, maintaining tier balance.
scripts/02_run_calibration.py:47
↓ 2 callers
Function
term_width
()
cli/progress.py:85
↓ 2 callers
Function
test_backends
Test which backends are available and working.
pipeline/search_count.py:124
↓ 2 callers
Function
toggleSort
(k: SortKey)
website/src/pages/Probes.tsx:24
↓ 2 callers
Function
useCalibration
()
website/src/data.ts:60
↓ 2 callers
Function
useDensing
()
website/src/data.ts:67
↓ 2 callers
Function
useFingerprint
()
website/src/data.ts:66
↓ 1 callers
Method
_cache_key
(self, model: str, messages: list, temperature: float, max_tokens: int)
src/api_client.py:57
↓ 1 callers
Method
_get_cached
(self, key: str)
src/api_client.py:61
↓ 1 callers
Function
_get_transcript_writer
Get or create a JSONL transcript file handle for a model.
scripts/run_evaluation.py:62
↓ 1 callers
Method
_is_monotonic
(results: list[bool])
pipeline/store.py:147
↓ 1 callers
Method
_load
(self)
pipeline/store.py:51
↓ 1 callers
Function
_load_researcher_evidence
Load the per-researcher evidence bundle (subfield + named systems + co-authors + top works + venues + affiliations) used by the 4-way judge. R
website/scripts/prepare_data.py:368
↓ 1 callers
Function
_make_formatter
(models: list)
cli/research.py:23
↓ 1 callers
Function
_make_work_fn
(question: str, gold: str)
cli/evaluate.py:35
↓ 1 callers
Function
_parse_extra_models
(specs: list[str])
cli/evaluate.py:19
↓ 1 callers
Function
_progress_callback
(model_name: str, total: int)
scripts/legacy/ikp_query.py:290
↓ 1 callers
Function
_query_ollama
(model_id: str, question: str)
cli/query.py:44
↓ 1 callers
Function
_query_ollama
(model_id: str, question: str)
scripts/legacy/ikp_query.py:114
↓ 1 callers
Function
_query_openrouter
(model_id: str, question: str, is_thinking: bool)
cli/query.py:66
↓ 1 callers
Function
_query_openrouter
(model_id: str, question: str, thinking: bool = False)
scripts/legacy/ikp_query.py:130
↓ 1 callers
Method
_rate_limit
(self)
src/api_client.py:51
↓ 1 callers
Method
_set_cached
(self, key: str, response: dict)
src/api_client.py:70
↓ 1 callers
Function
_visible_width
Number of terminal columns occupied by s, ignoring ANSI escapes.
cli/progress.py:27
↓ 1 callers
Function
_write_transcript
Append one JSON record to the model's transcript file (thread-safe).
scripts/run_evaluation.py:70
↓ 1 callers
Function
analyze_results
Analyze researcher probe results across models.
scripts/09_researcher_probes.py:159
↓ 1 callers
Function
analyze_target_provenance
For each target model, find which calibration model it most resembles.
scripts/13_distillation_detection.py:400
↓ 1 callers
Function
assemble_one
(model_name, lam)
scripts/proprietary_sensitivity.py:62
↓ 1 callers
Function
assemble_one
Compute the final assembled accuracy for one model. Returns dict or None if v1 results are missing.
scripts/final_assembly.py:51
↓ 1 callers
Function
assign_tier
(citations: int)
scripts/legacy/fill_researcher_probes.py:200
↓ 1 callers
Function
assign_tier
Assign tier based on the smallest landmark that answers correctly.
scripts/legacy/calibrate_landmarks.py:258
↓ 1 callers
Function
assign_tier
(citations: int)
scripts/legacy/fill_researchers_v2.py:143
↓ 1 callers
Function
bootstrap_aggregate_fit
Bootstrap confidence intervals for the aggregate log-linear fit.
src/calibration.py:295
↓ 1 callers
Function
build_fingerprint_dataset
Combine original probes with extended phrasings into fingerprint dataset.
scripts/12_fingerprint_probes.py:226
↓ 1 callers
Function
build_fingerprints
(data: dict)
scripts/14_comprehensive_fingerprinting.py:114
↓ 1 callers
Function
build_probe_message
Build the chat messages for a single probe phrasing.
src/probe_runner.py:27
↓ 1 callers
Function
build_scatter_data
(pair_metrics)
scripts/14_comprehensive_fingerprinting.py:442
↓ 1 callers
Function
build_web_grounded_probes_from_manual_data
Build probes from manually curated web-grounded data. Since we cannot run Google searches programmatically from this environment, we use a hy
scripts/10_web_grounded_probes.py:177
↓ 1 callers
Function
calibrate
(question: str, gold_subfield: str)
scripts/phase2_calibrate_t7.py:44
↓ 1 callers
Function
calibrate_with_landmarks
(question: str, gold_subfield: str)
scripts/find_t7_replacements.py:239
↓ 1 callers
Function
cell
(lam, floor)
scripts/lambda_floor_ablation.py:50
↓ 1 callers
Function
check_answer_in_question
Check if the answer leaks into the question.
scripts/assemble_final_dataset.py:84
↓ 1 callers
Function
classNames
(...xs: (string | false | null | undefined)[])
website/src/util.ts:62
↓ 1 callers
Function
classify_pair
(m, same_vendor: bool)
scripts/14_comprehensive_fingerprinting.py:162
↓ 1 callers
Function
classify_venue
Returns 'cs', 'noncs', or 'unknown'.
scripts/enrich_researcher_gold.py:106
↓ 1 callers
Function
compute_hallucination_similarity
Compute Hallucination Similarity Score (HSS) for all model pairs. HSS(A, B) = |{p : A(p) == B(p) != gold(p)}| / |{p : both wrong}| Two model
scripts/13_distillation_detection.py:232
↓ 1 callers
Function
compute_pairwise_fps
Compute Fingerprint Similarity (FPS) for all model pairs. FPS(A, B) = Σ_t w_t × [observed_overlap_t / expected_overlap_t] Where expected ove
scripts/13_distillation_detection.py:136
↓ 1 callers
Function
compute_probe_variance
Compute inter-model variance for each probe. Returns probes sorted by variance (highest first). High-variance probes are the most diagnostic:
scripts/12_fingerprint_probes.py:66
↓ 1 callers
Function
compute_provenance_scores
Combine FPS and HSS into a single provenance score.
scripts/13_distillation_detection.py:289
↓ 1 callers
Function
compute_summary
Compute per-tier and aggregate accuracy from probe results.
src/probe_runner.py:181
↓ 1 callers
Method
conf_int
(self, alpha=0.05)
scripts/15_densing_law_analysis.py:60
↓ 1 callers
Function
cross_family_outliers
Flag cross-vendor pairs with HSS above threshold.
scripts/14_comprehensive_fingerprinting.py:332
↓ 1 callers
Function
deduplicate
Remove duplicate questions (keep first occurrence).
scripts/assemble_final_dataset.py:94
↓ 1 callers
Function
densing_predictions
Return expected accuracy gain per month under Densing Law. Densing Law: at fixed accuracy, required params halve every DENSING_DOUBLING_MONTHS.
scripts/15_densing_law_analysis.py:155
↓ 1 callers
Function
display_calibration
Display calibration curve info.
scripts/ikp_estimate.py:310
↓ 1 callers
Function
display_probes
Display probe set for inspection.
scripts/ikp_estimate.py:284
↓ 1 callers
Function
display_results
Display evaluation results.
scripts/ikp_estimate.py:216
↓ 1 callers
Function
display_results
Pretty-print results table.
scripts/legacy/ikp_query.py:217
↓ 1 callers
Function
estimate
(m)
website/scripts/prepare_data.py:198
↓ 1 callers
Function
estimate_article_frequency
Estimate how many Google results mention this article title.
scripts/11_corpus_grounded_t5t7.py:238
↓ 1 callers
Function
estimate_params
Estimate params from aggregate accuracy using calibration fit.
scripts/legacy/06_live_analysis.py:28
↓ 1 callers
Function
estimate_target_model
Estimate parameter count for a target (unknown) model. Args: target_results: dict with per_tier_accuracy and aggregate_accuracy c
src/calibration.py:318
↓ 1 callers
Function
evaluate_model_on_researcher
Evaluate a single model on the 345 researcher probes.
scripts/rerun_researcher_probes.py:151
↓ 1 callers
Method
export_valid
Export a balanced final dataset by sampling from the valid pool. Two-pass sampling: 1. Sample up to per-source targets for each tier
pipeline/store.py:235
↓ 1 callers
Function
extract_field
Extract standardized CS field from OpenAlex author concepts.
pipeline/generate_mid_researchers.py:92
↓ 1 callers
Function
extract_fingerprints
Extract binary knowledge fingerprint vectors for each model. Returns: fingerprints: dict model_name -> dict probe_id -> bool (correct)
scripts/13_distillation_detection.py:86
↓ 1 callers
Function
extract_named_systems
Heuristically extract named systems/artifacts from paper titles. Looks for ALLCAPS short tokens (2-8 chars) or CamelCase names that appear to
scripts/enrich_researcher_gold.py:121
↓ 1 callers
Function
fetchJson
(path: string)
website/src/data.ts:25
↓ 1 callers
Function
fetch_author
(http, aid)
scripts/find_t7_remaining.py:93
↓ 1 callers
Function
fetch_author
(http, openalex_id)
scripts/find_t7_replacements.py:121
↓ 1 callers
Function
fetch_author
(http: httpx.Client, openalex_id: str)
scripts/enrich_researcher_gold.py:170
↓ 1 callers
Function
fetch_dblp_conference_authors
Fetch ALL author names from a DBLP conference proceedings page.
scripts/11_corpus_grounded_t5t7.py:50
↓ 1 callers
Function
fetch_works
(http, aid, limit=10)
scripts/find_t7_remaining.py:103
↓ 1 callers
Function
fetch_works
(http, openalex_id, limit=10)
scripts/find_t7_replacements.py:134
↓ 1 callers
Function
fetch_works
(http: httpx.Client, openalex_id: str)
scripts/enrich_researcher_gold.py:153
↓ 1 callers
Function
fields_match
Check if predicted field matches or is adjacent to gold field. Returns True if: 1. Exact match (after normalization) 2. Gold and predicte
src/llm_judge.py:54
↓ 1 callers
Function
fig1_calibration
()
paper/figures/generate_figures.py:135
↓ 1 callers
Function
fig2_tier_heatmap
()
paper/figures/generate_figures.py:429
↓ 1 callers
Function
fig3_thinking_effect
()
paper/figures/generate_figures.py:488
↓ 1 callers
Function
fig4_moe_params
()
paper/figures/generate_figures.py:561
↓ 1 callers
Function
fig5_researcher_scatter
()
paper/figures/generate_figures.py:685
↓ 1 callers
Function
fig6_fingerprint_heatmap
()
paper/figures/generate_figures.py:783
↓ 1 callers
Function
fig8_densing_law
()
paper/figures/generate_figures.py:957
↓ 1 callers
Function
fig_a1_tier_boxplots
()
paper/figures/generate_appendix_figures.py:109
↓ 1 callers
Function
fig_a2_vendor_hallucination
()
paper/figures/generate_appendix_figures.py:200
↓ 1 callers
Function
fig_a3_generation_trajectories
()
paper/figures/generate_appendix_figures.py:295
↓ 1 callers
Function
fig_a4_gpt5_family
()
paper/figures/generate_appendix_figures.py:490
↓ 1 callers
Function
find_anomalies
Find models with suspicious results.
scripts/legacy/retry_model.py:117
← previous
next →
101–200 of 549, ranked by callers