MCPcopy Create free account

hub / github.com/aqlaboratory/rgn2 / functions

Functions355 in github.com/aqlaboratory/rgn2

↓ 50 callersMethod_testCore
Canonical test that checks any node/variable(s) based on an evaluation model coupled with a training model. Runs training for as many it
rgn/tests.py:181
↓ 20 callersFunctionassign_weights
Assigns variables passed weights Args: weight_dict: dict of variable names (under given scope) and their values
rgn/tests.py:64
↓ 19 callersFunctionmerge_dicts
Efficiently merges arbitrary number of dicts, giving precedence to latter dicts.
rgn/utils.py:34
↓ 15 callersMethodclose
(self)
aminobert/training_data_processing_utils.py:212
↓ 11 callersMethod_read_tsv
Reads a tab separated value file.
aminobert/run_classifier.py:197
↓ 10 callersFunctioncreate_initializer
Creates a `truncated_normal_initializer` with the given range.
aminobert/modeling.py:380
↓ 9 callersFunctionget_shape_list
Returns a list of the shape of tensor, preferring static dimensions. Args: tensor: A tf.Tensor object to find the shape of. expected_
aminobert/modeling.py:904
↓ 8 callersFunctioncreate_int_feature
(values)
aminobert/training_data_processing_utils.py:179
↓ 7 callersFunctiondict_to_inits
Accepts a dict of dicts, each of which contains a canonical config for an initializer.
rgn/utils.py:79
↓ 5 callersFunctioncreate_int_feature
(values)
aminobert/run_classifier.py:497
↓ 5 callersFunctionops_to_dict
Helper function that converts canonical dict of TF ops to an actual dict. Runs ops first.
rgn/utils.py:41
↓ 5 callersMethodtokenize
(self, seq)
aminobert/tokenization.py:221
↓ 4 callersMethodconvert_tokens_to_ids
(self, tokens)
aminobert/tokenization.py:225
↓ 4 callersFunctiondict_to_init
Accepts a dict in canonical config form and returns the appropriate initializer.
rgn/utils.py:55
↓ 4 callersFunctiondropout
Perform dropout. Args: input_tensor: float Tensor. dropout_prob: Python float. The probability of dropping out a value (NOT of
aminobert/modeling.py:349
↓ 4 callersFunctioneffective_steps
Returns the effective number of steps, i.e. number of residues that are non-missing and are not just padding, given a masking matrix. Ar
rgn/net_ops.py:57
↓ 4 callersMethodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
aminobert/modeling.py:90
↓ 4 callersMethodget_pooled_output
(self)
aminobert/modeling.py:238
↓ 3 callersMethod_create_examples
Creates examples for the training and dev sets.
aminobert/run_classifier.py:278
↓ 3 callersMethod_create_examples
Creates examples for the training and dev sets.
aminobert/run_classifier.py:319
↓ 3 callersMethod_create_examples
Creates examples for the training and dev sets.
aminobert/run_classifier.py:359
↓ 3 callersFunction_dssps
Converts internal representation resultant from RNN output activations into dssp classes (logits).
rgn/geomnet_model.py:1058
↓ 3 callersFunction_geometric_parametrization
Converts internal representation resultant from RNN or transformer output activations into geometrical representations based on one of many m
rgn/geomnet_model.py:1159
↓ 3 callersFunction_recurrent_cell
create recurrent cell(s) used in RNN
rgn/geomnet_model.py:947
↓ 3 callersFunction_recurrent_cell
create recurrent cell(s) used in RNN
rgn/rnn.py:237
↓ 3 callersFunctionfile_based_convert_examples_to_features
Convert a set of `InputExample`s to a TFRecord file.
aminobert/run_classifier.py:483
↓ 3 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
aminobert/run_classifier.py:516
↓ 3 callersFunctionfloat_feature
Returns a float_list from a float / double.
data_processing/aminobert_postprocessing.py:121
↓ 3 callersMethodget_embedding_table
(self)
aminobert/modeling.py:265
↓ 3 callersMethodget_sequence_output
Gets final hidden layer of encoder. Returns: float Tensor of shape [batch_size, seq_length, hidden_size] corresponding to the fin
aminobert/modeling.py:241
↓ 3 callersFunctioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator. Args: input_dict: Dictionary containing everything needed to feed finetun
aminobert/run_finetuning_and_prediction.py:47
↓ 3 callersFunctionlayer_norm
Run layer normalization on the last dimension of the tensor.
aminobert/modeling.py:367
↓ 3 callersFunctionletter_to_num
Convert string of letters to list of ints
data_processing/convert_to_tfrecord.py:28
↓ 3 callersMethodmatch
Indicate whether or not to enter a case suite
rgn/utils.py:18
↓ 3 callersFunctionreshape_to_matrix
Reshapes a >= rank 2 tensor to a rank 2 tensor (i.e., a matrix).
aminobert/modeling.py:941
↓ 2 callersFunction_alphabet
Creates alphabet for alphabetized dihedral prediction.
rgn/geomnet_model.py:1135
↓ 2 callersMethod_createModel
(self, c_train, c_evals)
rgn/tests.py:142
↓ 2 callersFunction_recurrence
Recurrent layer for transforming inputs (primary sequences) into an internal representation.
rgn/geomnet_model.py:848
↓ 2 callersFunction_recurrence
Recurrent layer for transforming inputs (primary sequences) into an internal representation.
rgn/rnn.py:138
↓ 2 callersMethod_runModel
(self, sess, iteration, m_train, m_evals, weight_dict, node_dict, variable_dict, rtol, atol, restart_every_ite
rgn/tests.py:149
↓ 2 callersFunctionangularize
Restricts real-valued tensors to the interval [-pi, pi] by feeding them through a cosine.
rgn/geom_ops.py:31
↓ 2 callersMethodapply_gradients
See base class.
aminobert/optimization.py:225
↓ 2 callersFunctionclip_seq_level_output_mat
(mat, input_seqs)
aminobert/run_finetuning_and_prediction.py:470
↓ 2 callersFunctionconvert_by_vocab
Converts a sequence of [tokens|ids] using the vocab.
aminobert/tokenization.py:204
↓ 2 callersFunctionconvert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
aminobert/run_classifier.py:378
↓ 2 callersFunctiondicts_to_matched_tuples
Converts pair of dicts to pair of matched tuples so that their elements can be compared. Throws an exception if the set of keys in both dic
rgn/tests.py:101
↓ 2 callersFunctionextend
Args: tri: NUM_DIHEDRALS x [NUM_FRAGS/0, BATCH_SIZE, NUM_DIMENSIONS] pt: [NUM_FR
rgn/geom_ops.py:202
↓ 2 callersFunctionget_node_ops
Returns handles to ops (values) of nodes by name that can be evaluated by sess.run() Args: nodes: list of strings containing no
rgn/tests.py:78
↓ 2 callersFunctioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
aminobert/run_pretraining.py:556
↓ 2 callersFunctioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
aminobert/training.py:255
↓ 2 callersFunctionint64_feature
Returns an int64_list from a bool / enum / int / uint.
data_processing/aminobert_postprocessing.py:125
↓ 2 callersFunctionpairwise_distance
Computes the pairwise distance (l2 norm) between all vectors in the tensor. Vectors are assumed to be in the third dimension. Op is done ele
rgn/geom_ops.py:441
↓ 2 callersFunctionpredict_and_log
(log_dir, configs, models, session)
rgn/protling_special.py:154
↓ 2 callersFunctionpredict_and_log
(log_dir, configs, models, session)
rgn/protling.py:154
↓ 2 callersFunctionpredicted_ter2pdb
(seq_path, ter_path, output_dir=None, seq_id=None)
ter2pdb/ter2pdb.py:22
↓ 2 callersFunctionreduce_l2_norm
Computes the (possibly weighted) L2 norm of a tensor along the dimensions given in reduction_indices. Args: input_tensor: [..., NUM_DIME
rgn/geom_ops.py:94
↓ 2 callersFunctionreshape_from_matrix
Reshapes a rank 2 tensor back to its original rank >= 2 tensor.
aminobert/modeling.py:955
↓ 2 callersFunctiontranspose_for_scores
(input_tensor, batch_size, num_attention_heads, seq_length, width)
aminobert/modeling.py:636
↓ 1 callersMethod__init__
Constructs a LAMBOptimizer.
aminobert/optimization.py:207
↓ 1 callersMethod__str__
(self)
aminobert/training_data_processing_utils.py:73
↓ 1 callersFunction_accumulate_loss
Constructs ops to accumulate and reduce loss and maintain a memory of lowest loss achieved
rgn/geomnet_model.py:1380
↓ 1 callersFunction_attention
Non-recurrent attention layer that examines all states, for each state, and return a convex mixture of the states.
rgn/geomnet_model.py:1024
↓ 1 callersFunction_attention
Non-recurrent attention layer that examines all states, for each state, and return a convex mixture of the states.
rgn/rnn.py:314
↓ 1 callersFunction_coordinates
Converts dihedrals into full 3D structures.
rgn/geomnet_model.py:1261
↓ 1 callersMethod_create_config
(self, config)
rgn/config.py:38
↓ 1 callersMethod_create_graph
Creates TensorFlow computation graph Creates a different model depending on whether mode is set to 'training' or 'evaluation'.
rgn/geomnet_model.py:132
↓ 1 callersFunction_curriculum
Creates TF ops for maintaining and advancing the curriculum.
rgn/geomnet_model.py:1467
↓ 1 callersFunction_dataflow
Creates TF queues and nodes for inputting and batching data.
rgn/geomnet_model.py:592
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
aminobert/run_pretraining.py:627
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
aminobert/run_classifier.py:528
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
aminobert/training.py:322
↓ 1 callersFunction_device_function_constructor
Returns a device placement function to insure that each operation is placed on the most optimal device.
rgn/geomnet_model.py:579
↓ 1 callersMethod_do_use_weight_decay
Whether to use L2 weight decay for `param_name`.
aminobert/optimization.py:182
↓ 1 callersMethod_do_use_weight_decay
Whether to use L2 weight decay for `param_name`.
aminobert/optimization.py:288
↓ 1 callersFunction_drmsds
Computes reduced weighted dRMSD loss (as specified by weights) between predicted tertiary structures and targets.
rgn/geomnet_model.py:1295
↓ 1 callersMethod_get_variable_name
Get the variable name from the tensor name.
aminobert/optimization.py:192
↓ 1 callersMethod_get_variable_name
Get the variable name from the tensor name.
aminobert/optimization.py:298
↓ 1 callersFunction_higher_recurrence
Higher-order recurrence that creates multiple layers, possibly with interleaving dihedrals and dssps
rgn/geomnet_model.py:721
↓ 1 callersFunction_history
Creates op for loss history updating.
rgn/geomnet_model.py:1456
↓ 1 callersFunction_inputs
Returns final concatenated input for use in recurrent layer.
rgn/geomnet_model.py:671
↓ 1 callersFunction_reduce_loss_quotient
Reduces loss according to normalization order.
rgn/geomnet_model.py:1350
↓ 1 callersFunction_secondary_accuracy
Computes (non-differentiable) accuracy of predicted secondary structures based on targets.
rgn/geomnet_model.py:1108
↓ 1 callersFunction_secondary_loss
Computes reduced cross entropy loss between predicted secondary structures and targets.
rgn/geomnet_model.py:1074
↓ 1 callersFunction_training
Creates loss optimizer and returns minimization op.
rgn/geomnet_model.py:1415
↓ 1 callersFunction_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
aminobert/run_classifier.py:564
↓ 1 callersFunction_weights
Returns dRMSD weights that mask meaningless (missing or longer than sequence residues) pairwise distances and incorporate the state of
rgn/geomnet_model.py:685
↓ 1 callersFunctionaminobert_predict
(seqs, headers, fastas, checkpoint)
aminobert/prediction.py:106
↓ 1 callersFunctionassert_rank
Raises an exception if the tensor rank is not of the expected rank. Args: tensor: A tf.Tensor to check the rank of. expected_rank: Py
aminobert/modeling.py:968
↓ 1 callersFunctionattention_layer
Performs multi-headed attention from `from_tensor` to `to_tensor`. This is an implementation of multi-headed attention based on "Attention is
aminobert/modeling.py:565
↓ 1 callersFunctionbytes_feature
Returns a bytes_list from a string / byte.
data_processing/aminobert_postprocessing.py:117
↓ 1 callersFunctionca_to_allatom
(output_dir=None, seq_id=None)
ter2pdb/ter2pdb.py:83
↓ 1 callersFunctioncheck_seqs
(seqs, max_seq_length)
aminobert/run_finetuning_and_prediction.py:456
↓ 1 callersFunctioncreate_attention_mask_from_input_mask
Create 3D attention mask from a 2D tensor mask. Args: from_tensor: 2D or 3D Tensor of shape [batch_size, from_seq_length, ...]. to_ma
aminobert/modeling.py:531
↓ 1 callersFunctioncreate_example
(example)
data_processing/aminobert_postprocessing.py:137
↓ 1 callersFunctioncreate_float_feature
(values)
aminobert/training_data_processing_utils.py:184
↓ 1 callersFunctioncreate_globally_perturbed_instance
(tseq, tokenizer, global_perturbation_params, rng)
aminobert/training_data_processing.py:202
↓ 1 callersFunctioncreate_masked_lm_instance
Create Masked LM Instance Used to be create_instance_from_tokenized_seq
aminobert/training_data_processing.py:246
↓ 1 callersFunctioncreate_model
Creates several tensor outputs that are useful for fine tuning and/or prediction (inference) Returns: loss - Mean squared error loss tens
aminobert/run_finetuning_and_prediction.py:191
↓ 1 callersFunctioncreate_model
Creates a classification model.
aminobert/run_classifier.py:581
↓ 1 callersFunctioncreate_proteinnet_records
(data_dir, outfile, prepend_m)
data_processing/aminobert_postprocessing.py:39
next →1–100 of 355, ranked by callers