MCPcopy Create free account

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

Functions955 in github.com/COLA-Laboratory/OmniGenBench

Methodindices_to_seqs
Convert indices to sequences.
omnigenbench/src/explainability/shared_methods/squid_explainer.py:664
Methodinference
Return binary predictions with a threshold. Parameters ---------- threshold : float, optional Decision threshold
omnigenbench/src/model/baselines.py:309
Methodinference
Return binary predictions using the specified probability threshold.
omnigenbench/src/model/baselines.py:566
Methodinference
Return thresholded predictions along with confidence scores.
omnigenbench/src/model/baselines.py:842
Methodinference
Return thresholded predictions along with confidence scores.
omnigenbench/src/model/baselines.py:1139
Methodinference
Return thresholded predictions along with confidence scores.
omnigenbench/src/model/baselines.py:1394
Methodinference
Convenience inference wrapper producing final predictions. Behavior depends on ``task_name``: - ``multilabel_classification``: thresh
omnigenbench/src/model/baselines.py:2307
Methodinference
Perform inference for masked language modeling, decoding predictions to sequences. Args: sequence_or_inputs: Input seque
omnigenbench/src/model/mlm/model.py:124
Methodinference
Perform inference for token-level regression, excluding special tokens. Args: sequence_or_inputs: Input sequences or pre
omnigenbench/src/model/regression/model.py:109
Methodinference
Perform inference for sequence-level regression. Args: sequence_or_inputs: Input sequences or pre-processed inputs
omnigenbench/src/model/regression/model.py:260
Methodinference
Perform inference for matrix regression. Args: sequence_or_inputs: Input sequences or pre-processed inputs *
omnigenbench/src/model/regression/model.py:545
Methodinference
Perform inference for matrix classification. Args: sequence_or_inputs: Input sequences or pre-processed inputs
omnigenbench/src/model/regression/model.py:696
Methodinference
This method provides processed, human-readable sequence-level predictions. It converts logits to class labels and provides confidence
omnigenbench/src/model/classification/model.py:424
Methodinference
Performs multi-label inference with human-readable output. It converts logits to binary labels and provides confidence scores.
omnigenbench/src/model/classification/model.py:587
Methodinference
(self, sequence_or_inputs, **kwargs)
omnigenbench/src/model/classification/model.py:719
Methodl2_regularizer
(self)
omnigenbench/src/explainability/shared_methods/squid_explainer.py:568
Methodlast_hidden_state_forward
Perform forward pass and return the last hidden state from the base model. This method provides access to intermediate representatio
omnigenbench/src/lora/lora_model.py:436
Methodload
This method loads a complete pipeline including the model, tokenizer, datasets, and trainer configuration. If the pipeline doesn't ex
omnigenbench/src/utility/pipeline_hub/pipeline_hub.py:59
Functionload_benchmark_datasets
This function automatically downloads benchmark datasets if they don't exist locally, loads their configurations, and initializes train/valid
omnigenbench/src/utility/dataset_hub/dataset_hub.py:27
Methodload_model_and_tokenizer
Load a model and its tokenizer from Hugging Face Hub or local path. This method loads both the model and tokenizer, places them on t
omnigenbench/src/utility/model_hub/model_hub.py:441
Functionlongest_bp_span
(structure)
examples/rna_sequence_design/easy_rna_design_emoo.py:55
Methodloss_function
Binary cross-entropy loss with logits already in probability space. Notes ----- This legacy baseline uses ``BCELoss`` assumin
omnigenbench/src/model/baselines.py:334
Methodloss_function
Binary cross-entropy loss on probabilities.
omnigenbench/src/model/baselines.py:585
Methodloss_function
(self, logits, labels)
omnigenbench/src/model/baselines.py:861
Methodloss_function
(self, logits, labels)
omnigenbench/src/model/baselines.py:1158
Methodloss_function
(self, logits, labels)
omnigenbench/src/model/baselines.py:1413
Methodloss_function
Compute task-appropriate training loss.
omnigenbench/src/model/baselines.py:2342
Methodloss_function
Compute the loss for masked language modeling. Args: logits (torch.Tensor): Model predictions [batch_size, seq_len, voca
omnigenbench/src/model/mlm/model.py:164
Methodloss_function
Compute the loss for token-level regression. Args: logits (torch.Tensor): Model predictions labels (torch.Te
omnigenbench/src/model/regression/model.py:148
Methodloss_function
Compute the loss for sequence-level regression. Args: logits (torch.Tensor): Model predictions labels (torch
omnigenbench/src/model/regression/model.py:295
Methodloss_function
Compute the loss for matrix regression. Args: logits (torch.Tensor): Model predictions labels (torch.Tensor)
omnigenbench/src/model/regression/model.py:580
Methodloss_function
Compute the loss for matrix classification. Args: logits (torch.Tensor): Model predictions labels (torch.Ten
omnigenbench/src/model/regression/model.py:739
Methodloss_function
Calculates the cross-entropy loss for token classification. This method computes the cross-entropy loss between the predicted
omnigenbench/src/model/classification/model.py:238
Methodloss_function
This method computes the cross-entropy loss between the predicted logits and the ground truth labels. Args: logi
omnigenbench/src/model/classification/model.py:475
Methodloss_function
Calculates the binary cross-entropy loss for multi-label classification. Args: logits (torch.Tensor): Predicted logits f
omnigenbench/src/model/classification/model.py:526
Methodloss_function
(self, logits, labels)
omnigenbench/src/model/classification/model.py:747
Functionmcrmse
Compute Mean Column Root Mean Square Error (MCRMSE). MCRMSE is a multi-target regression metric that computes the RMSE for each target c
omnigenbench/src/metric/metric.py:20
Functionmcrmse
Compute Mean Column Root Mean Square Error (MCRMSE). MCRMSE is a multi-target regression metric that computes the RMSE for each target co
omnigenbench/src/metric/regression_metric.py:20
Functionmock_binary_dataset
Create a minimal mock binary classification dataset. Based on translation efficiency prediction pattern. Limited to 10 samples per split
tests/test_training_workflows.py:55
Functionmock_binary_dataset
Create minimal mock dataset for CLI testing
tests/test_cli_commands.py:441
Functionmock_multilabel_dataset
Create a minimal mock multi-label classification dataset. Based on TFB prediction (DeepSEA) pattern with 919 labels. Limited to 10 sample
tests/test_training_workflows.py:103
Methodmodel
Load model for structure prediction. Using base model - in practice would use fine-tuned SSP model.
tests/test_structure_prediction.py:280
Methodmodel
Load model for edge case testing
tests/test_autoinfer_cli.py:315
Methodmodel_and_tokenizer
Load model and tokenizer once for all tests
tests/test_autoinfer_cli.py:51
Methodmodel_info
Get detailed information about the underlying base model. Returns comprehensive information about the model architecture, configurat
omnigenbench/src/lora/lora_model.py:387
Functionmodel_name
Model name for testing
tests/test_token_classification.py:31
Functionmodel_name
Model name for testing
tests/test_genomic_embeddings.py:22
Functionmodel_name
Model name for testing
tests/test_attention_extraction.py:25
Methodmutate_string
(seq, rate)
omnigenbench/src/model/rna_design/model.py:195
Functionnaive_secondary_structure_repair
This function attempts to repair malformed RNA secondary structure representations by ensuring proper bracket matching. It handles common
omnigenbench/src/misc/utils.py:289
Methodone_hot_to_indices
Convert one‑hot encoded sequences to indices.
omnigenbench/src/explainability/shared_methods/squid_explainer.py:660
Functionplant_model_small
Use PlantRNA-FM for plant-specific tasks
tests/test_training_workflows.py:41
Methodpostprocess
Return probabilities via softmax.
omnigenbench/src/model/baselines.py:1892
Methodpostprocess
Return multi-label probabilities via sigmoid.
omnigenbench/src/model/baselines.py:1911
Methodpostprocess
Return probabilities via softmax.
omnigenbench/src/model/baselines.py:1954
Methodpredict
Generate predictions using the LoRA-adapted model through the base model interface. This method provides access to the base model's
omnigenbench/src/lora/lora_model.py:320
Methodpredict
Predicts on a single text and returns the ensemble result. This method combines predictions from all predictors in the ensemble
omnigenbench/src/utility/ensemble.py:227
Methodpredict
Alias for inference method for API compatibility.
omnigenbench/src/utility/model_hub/model_hub.py:171
Methodpredict
This method provides a high-level interface for generating predictions from the pipeline's model. It handles preprocessing and postpr
omnigenbench/src/utility/pipeline_hub/pipeline.py:277
Methodpredict
Return probabilities for each label. This calls the internal convenience routine to accept either raw sequences or already-tokenized
omnigenbench/src/model/baselines.py:291
Methodpredict
Return probabilities for each label (alias of forward logits).
omnigenbench/src/model/baselines.py:557
Methodpredict
Return probabilities for each label.
omnigenbench/src/model/baselines.py:833
Methodpredict
Return probabilities for each label.
omnigenbench/src/model/baselines.py:1130
Methodpredict
Return probabilities for each label.
omnigenbench/src/model/baselines.py:1385
Methodpredict
Return task-appropriate probabilities from head postprocess.
omnigenbench/src/model/baselines.py:2296
Methodpredict
Generate predictions for masked language modeling. Args: sequence_or_inputs: Input sequences or pre-processed inputs
omnigenbench/src/model/mlm/model.py:85
Methodpredict
Generate predictions for sequence-level regression. Args: sequence_or_inputs: Input sequences or pre-processed inputs
omnigenbench/src/model/regression/model.py:228
Methodpredict
Generate predictions for matrix regression. Args: sequence_or_inputs: Input sequences or pre-processed inputs
omnigenbench/src/model/regression/model.py:513
Methodpredict
Generate predictions for matrix classification. Args: sequence_or_inputs: Input sequences or pre-processed inputs
omnigenbench/src/model/regression/model.py:663
Methodpredict
This method takes raw sequences or tokenized inputs and returns sequence-level predictions. It processes the inputs through the model
omnigenbench/src/model/classification/model.py:378
Methodpredict
This method takes raw sequences or tokenized inputs and returns multi-label predictions. It applies a threshold to determine
omnigenbench/src/model/classification/model.py:543
Methodpredict
(self, sequence_or_inputs, **kwargs)
omnigenbench/src/model/classification/model.py:696
Methodpredict_and_compare
Predict structure and generate comparison visualization
examples/rna_secondary_structure_prediction/enhanced_ssp_demo.py:495
Functionpredict_structure
Predicts structures for multiple sequences using multithreading.
examples/rna_sequence_design/easy_rna_design_emoo.py:88
Methodprepare_input
Prepare a single data instance for token classification. This method handles both string sequences and dictionary instances
omnigenbench/src/dataset/omni_dataset.py:68
Methodprepare_input
Prepare a single data instance for sequence classification. This method handles both string sequences and dictionary instances
omnigenbench/src/dataset/omni_dataset.py:179
Methodprepare_input
Prepare a single data instance for token regression. This method handles both string sequences and dictionary instances cont
omnigenbench/src/dataset/omni_dataset.py:277
Methodprepare_input
Prepare a single data instance for sequence regression. This method handles both string sequences and dictionary instances c
omnigenbench/src/dataset/omni_dataset.py:384
Methodprepare_input
Prepare a single data instance for multi-label classification. This method handles both string sequences and dictionary instances
omnigenbench/src/dataset/omni_dataset.py:507
Methodprepare_input
Prepare a single training instance with BPP features. This method overrides the parent class to add BPP matrix computation
examples/translation_efficiency_prediction/te_bpp_model.py:198
Methodprepare_input
Prepare input with BPP features. This method: 1. Extracts sequence and label from instance 2. Pads/truncates
examples/translation_efficiency_prediction/te_with_bpp_features.py:119
Functionprint_args
This function prints the arguments from a configuration object to the console or a logger. It's useful for debugging and logging experiment p
omnigenbench/src/misc/utils.py:346
Methodprint_label_statistics
Print statistics about the multi-label distribution in the dataset. This includes the number of positive labels per sample and per la
omnigenbench/src/dataset/omni_dataset.py:608
Methodpush
Push a model to the hub. This method is not yet implemented and will raise a NotImplementedError. Args: model:
omnigenbench/src/utility/model_hub/model_hub.py:847
Methodpush
This method is intended to upload custom pipelines to the OmniGenome hub for sharing and distribution. Currently not implemented.
omnigenbench/src/utility/pipeline_hub/pipeline_hub.py:101
Functionpytest_collection_modifyitems
Modify test collection
tests/conftest.py:96
Functionpytest_configure
Configure pytest with custom markers
tests/conftest.py:27
Functionquery_benchmarks_info
This function retrieves benchmark information from the OmniGenome hub, either from a remote repository or from a local cache. It supports
omnigenbench/src/utility/hub_utils.py:170
Functionquery_pipelines_info
This function retrieves pipeline information from the OmniGenome hub, either from a remote repository or from a local cache. It supports
omnigenbench/src/utility/hub_utils.py:111
Functionregister_command
This function is a convenience wrapper for registering the BenchCommand with the argument parser. Args: subparsers: The subparse
omnigenbench/cli/commands/bench/bench_cli.py:179
Functionregister_command
This function is a convenience wrapper for registering the RNADesignCommand with the argument parser. Args: subparsers: The subp
omnigenbench/cli/commands/rna/rna_design.py:163
Methodregister_command
This abstract method must be implemented by all subclasses to define their specific command-line interface, including arguments, help
omnigenbench/cli/commands/base.py:36
Functionreload_image
(sequence, structure)
examples/rna_sequence_design/web_rna_design.py:276
Functionrna_design_model
Load RNA design model once for all tests. Using smaller model for faster testing.
tests/test_rna_design.py:22
Functionrun_autobench
Execute the autobench command.
omnigenbench/cli/ogb_cli.py:400
Functionrun_autoinfer
Execute the autoinfer command.
omnigenbench/cli/ogb_cli.py:221
Functionrun_autotrain
Execute the autotrain command.
omnigenbench/cli/ogb_cli.py:370
Functionrun_bench
This function sets up logging, constructs the command to execute (potentially with `accelerate launch`), and runs it.
omnigenbench/auto/auto_bench/auto_bench_cli.py:144
Functionrun_design
(structure)
examples/rna_sequence_design/web_rna_design.py:348
Functionrun_rna_design
Execute the RNA design command.
omnigenbench/cli/ogb_cli.py:511
← previousnext →601–700 of 955, ranked by callers