Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/COLA-Laboratory/OmniGenBench
/ functions
Functions
955 in github.com/COLA-Laboratory/OmniGenBench
⨍
Functions
955
◇
Types & classes
187
Function
run_train
This function is the entry point for the 'autotrain' console script.
omnigenbench/auto/auto_train/auto_train_cli.py:146
Method
sample
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
Function
sample_benchmark_config
Sample benchmark configuration. Based on examples/autobench_gfm_evaluation/RGB/*/config.py pattern.
tests/test_autobench_autotrain.py:65
Function
sample_rna_design_puzzle
()
examples/rna_sequence_design/web_rna_design.py:283
Function
sample_rna_sequence
从测试集中抽样,返回序列与 Ground Truth 结构
examples/rna_secondary_structure_prediction/Secondary_Structure_Prediction.py:110
Method
sample_rna_sequence
Sample RNA sequence from test dataset
examples/rna_secondary_structure_prediction/enhanced_ssp_demo.py:594
Method
save
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
Method
save
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
Function
save_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
Method
save_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
Method
save_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
Method
save_pretrained
(self, save_directory: str, overwrite: bool = True)
omnigenbench/src/model/baselines.py:473
Method
save_pretrained
(self, save_directory: str, overwrite: bool = True)
omnigenbench/src/model/baselines.py:746
Method
save_pretrained
(self, save_directory: str, overwrite: bool = True)
omnigenbench/src/model/baselines.py:1041
Method
save_pretrained
(self, save_directory: str, overwrite: bool = True)
omnigenbench/src/model/baselines.py:1296
Method
save_pretrained
Save model weights, config, tokenizer and metadata to a directory. Files ----- - ``config.json``: Backbone/head configuration
omnigenbench/src/model/baselines.py:2177
Method
save_pretrained
Save backbone weights and config to ``save_directory``.
omnigenbench/src/model/baselines.py:2477
Method
save_pretrained
Save backbone weights and config to a directory.
omnigenbench/src/model/baselines.py:2589
Method
save_pretrained
(self, save_directory: str, overwrite: bool = True)
omnigenbench/src/model/baselines.py:2781
Method
set_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
Method
set_one_hot
(self, weight: torch.Tensor)
omnigenbench/src/model/baselines.py:1671
Method
set_one_hot
(self, weight: torch.Tensor)
omnigenbench/src/model/baselines.py:1762
Method
set_one_hot
(self, weight: torch.Tensor)
omnigenbench/src/model/baselines.py:1821
Method
set_one_hot
Optionally set the id->one-hot projection matrix of shape (vocab_size, 4).
omnigenbench/src/model/baselines.py:2732
Function
setup_warnings
Configure warnings for tests
tests/conftest.py:75
Method
ss_validity_loss
Calculate validity loss for RNA structure
tests/test_structure_prediction.py:51
Function
temp_output_dir
Create temporary output directory for model checkpoints
tests/test_training_workflows.py:47
Function
temp_test_data
Create temporary test data directory
tests/conftest.py:89
Method
test
Test the model on the test dataset. Returns: Dict[str, Any]: Dictionary containing test metrics
omnigenbench/src/trainer/trainer.py:299
Method
test_aggregation_consistency
Test that same aggregation gives consistent results
tests/test_genomic_embeddings.py:176
Method
test_all_commands_have_help
Verify all subcommands provide help
tests/test_cli_parameter_mapping.py:236
Method
test_all_layers_all_heads
Test extracting all layers and all heads (most expensive operation)
tests/test_attention_extraction.py:406
Method
test_attention_statistics
Test attention statistics calculation. Based on section 1 of attention_extraction_example.py
tests/test_attention_extraction.py:122
Method
test_autobench_attributes
Test that AutoBench has all expected attributes
tests/test_autobench_hub_integration.py:173
Method
test_autobench_benchmark_name_handling
Test that benchmark names are handled correctly
tests/test_autobench_hub_integration.py:100
Method
test_autobench_benchmark_options
Test autobench accepts different benchmark names
tests/test_cli_commands.py:225
Method
test_autobench_cache_dir_parameter
Test that AutoBench accepts cache_dir parameter
tests/test_autobench_hub_integration.py:49
Method
test_autobench_command_structure
Test autobench parser is properly configured
tests/test_cli_commands.py:195
Method
test_autobench_configuration_options
Test AutoBench accepts various configuration options
tests/test_autobench_autotrain.py:113
Method
test_autobench_initialization
Test AutoBench can be initialized
tests/test_autobench_autotrain.py:88
Method
test_autobench_multi_seed_config
Test AutoBench supports multi-seed evaluation
tests/test_autobench_autotrain.py:154
Method
test_autobench_overwrite_flag
Test autobench accepts overwrite flag
tests/test_cli_commands.py:262
Method
test_autobench_parameter_mapping
Test autobench parameter mapping from ogb to bench_command
tests/test_cli_parameter_mapping.py:23
Method
test_autobench_parameter_name_consistency
Test that parameter names in ogb_cli match those expected by bench_command
tests/test_cli_parameter_mapping.py:171
Method
test_autobench_required_arguments
Test autobench requires model and benchmark
tests/test_cli_commands.py:205
Method
test_autobench_run_basic
Test AutoBench.run() with minimal configuration. This is a slow test that actually runs benchmarking.
tests/test_autobench_autotrain.py:127
Method
test_autobench_run_method_signature
Test that AutoBench.run() has the correct signature
tests/test_autobench_hub_integration.py:148
Method
test_autobench_short_options
Test that short options (-m, -b, -t) work correctly
tests/test_cli_parameter_mapping.py:133
Method
test_autobench_trainer_selection
Test autobench accepts different trainer types
tests/test_cli_commands.py:243
Method
test_autobench_with_different_benchmarks
Test AutoBench accepts different benchmark names
tests/test_autobench_autotrain.py:100
Method
test_autoconfig_dict_like_behavior
Test that AutoConfig behaves like a dictionary
tests/test_autotrain_hub_integration.py:175
Method
test_autoconfig_from_hub_method_exists
Test that AutoConfig has the from_hub classmethod
tests/test_autotrain_hub_integration.py:49
Method
test_autoconfig_from_local_dict
Test AutoConfig initialization from a config dict
tests/test_autotrain_hub_integration.py:54
Method
test_autoconfig_get_method
Test AutoConfig.get() method with defaults
tests/test_autotrain_hub_integration.py:199
Method
test_autoconfig_override_params
Test that AutoConfig parameters can be overridden
tests/test_autotrain_hub_integration.py:74
Method
test_autoinfer_batch_size_argument
Test autoinfer accepts batch size parameter
tests/test_cli_commands.py:82
Method
test_autoinfer_command_structure
Test autoinfer parser is properly configured
tests/test_cli_commands.py:35
Method
test_autoinfer_missing_input
Test autoinfer validates input requirements
tests/test_cli_commands.py:370
Method
test_autoinfer_parameters
Test autoinfer parameter parsing
tests/test_cli_parameter_mapping.py:210
Method
test_autoinfer_required_arguments
Test autoinfer requires model argument
tests/test_cli_commands.py:46
Method
test_autoinfer_single_sequence
Test autoinfer with single sequence input
tests/test_cli_commands.py:59
Method
test_autotrain_cache_dir_parameter
Test that AutoTrain accepts cache_dir parameter for local datasets
tests/test_autotrain_hub_integration.py:94
Method
test_autotrain_command_structure
Test autotrain parser is properly configured
tests/test_cli_commands.py:106
Method
test_autotrain_dataset_name_handling
Test that dataset names are handled correctly for metrics
tests/test_autotrain_hub_integration.py:159
Method
test_autotrain_different_task_types
Test AutoTrain handles different task types
tests/test_autobench_autotrain.py:207
Method
test_autotrain_execution_mock
Test autotrain command execution with mock dataset
tests/test_cli_commands.py:165
Method
test_autotrain_full_workflow
Test complete AutoTrain workflow. This is a slow integration test.
tests/test_autobench_autotrain.py:232
Method
test_autotrain_initialization
Test AutoTrain can be initialized
tests/test_autobench_autotrain.py:180
Method
test_autotrain_optional_parameters
Test autotrain accepts optional training parameters
tests/test_cli_commands.py:136
Method
test_autotrain_parameter_mapping
Test autotrain parameter mapping from ogb to train_command
tests/test_cli_parameter_mapping.py:71
Method
test_autotrain_parameter_name_consistency
Test that parameter names in ogb_cli match those expected by train_command
tests/test_cli_parameter_mapping.py:151
Method
test_autotrain_required_arguments
Test autotrain requires dataset and model
tests/test_cli_commands.py:116
Method
test_autotrain_run_config_parameter
Test that AutoTrain.run() accepts a config parameter
tests/test_autotrain_hub_integration.py:114
Method
test_autotrain_with_custom_config
Test AutoTrain accepts custom training configuration
tests/test_autobench_autotrain.py:190
Method
test_backward_compatibility_local_benchmark
Test that local benchmark workflows still work
tests/test_autobench_hub_integration.py:76
Method
test_backward_compatibility_local_dataset
Test that local dataset workflows still work (backward compatibility)
tests/test_autotrain_hub_integration.py:144
Method
test_base_pair_count
Test counting base pairs in structures
tests/test_structure_prediction.py:164
Method
test_base_pair_precision_recall
Test calculating precision and recall for base pairs
tests/test_structure_prediction.py:213
Method
test_basic_encode
Test basic encoding with mean aggregation
tests/test_genomic_embeddings.py:65
Method
test_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
Method
test_batch_attention_extraction
Test batch extraction of attention scores. Based on section 2 of attention_extraction_example.py
tests/test_attention_extraction.py:171
Method
test_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
Method
test_batch_different_sizes
Test batch processing with different batch sizes
tests/test_genomic_embeddings.py:220
Method
test_batch_encode
Test efficient batch processing. Based on batch example in README.md
tests/test_genomic_embeddings.py:200
Method
test_batch_inference_loop
Test batch inference using loop. Based on Python API batch example in README.md
tests/test_autoinfer_cli.py:79
Method
test_batch_performance
Test processing multiple sequences
tests/test_structure_prediction.py:489
Method
test_batch_prediction
Test batch structure prediction
tests/test_structure_prediction.py:317
Method
test_batch_vs_individual
Test that batch encoding gives same results as individual
tests/test_genomic_embeddings.py:239
Method
test_batch_with_different_lengths
Test batch processing with sequences of different lengths
tests/test_attention_extraction.py:200
Method
test_benchmark_multiple_models
Test benchmarking multiple models in sequence
tests/test_autobench_autotrain.py:442
Method
test_benchmark_result_format
Test benchmark results follow expected format
tests/test_autobench_autotrain.py:493
Method
test_benchmark_split_structure
Test benchmark datasets have standard splits
tests/test_autobench_autotrain.py:394
Method
test_boolean_flags_consistency
Test that boolean flags use action='store_true' consistently
tests/test_cli_parameter_mapping.py:250
Function
test_bpp_computation
Test BPP matrix computation.
examples/translation_efficiency_prediction/test_te_bpp_model.py:40
Function
test_bpp_processor
Test BPP processor module.
examples/translation_efficiency_prediction/test_te_bpp_model.py:133
Method
test_cache_dir
Create a temporary cache directory for testing.
tests/test_hf_download.py:36
Method
test_classification_metrics
Test classification metrics for structure prediction
tests/test_token_classification.py:293
Method
test_classification_metrics_available
Test classification metrics are available
tests/test_autobench_autotrain.py:324
Method
test_classification_metrics_with_ignore
Test metrics with ignore index (-100)
tests/test_token_classification.py:313
Method
test_classification_model_attention
Test attention extraction from classification model
tests/test_attention_extraction.py:230
← previous
next →
701–800 of 955, ranked by callers