seqgra.seqgraa module¶
MIT - CSAIL - Gifford Lab - seqgra
seqgra attribution
@author: Konstantin Krismer
- load_data(learner: seqgra.learner.learner.Learner, examples_file: str, annotations_file: str) → seqgra.schema.AnnotatedExampleSet[source]¶
- obtain_feature_attribution(attr_dir: str, grammar_id: str, learner: seqgra.learner.learner.Learner, evaluator_id: str, examples_file: str, annotations_file: str, target: str, eval_sis_predict_threshold: float, eval_grad_importance_threshold: float, eval_suppress_plots: bool) → None[source]¶
- prepare_model(grammar_id: str, model_def_file: str, output_dir: str, gpu_id: int) → seqgra.learner.learner.Learner[source]¶
- run_seqgra_attribution(analysis_id: str, grammar_ids: List[str], model_def_files: List[str], output_dir: str, examples_file: str, annotations_file: str, evaluator_ids: List[str], target: str, eval_sis_predict_threshold: float, eval_grad_importance_threshold: float, eval_suppress_plots: bool, gpu_id: int) → None[source]¶