MCPcopy Create free account

hub / github.com/COLA-Laboratory/OmniGenBench / functions

Functions955 in github.com/COLA-Laboratory/OmniGenBench

Functionrun_train
This function is the entry point for the 'autotrain' console script.
omnigenbench/auto/auto_train/auto_train_cli.py:146
Methodsample
Returns a random sample of n items from the dataset. Args: n (int): The number of samples to return. Returns:
omnigenbench/src/abc/abstract_dataset.py:1363
Functionsample_benchmark_config
Sample benchmark configuration. Based on examples/autobench_gfm_evaluation/RGB/*/config.py pattern.
tests/test_autobench_autotrain.py:65
Functionsample_rna_design_puzzle
()
examples/rna_sequence_design/web_rna_design.py:283
Functionsample_rna_sequence
从测试集中抽样,返回序列与 Ground Truth 结构
examples/rna_secondary_structure_prediction/Secondary_Structure_Prediction.py:110
Methodsample_rna_sequence
Sample RNA sequence from test dataset
examples/rna_secondary_structure_prediction/enhanced_ssp_demo.py:594
Methodsave
Save the LoRA-adapted model using the base model's save functionality. This method delegates saving operations to the base model whi
omnigenbench/src/lora/lora_model.py:354
Methodsave
This method saves the complete pipeline including model, tokenizer, datasets, trainer, and metadata to a directory. The saved pipelin
omnigenbench/src/utility/pipeline_hub/pipeline.py:418
Functionsave_args
This function saves the arguments from a configuration object to a text file. It's useful for logging experiment parameters and configuration
omnigenbench/src/misc/utils.py:325
Methodsave_embeddings
Save the generated embeddings to a file. Args: embeddings (torch.Tensor): The embeddings to save output_path
omnigenbench/src/abc/embedding_mixin.py:323
Methodsave_model
Save the trained model. Args: path_to_save (str): Path to save the model overwrite (bool): Whether to overwr
omnigenbench/src/trainer/accelerate_trainer.py:526
Methodsave_pretrained
(self, save_directory: str, overwrite: bool = True)
omnigenbench/src/model/baselines.py:473
Methodsave_pretrained
(self, save_directory: str, overwrite: bool = True)
omnigenbench/src/model/baselines.py:746
Methodsave_pretrained
(self, save_directory: str, overwrite: bool = True)
omnigenbench/src/model/baselines.py:1041
Methodsave_pretrained
(self, save_directory: str, overwrite: bool = True)
omnigenbench/src/model/baselines.py:1296
Methodsave_pretrained
Save model weights, config, tokenizer and metadata to a directory. Files ----- - ``config.json``: Backbone/head configuration
omnigenbench/src/model/baselines.py:2177
Methodsave_pretrained
Save backbone weights and config to ``save_directory``.
omnigenbench/src/model/baselines.py:2477
Methodsave_pretrained
Save backbone weights and config to a directory.
omnigenbench/src/model/baselines.py:2589
Methodsave_pretrained
(self, save_directory: str, overwrite: bool = True)
omnigenbench/src/model/baselines.py:2781
Methodset_loss_fn
Set a custom loss function for the base model. This method allows configuration of specialized loss functions through the ba
omnigenbench/src/lora/lora_model.py:410
Methodset_one_hot
(self, weight: torch.Tensor)
omnigenbench/src/model/baselines.py:1671
Methodset_one_hot
(self, weight: torch.Tensor)
omnigenbench/src/model/baselines.py:1762
Methodset_one_hot
(self, weight: torch.Tensor)
omnigenbench/src/model/baselines.py:1821
Methodset_one_hot
Optionally set the id->one-hot projection matrix of shape (vocab_size, 4).
omnigenbench/src/model/baselines.py:2732
Functionsetup_warnings
Configure warnings for tests
tests/conftest.py:75
Methodss_validity_loss
Calculate validity loss for RNA structure
tests/test_structure_prediction.py:51
Functiontemp_output_dir
Create temporary output directory for model checkpoints
tests/test_training_workflows.py:47
Functiontemp_test_data
Create temporary test data directory
tests/conftest.py:89
Methodtest
Test the model on the test dataset. Returns: Dict[str, Any]: Dictionary containing test metrics
omnigenbench/src/trainer/trainer.py:299
Methodtest_aggregation_consistency
Test that same aggregation gives consistent results
tests/test_genomic_embeddings.py:176
Methodtest_all_commands_have_help
Verify all subcommands provide help
tests/test_cli_parameter_mapping.py:236
Methodtest_all_layers_all_heads
Test extracting all layers and all heads (most expensive operation)
tests/test_attention_extraction.py:406
Methodtest_attention_statistics
Test attention statistics calculation. Based on section 1 of attention_extraction_example.py
tests/test_attention_extraction.py:122
Methodtest_autobench_attributes
Test that AutoBench has all expected attributes
tests/test_autobench_hub_integration.py:173
Methodtest_autobench_benchmark_name_handling
Test that benchmark names are handled correctly
tests/test_autobench_hub_integration.py:100
Methodtest_autobench_benchmark_options
Test autobench accepts different benchmark names
tests/test_cli_commands.py:225
Methodtest_autobench_cache_dir_parameter
Test that AutoBench accepts cache_dir parameter
tests/test_autobench_hub_integration.py:49
Methodtest_autobench_command_structure
Test autobench parser is properly configured
tests/test_cli_commands.py:195
Methodtest_autobench_configuration_options
Test AutoBench accepts various configuration options
tests/test_autobench_autotrain.py:113
Methodtest_autobench_initialization
Test AutoBench can be initialized
tests/test_autobench_autotrain.py:88
Methodtest_autobench_multi_seed_config
Test AutoBench supports multi-seed evaluation
tests/test_autobench_autotrain.py:154
Methodtest_autobench_overwrite_flag
Test autobench accepts overwrite flag
tests/test_cli_commands.py:262
Methodtest_autobench_parameter_mapping
Test autobench parameter mapping from ogb to bench_command
tests/test_cli_parameter_mapping.py:23
Methodtest_autobench_parameter_name_consistency
Test that parameter names in ogb_cli match those expected by bench_command
tests/test_cli_parameter_mapping.py:171
Methodtest_autobench_required_arguments
Test autobench requires model and benchmark
tests/test_cli_commands.py:205
Methodtest_autobench_run_basic
Test AutoBench.run() with minimal configuration. This is a slow test that actually runs benchmarking.
tests/test_autobench_autotrain.py:127
Methodtest_autobench_run_method_signature
Test that AutoBench.run() has the correct signature
tests/test_autobench_hub_integration.py:148
Methodtest_autobench_short_options
Test that short options (-m, -b, -t) work correctly
tests/test_cli_parameter_mapping.py:133
Methodtest_autobench_trainer_selection
Test autobench accepts different trainer types
tests/test_cli_commands.py:243
Methodtest_autobench_with_different_benchmarks
Test AutoBench accepts different benchmark names
tests/test_autobench_autotrain.py:100
Methodtest_autoconfig_dict_like_behavior
Test that AutoConfig behaves like a dictionary
tests/test_autotrain_hub_integration.py:175
Methodtest_autoconfig_from_hub_method_exists
Test that AutoConfig has the from_hub classmethod
tests/test_autotrain_hub_integration.py:49
Methodtest_autoconfig_from_local_dict
Test AutoConfig initialization from a config dict
tests/test_autotrain_hub_integration.py:54
Methodtest_autoconfig_get_method
Test AutoConfig.get() method with defaults
tests/test_autotrain_hub_integration.py:199
Methodtest_autoconfig_override_params
Test that AutoConfig parameters can be overridden
tests/test_autotrain_hub_integration.py:74
Methodtest_autoinfer_batch_size_argument
Test autoinfer accepts batch size parameter
tests/test_cli_commands.py:82
Methodtest_autoinfer_command_structure
Test autoinfer parser is properly configured
tests/test_cli_commands.py:35
Methodtest_autoinfer_missing_input
Test autoinfer validates input requirements
tests/test_cli_commands.py:370
Methodtest_autoinfer_parameters
Test autoinfer parameter parsing
tests/test_cli_parameter_mapping.py:210
Methodtest_autoinfer_required_arguments
Test autoinfer requires model argument
tests/test_cli_commands.py:46
Methodtest_autoinfer_single_sequence
Test autoinfer with single sequence input
tests/test_cli_commands.py:59
Methodtest_autotrain_cache_dir_parameter
Test that AutoTrain accepts cache_dir parameter for local datasets
tests/test_autotrain_hub_integration.py:94
Methodtest_autotrain_command_structure
Test autotrain parser is properly configured
tests/test_cli_commands.py:106
Methodtest_autotrain_dataset_name_handling
Test that dataset names are handled correctly for metrics
tests/test_autotrain_hub_integration.py:159
Methodtest_autotrain_different_task_types
Test AutoTrain handles different task types
tests/test_autobench_autotrain.py:207
Methodtest_autotrain_execution_mock
Test autotrain command execution with mock dataset
tests/test_cli_commands.py:165
Methodtest_autotrain_full_workflow
Test complete AutoTrain workflow. This is a slow integration test.
tests/test_autobench_autotrain.py:232
Methodtest_autotrain_initialization
Test AutoTrain can be initialized
tests/test_autobench_autotrain.py:180
Methodtest_autotrain_optional_parameters
Test autotrain accepts optional training parameters
tests/test_cli_commands.py:136
Methodtest_autotrain_parameter_mapping
Test autotrain parameter mapping from ogb to train_command
tests/test_cli_parameter_mapping.py:71
Methodtest_autotrain_parameter_name_consistency
Test that parameter names in ogb_cli match those expected by train_command
tests/test_cli_parameter_mapping.py:151
Methodtest_autotrain_required_arguments
Test autotrain requires dataset and model
tests/test_cli_commands.py:116
Methodtest_autotrain_run_config_parameter
Test that AutoTrain.run() accepts a config parameter
tests/test_autotrain_hub_integration.py:114
Methodtest_autotrain_with_custom_config
Test AutoTrain accepts custom training configuration
tests/test_autobench_autotrain.py:190
Methodtest_backward_compatibility_local_benchmark
Test that local benchmark workflows still work
tests/test_autobench_hub_integration.py:76
Methodtest_backward_compatibility_local_dataset
Test that local dataset workflows still work (backward compatibility)
tests/test_autotrain_hub_integration.py:144
Methodtest_base_pair_count
Test counting base pairs in structures
tests/test_structure_prediction.py:164
Methodtest_base_pair_precision_recall
Test calculating precision and recall for base pairs
tests/test_structure_prediction.py:213
Methodtest_basic_encode
Test basic encoding with mean aggregation
tests/test_genomic_embeddings.py:65
Methodtest_basic_training_workflow
Test complete training workflow for binary classification. Based on quickstart_te.py pattern. Uses synthetic data with minima
tests/test_training_workflows.py:158
Methodtest_batch_attention_extraction
Test batch extraction of attention scores. Based on section 2 of attention_extraction_example.py
tests/test_attention_extraction.py:171
Methodtest_batch_design_multiple_structures
Test batch design of multiple structures. Based on example_3_batch_design() from rna_design_examples.py
tests/test_rna_design.py:106
Methodtest_batch_different_sizes
Test batch processing with different batch sizes
tests/test_genomic_embeddings.py:220
Methodtest_batch_encode
Test efficient batch processing. Based on batch example in README.md
tests/test_genomic_embeddings.py:200
Methodtest_batch_inference_loop
Test batch inference using loop. Based on Python API batch example in README.md
tests/test_autoinfer_cli.py:79
Methodtest_batch_performance
Test processing multiple sequences
tests/test_structure_prediction.py:489
Methodtest_batch_prediction
Test batch structure prediction
tests/test_structure_prediction.py:317
Methodtest_batch_vs_individual
Test that batch encoding gives same results as individual
tests/test_genomic_embeddings.py:239
Methodtest_batch_with_different_lengths
Test batch processing with sequences of different lengths
tests/test_attention_extraction.py:200
Methodtest_benchmark_multiple_models
Test benchmarking multiple models in sequence
tests/test_autobench_autotrain.py:442
Methodtest_benchmark_result_format
Test benchmark results follow expected format
tests/test_autobench_autotrain.py:493
Methodtest_benchmark_split_structure
Test benchmark datasets have standard splits
tests/test_autobench_autotrain.py:394
Methodtest_boolean_flags_consistency
Test that boolean flags use action='store_true' consistently
tests/test_cli_parameter_mapping.py:250
Functiontest_bpp_computation
Test BPP matrix computation.
examples/translation_efficiency_prediction/test_te_bpp_model.py:40
Functiontest_bpp_processor
Test BPP processor module.
examples/translation_efficiency_prediction/test_te_bpp_model.py:133
Methodtest_cache_dir
Create a temporary cache directory for testing.
tests/test_hf_download.py:36
Methodtest_classification_metrics
Test classification metrics for structure prediction
tests/test_token_classification.py:293
Methodtest_classification_metrics_available
Test classification metrics are available
tests/test_autobench_autotrain.py:324
Methodtest_classification_metrics_with_ignore
Test metrics with ignore index (-100)
tests/test_token_classification.py:313
Methodtest_classification_model_attention
Test attention extraction from classification model
tests/test_attention_extraction.py:230
← previousnext →701–800 of 955, ranked by callers