MCPcopy Create free account

hub / github.com/SakanaAI/AI-Scientist-v2 / functions

Functions307 in github.com/SakanaAI/AI-Scientist-v2

↓ 1 callersMethod_generate_seed_eval_aggregation_node
Generate a special aggregation node for seed evaluation results
ai_scientist/treesearch/parallel_agent.py:1248
↓ 1 callersMethod_generate_seed_node
(self, parent_node: Node)
ai_scientist/treesearch/parallel_agent.py:549
↓ 1 callersMethod_generate_substage_goal
Generate the next sub-stage goal based on what has been done so far. Args: main_stage_goal: The overall goal for the current main
ai_scientist/treesearch/agent_manager.py:552
↓ 1 callersMethod_get_leaves
Get all leaf nodes in the subtree rooted at node.
ai_scientist/treesearch/parallel_agent.py:1921
↓ 1 callersMethod_get_task_desc_str
(self)
ai_scientist/treesearch/agent_manager.py:179
↓ 1 callersMethod_identify_issues
Identify systemic issues and challenges from the current stage's results
ai_scientist/treesearch/agent_manager.py:1084
↓ 1 callersMethod_improve
(self, parent_node: Node)
ai_scientist/treesearch/parallel_agent.py:523
↓ 1 callersFunction_load_cfg
( path: Path = Path(__file__).parent / "config.yaml", use_cli_args=False )
ai_scientist/treesearch/utils/config.py:125
↓ 1 callersMethod_prompt_metricparse_resp_fmt
(self)
ai_scientist/treesearch/parallel_agent.py:407
↓ 1 callersMethod_run_multi_seed_evaluation
Run multiple seeds of the same node to get statistical metrics. Returns a list of nodes with different random seeds.
ai_scientist/treesearch/parallel_agent.py:1261
↓ 1 callersMethod_run_plot_aggregation
Generate an aggregation node for seed evaluation results
ai_scientist/treesearch/parallel_agent.py:1332
↓ 1 callersFunction_safe_pickle_test
Test if an object can be pickled
ai_scientist/treesearch/parallel_agent.py:31
↓ 1 callersMethod_save_checkpoint
Save the current state of the experiment
ai_scientist/treesearch/agent_manager.py:249
↓ 1 callersMethod_select_parallel_nodes
Select N nodes to process in parallel, balancing between tree exploration and exploitation. Note: - This function runs in the
ai_scientist/treesearch/parallel_agent.py:1931
↓ 1 callersMethod_should_maximize
Determine if we should maximize based on the metric format
ai_scientist/treesearch/utils/metric.py:191
↓ 1 callersMethod_update_ablation_state
Update ablation tracking state based on execution results. Args: result_node: Node containing ablation execution results
ai_scientist/treesearch/parallel_agent.py:2210
↓ 1 callersMethod_update_hyperparam_tuning_state
Update hyperparam tuning tracking state based on execution results.
ai_scientist/treesearch/parallel_agent.py:2192
↓ 1 callersFunction_walk
Recursively walk a directory (analogous to os.walk but for pathlib.Path)
ai_scientist/treesearch/utils/data_preview.py:50
↓ 1 callersMethodabsorb_exec_result
Absorb the result of executing the code from this node.
ai_scientist/treesearch/journal.py:170
↓ 1 callersFunctionannotate_history
(journal, cfg=None)
ai_scientist/treesearch/log_summarization.py:262
↓ 1 callersFunctionappend_rec
(node: Node, tree)
ai_scientist/treesearch/perform_experiments_bfts_with_agentmanager.py:37
↓ 1 callersFunctionbuild_aggregator_prompt
(combined_summaries_str, idea_text)
ai_scientist/perform_plotting.py:52
↓ 1 callersMethodcalculate_cost
Calculate the cost for a specific model based on token usage.
ai_scientist/utils/token_tracker.py:107
↓ 1 callersFunctioncfg_to_tree_struct
(cfg, jou: Journal, out_path: Path = None)
ai_scientist/treesearch/utils/tree_export.py:76
↓ 1 callersFunctioncheck_page_limit
Compile the LaTeX project in a temporary folder, then determine where the "References" section begins using cleaned text extraction. Next, co
ai_scientist/perform_icbinb_writeup.py:238
↓ 1 callersMethodchild_proc_setup
(self, result_outq: Queue)
ai_scientist/treesearch/interpreter.py:111
↓ 1 callersMethodcleanup
Cleanup parallel workers and resources
ai_scientist/treesearch/parallel_agent.py:2336
↓ 1 callersFunctioncopytree
Copy contents of `src` to `dst`. Unlike shutil.copytree, the dst dir can exist and will be merged. If src is a file, only that file will be c
ai_scientist/treesearch/utils/__init__.py:9
↓ 1 callersFunctioncreateTreeFromData
(data)
ai_scientist/treesearch/utils/viz_templates/template.js:228
↓ 1 callersFunctioncreateTreeSketch
(stageId)
ai_scientist/treesearch/utils/viz_templates/template.js:207
↓ 1 callersFunctioncreate_exec_callback
(status_obj)
ai_scientist/treesearch/perform_experiments_bfts_with_agentmanager.py:94
↓ 1 callersMethodcreate_process
(self)
ai_scientist/treesearch/interpreter.py:163
↓ 1 callersFunctioncreate_unified_viz
Create a unified visualization that shows all completed stages in a tabbed interface. This will be placed in the main log directory.
ai_scientist/treesearch/utils/tree_export.py:414
↓ 1 callersFunctiondetect_duplicate_figures
(client, client_model, pdf_path)
ai_scientist/perform_vlm_review.py:389
↓ 1 callersFunctiondetect_pages_before_impact
Temporarily copy the latex folder, compile, and detect on which page the phrase "Impact Statement" appears. Returns a tuple (page_number,
ai_scientist/perform_writeup.py:82
↓ 1 callersFunctiondetect_references_position_clean
Locate the first occurrence of the word "References" (or variations like "R EFERENCES") within the cleaned content extracted from the PDF.
ai_scientist/perform_icbinb_writeup.py:121
↓ 1 callersFunctiondumps_json
Serialize dataclasses (such as Journals) to JSON.
ai_scientist/treesearch/utils/serialize.py:11
↓ 1 callersFunctionedit_bfts_config_file
Edit the bfts_config.yaml file to point to the idea.md file Args: config_path: Path to the bfts_config.yaml file idea_dir: D
ai_scientist/treesearch/bfts_utils.py:45
↓ 1 callersFunctionencode_image_to_base64
Encode image data to base64 string.
ai_scientist/perform_vlm_review.py:15
↓ 1 callersFunctionexception_summary
Generates a string that summarizes an exception and its stack trace (either in standard python repl or in IPython format).
ai_scientist/treesearch/interpreter.py:40
↓ 1 callersFunctionextract_archives
unzips all .zip files within `path` and cleans up task dir [TODO] handle nested zips
ai_scientist/treesearch/utils/__init__.py:49
↓ 1 callersFunctionextract_page_line_counts
Extract the number of cleaned text lines for each page from first_page to last_page. This uses pdftotext with layout preservation and the cle
ai_scientist/perform_icbinb_writeup.py:186
↓ 1 callersFunctionfile_tree
Generate a tree structure of files in a directory
ai_scientist/treesearch/utils/data_preview.py:32
↓ 1 callersFunctionfind_pdf_path_for_review
(idea_dir)
launch_scientist_bfts.py:140
↓ 1 callersMethodformat_papers
(self, papers: List[Dict])
ai_scientist/tools/semantic_scholar.py:87
↓ 1 callersFunctiongenerate_html
(tree_graph_str: str)
ai_scientist/treesearch/utils/tree_export.py:362
↓ 1 callersFunctiongenerate_layout
Generate visual layout of graph
ai_scientist/treesearch/utils/tree_export.py:20
↓ 1 callersFunctiongenerate_live
(manager)
ai_scientist/treesearch/perform_experiments_bfts_with_agentmanager.py:161
↓ 1 callersFunctiongenerate_temp_free_idea
( idea_fname: str, client: Any, model: str, workshop_description: str, max_num_generations
ai_scientist/perform_ideation_temp_free.py:128
↓ 1 callersFunctiongenerate_vlm_img_cap_ref_review
(img, abstract, model, client)
ai_scientist/perform_vlm_review.py:350
↓ 1 callersFunctiongenerate_vlm_img_selection_review
( img, abstract, model, client, reflection_page_info )
ai_scientist/perform_vlm_review.py:448
↓ 1 callersFunctionget_ai_client
(model: str, max_retries=2)
ai_scientist/treesearch/backend/backend_openai.py:20
↓ 1 callersFunctionget_ai_client
(model : str, max_retries=2)
ai_scientist/treesearch/backend/backend_anthropic.py:17
↓ 1 callersFunctionget_available_gpus
(gpu_ids=None)
launch_scientist_bfts.py:134
↓ 1 callersFunctionget_batch_responses_from_llm
( prompt, client, model, system_message, print_debug=False, msg_history=None, temp
ai_scientist/llm.py:87
↓ 1 callersFunctionget_citation_addition
( client, model, context, current_round, total_rounds, idea_text )
ai_scientist/perform_writeup.py:149
↓ 1 callersFunctionget_citation_addition
( client, model, context, current_round, total_rounds, idea_text )
ai_scientist/perform_icbinb_writeup.py:337
↓ 1 callersFunctionget_edges
(journal: Journal)
ai_scientist/treesearch/utils/tree_export.py:14
↓ 1 callersFunctionget_gpu_count
Get number of available NVIDIA GPUs without using torch
ai_scientist/treesearch/parallel_agent.py:1120
↓ 1 callersMethodget_interactions
Get all interactions, optionally filtered by model.
ai_scientist/utils/token_tracker.py:93
↓ 1 callersFunctionget_meta_review
(model, client, temperature, reviews)
ai_scientist/perform_llm_review.py:349
↓ 1 callersFunctionget_review_fewshot_examples
(num_fs_examples=1)
ai_scientist/perform_llm_review.py:312
↓ 1 callersFunctionget_stage_summary
(journal, stage_name, model, client)
ai_scientist/treesearch/log_summarization.py:149
↓ 1 callersFunctionget_summarizer_prompt
(journal, stage_name)
ai_scientist/treesearch/log_summarization.py:138
↓ 1 callersMethodget_summary
Get summary of token usage and costs for all models.
ai_scientist/utils/token_tracker.py:127
↓ 1 callersFunctionidea_to_markdown
Convert a dictionary into a markdown file. Args: data: Dictionary containing the data to convert output_path: Path where the
ai_scientist/treesearch/bfts_utils.py:7
↓ 1 callersFunctionis_header_or_footer
Returns True if the line is likely a header or footer. Filters out: - Lines that are too short (< 4 characters after stripping).
ai_scientist/perform_icbinb_writeup.py:88
↓ 1 callersFunctionis_subfigure_caption
(txt)
ai_scientist/perform_vlm_review.py:204
↓ 1 callersFunctionis_valid_python_script
Check if a script is a valid Python script.
ai_scientist/treesearch/utils/response.py:12
↓ 1 callersFunctionjournal_to_rich_tree
(journal: Journal, cfg)
ai_scientist/treesearch/perform_experiments_bfts_with_agentmanager.py:34
↓ 1 callersFunctionloadAllStageData
(baseTreeData)
ai_scientist/treesearch/utils/viz_templates/template.js:393
↓ 1 callersFunctionload_review
(json_path)
ai_scientist/perform_llm_review.py:291
↓ 1 callersFunctionload_stage_folders
Load the folders that start with 'stage_' followed by a number. Args: base_path (str): The base directory path where sta
ai_scientist/treesearch/log_summarization.py:368
↓ 1 callersFunctionload_task_desc
Load task description from markdown file or config str.
ai_scientist/treesearch/utils/config.py:183
↓ 1 callersFunctionloads_json
Deserialize JSON to AIDE dataclasses.
ai_scientist/treesearch/utils/serialize.py:42
↓ 1 callersFunctionmain
()
ai_scientist/perform_plotting.py:257
↓ 1 callersFunctionmake_vlm_call
(client, model, temperature, system_message, prompt)
ai_scientist/vlm.py:96
↓ 1 callersFunctionnormalize_layout
Normalize layout to [0, 1]
ai_scientist/treesearch/utils/tree_export.py:34
↓ 1 callersFunctionparse_arguments
()
launch_scientist_bfts.py:42
↓ 1 callersMethodparse_exec_result
( self, node: Node, exec_result: ExecutionResult, workspace: str )
ai_scientist/treesearch/parallel_agent.py:683
↓ 1 callersFunctionperform_imgs_cap_ref_review_selection
( client, client_model, pdf_path, reflection_page_info )
ai_scientist/perform_vlm_review.py:464
↓ 1 callersFunctionperform_review
( text, model, client, num_reflections=1, num_fs_examples=1, num_reviews_ensemble=1,
ai_scientist/perform_llm_review.py:125
↓ 1 callersFunctionperform_writeup
( base_folder, citations_text=None, no_writing=False, num_cite_rounds=20, small_model="gpt
ai_scientist/perform_icbinb_writeup.py:857
↓ 1 callersMethodplan_and_code_query
Generate a natural language plan + code in the same LLM call and split them apart.
ai_scientist/treesearch/parallel_agent.py:1224
↓ 1 callersFunctionprep_agent_workspace
Setup the agent's workspace and preprocess data if necessary.
ai_scientist/treesearch/utils/config.py:209
↓ 1 callersFunctionprep_cfg
(cfg: Config)
ai_scientist/treesearch/utils/config.py:139
↓ 1 callersFunctionpreproc_data
(path: Path)
ai_scientist/treesearch/utils/__init__.py:98
↓ 1 callersFunctionpreview_csv
Generate a textual preview of a csv file Args: p (Path): the path to the csv file file_name (str): the file name to use in the pr
ai_scientist/treesearch/utils/data_preview.py:59
↓ 1 callersFunctionpreview_json
Generate a textual preview of a json file using a generated json schema
ai_scientist/treesearch/utils/data_preview.py:111
↓ 1 callersFunctionreconstruct_journal
(journal_data)
ai_scientist/treesearch/log_summarization.py:384
↓ 1 callersFunctionremove_accents_and_clean
(s)
ai_scientist/perform_writeup.py:25
↓ 1 callersFunctionremove_accents_and_clean
(s)
ai_scientist/perform_icbinb_writeup.py:33
↓ 1 callersMethodrun
Run the experiment through generated stages
ai_scientist/treesearch/agent_manager.py:692
↓ 1 callersFunctionsave_run
(cfg: Config, journal, stage_name: str = None)
ai_scientist/treesearch/utils/config.py:219
↓ 1 callersMethodsearch_for_papers
(self, query: str)
ai_scientist/tools/semantic_scholar.py:57
↓ 1 callersFunctionselectStage
(stageId)
ai_scientist/treesearch/utils/viz_templates/template.js:376
↓ 1 callersFunctionsetNodeInfo
(code, plan, plot_code, plot_plan, metrics = null, exc_type = '', exc_info = '', exc_stack = [], plots = [
ai_scientist/treesearch/utils/viz_templates/template.js:478
↓ 1 callersFunctiontrim_long_string
(string, threshold=5100, k=2500)
ai_scientist/treesearch/utils/response.py:41
↓ 1 callersFunctionupdateBackgroundColor
(color)
ai_scientist/treesearch/utils/viz_templates/template.js:7
↓ 1 callersFunctionupdateTabVisibility
()
ai_scientist/treesearch/utils/viz_templates/template.js:465
← previousnext →101–200 of 307, ranked by callers