MCPcopy Create free account

hub / github.com/HICAI-ZJU/KANO / functions

Functions355 in github.com/HICAI-ZJU/KANO

↓ 2 callersFunctionmol2graph
Converts a list of SMILES strings to a BatchMolGraph containing the batch of molecular graphs. :param smiles_batch: A list of SMILES strings
chemprop/features/featurization.py:438
↓ 2 callersMethodmols
Returns the RDKit molecules associated with the molecules. :return: A list of RDKit Mols.
chemprop/data/data.py:128
↓ 2 callersFunctionrun_training
Trains a model and returns test scores on the model checkpoint with the highest validation score. :param args: Arguments. :param logger:
chemprop/train/run_training.py:31
↓ 2 callersFunctionsave_checkpoint
Saves a model checkpoint. :param model: A MoleculeModel. :param scaler: A StandardScaler fitted on the data. :param features_scaler:
chemprop/utils.py:35
↓ 2 callersMethodset_features
Sets the features of the molecule. :param features: A 1-D numpy array of features for the molecule.
chemprop/data/data.py:71
↓ 2 callersFunctionsnapshot
Saving model w/ its params. Get rid of the ONNX Protocal. F-string feature new in Python 3.6+ is used.
chemprop/torchlight/utils.py:62
↓ 2 callersMethodtransform
Transforms the data by subtracting the means and dividing by the standard deviations. :param X: A list of lists of floats. :
chemprop/data/scaler.py:41
↓ 2 callersFunctionupdate_checkpoint_args
Walks the checkpoint directory to find all checkpoints, updating args.checkpoint_paths and args.ensemble_size. :param args: Arguments.
chemprop/parsing.py:197
↓ 1 callersMethod__convertAtomicClassToManchesterSyntax__
(self, cls_exp)
KGembedding/owl2vec_star/lib/Onto_Projection.py:229
↓ 1 callersMethod__convertIntersectionToManchesterSyntax__
(self, cls_exp)
KGembedding/owl2vec_star/lib/Onto_Projection.py:184
↓ 1 callersMethod__convertOneOfToManchesterSyntax__
(self, cls_exp)
KGembedding/owl2vec_star/lib/Onto_Projection.py:234
↓ 1 callersMethod__convertRestrictionToManchesterSyntax__
(self, cls_exp)
KGembedding/owl2vec_star/lib/Onto_Projection.py:209
↓ 1 callersMethod__convertUnionToManchesterSyntax__
(self, cls_exp)
KGembedding/owl2vec_star/lib/Onto_Projection.py:179
↓ 1 callersMethod__extractTriplesFromComplexAxioms__
(self)
KGembedding/owl2vec_star/lib/Onto_Projection.py:792
↓ 1 callersMethod__init__
(self, args: Namespace, atom_fdim: int = None, bond_fdim: i
chemprop/models/mpn.py:140
↓ 1 callersMethod__init__
(self, temperature)
chemprop/models/loss/loss.py:34
↓ 1 callersMethod__init__
(self, device)
chemprop/models/loss/loss_computer.py:20
↓ 1 callersMethod__init__
Create a Vocabulary given Counter. Args: counter: collections.Counter object holding the frequencies of e
chemprop/torchlight/vocab.py:43
↓ 1 callersFunction__perform_ontology_embedding
(config)
KGembedding/owl2vec_star/owl2vec_star.py:55
↓ 1 callersMethod__propagateDomainAbox__
(self, source)
KGembedding/owl2vec_star/lib/Onto_Projection.py:745
↓ 1 callersMethod__propagateDomainTbox__
(self, source)
KGembedding/owl2vec_star/lib/Onto_Projection.py:721
↓ 1 callersMethod__propagateRangeAbox__
(self, target)
KGembedding/owl2vec_star/lib/Onto_Projection.py:753
↓ 1 callersMethod__propagateRangeTbox__
(self, target)
KGembedding/owl2vec_star/lib/Onto_Projection.py:732
↓ 1 callersMethod_community_detection
(self, graph)
KGembedding/owl2vec_star/rdf2vec/walkers/community.py:30
↓ 1 callersMethod_create_label
Take labels of neighbors, sort them lexicographically and join.
KGembedding/owl2vec_star/rdf2vec/walkers/weisfeiler_lehman.py:12
↓ 1 callersMethod_weisfeiler_lehman
Perform Weisfeiler-Lehman relabeling of the vertices
KGembedding/owl2vec_star/rdf2vec/walkers/weisfeiler_lehman.py:22
↓ 1 callersFunctionadd_predict_args
Adds predict arguments to an ArgumentParser. :param parser: An ArgumentParser.
chemprop/parsing.py:12
↓ 1 callersFunctionadd_train_args
Adds training arguments to an ArgumentParser. :param parser: An ArgumentParser.
chemprop/parsing.py:50
↓ 1 callersFunctionattention
Compute 'Scaled Dot Product Attention
chemprop/models/model.py:157
↓ 1 callersFunctionbuild_lr_scheduler
Builds a learning rate scheduler. :param optimizer: The Optimizer whose learning rate will be scheduled. :param args: Arguments. :pa
chemprop/utils.py:279
↓ 1 callersFunctionbuild_optimizer
Builds an Optimizer. :param model: The model to optimize. :param args: Arguments. :return: An initialized Optimizer.
chemprop/utils.py:263
↓ 1 callersFunctioncluster_split
Split a dataset by cluster so that no molecules in a same cluster are in the same split. :param data: A MoleculeDataset. :param sizes: A
chemprop/data/scaffold.py:160
↓ 1 callersMethodcompute
Computes the metric based on it's accumulated state. This is called at the end of each epoch. Returns: Any: the a
chemprop/torchlight/metric.py:41
↓ 1 callersFunctioncompute_gnorm
Computes the norm of the gradients of a model.
chemprop/nn_utils.py:19
↓ 1 callersFunctioncompute_pnorm
Computes the norm of the parameters of a model.
chemprop/nn_utils.py:14
↓ 1 callersFunctioncreate_logger
Create a logger. Use a different log file for each process.
chemprop/torchlight/logger.py:36
↓ 1 callersFunctionele_features
(ele)
chemprop/features/featurization.py:139
↓ 1 callersFunctionevaluate
Evaluates an ensemble of models on a dataset. :param model: A model. :param data: A MoleculeDataset. :param num_tasks: Number of tas
chemprop/train/evaluate.py:70
↓ 1 callersMethodextract_random_community_walks
Extract random walks of depth - 1 hops rooted in root.
KGembedding/owl2vec_star/rdf2vec/walkers/community.py:63
↓ 1 callersMethodfeatures_size
Returns the size of the features array associated with each molecule. :return: The size of the features.
chemprop/data/data.py:163
↓ 1 callersFunctiongenerate_scaffold
Compute the Bemis-Murcko scaffold for a SMILES string. :param mol: A smiles string or an RDKit molecule. :param include_chirality: Wheth
chemprop/data/scaffold.py:20
↓ 1 callersMethodgetAncestorsURIs
(self,cls)
KGembedding/owl2vec_star/lib/Onto_Access.py:189
↓ 1 callersMethodgetAnnotationURIsForPreferredLabels
(self)
KGembedding/owl2vec_star/lib/Onto_Annotations.py:109
↓ 1 callersMethodgetAnnotationURIsForSymnonyms
(self)
KGembedding/owl2vec_star/lib/Onto_Annotations.py:105
↓ 1 callersMethodgetClassByName
(self, name)
KGembedding/owl2vec_star/lib/Onto_Access.py:120
↓ 1 callersFunctiongetExtendedSentences
(sentence, syn_dict, max_labels=5)
KGembedding/owl2vec_star/owl2vec_star.py:202
↓ 1 callersMethodgetIndividuals
(self)
KGembedding/owl2vec_star/lib/Onto_Access.py:304
↓ 1 callersMethodgetOntologyIRI
(self)
KGembedding/owl2vec_star/lib/Onto_Access.py:342
↓ 1 callersMethodgetOntologyIRI
(self)
KGembedding/owl2vec_star/lib/Onto_Access.py:368
↓ 1 callersMethodgetPreferredLabelsForEntity
(self, entity_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1475
↓ 1 callersMethodgetQueryForAllSameAs
(self)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1077
↓ 1 callersMethodgetQueryForAtomicClassEquivalences
(self)
KGembedding/owl2vec_star/lib/Onto_Projection.py:976
↓ 1 callersMethodgetQueryForAtomicClassSubsumptions
(self)
KGembedding/owl2vec_star/lib/Onto_Projection.py:932
↓ 1 callersMethodgetQueryForAtomicEquivalentDataProperties
(self, prop_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1022
↓ 1 callersMethodgetQueryForComplexDomain
(self, prop_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1116
↓ 1 callersMethodgetQueryForComplexRange
(self, prop_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1129
↓ 1 callersMethodgetQueryForComplexRestrictionsLHS
(self, prop_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1359
↓ 1 callersMethodgetQueryForDataRestrictionsRHSEquivalent
(self, prop_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1245
↓ 1 callersMethodgetQueryForDataRestrictionsRHSSubClassOf
(self, prop_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1235
↓ 1 callersMethodgetQueryForDomainAndRange
(self, prop_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1160
↓ 1 callersMethodgetQueryForRange
(self, prop_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1150
↓ 1 callersMethodgetQueryForRestrictionsLHS
(self, prop_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1260
↓ 1 callersMethodgetQueryForRestrictionsRHSEquivalent
(self, prop_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1210
↓ 1 callersMethodgetQueryForRestrictionsRHSSubClassOf
(self, prop_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1189
↓ 1 callersMethodgetSynonymLabelsForEntity
(self, entity_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1478
↓ 1 callersMethodget_a2a
Computes (if necessary) and returns a mapping from each atom index to all neighboring atom indices. :return: A PyTorch tensor contai
chemprop/features/featurization.py:422
↓ 1 callersFunctionget_atom_symbol
(atomic_number)
initial/get_dict.py:32
↓ 1 callersFunctionget_class_sizes
Determines the proportions of the different classes in the classification dataset. :param data: A classification dataset :return: A list
chemprop/data/utils.py:311
↓ 1 callersFunctionget_code_version
(short_sha=True)
chemprop/torchlight/utils.py:119
↓ 1 callersFunctionget_dump_path
Create a directory to store the experiment.
chemprop/torchlight/logger.py:115
↓ 1 callersMethodget_inv_neighbors
Get all the neighbors of vertex (vertex -> neighbor).
KGembedding/owl2vec_star/rdf2vec/graph.py:58
↓ 1 callersFunctionget_loss_func
Gets the loss function corresponding to a given dataset type. :param args: Namespace containing the dataset type ("classification" or "regre
chemprop/utils.py:158
↓ 1 callersMethodget_lr
Gets a list of the current learning rates.
chemprop/nn_utils.py:189
↓ 1 callersFunctionhrc_features
(ele)
chemprop/features/featurization.py:134
↓ 1 callersMethodinit_parameters
orthogonal init yields generally good results than uniform init
chemprop/torchlight/module.py:50
↓ 1 callersFunctionload_features
Loads features saved in a variety of formats. Supported formats: - .npz compressed (assumes features are saved with name "features")
chemprop/features/utils.py:19
↓ 1 callersFunctionload_scalers
Loads the scalers a model was trained with. :param path: Path where model checkpoint is saved. :return: A tuple with the data scaler and
chemprop/utils.py:120
↓ 1 callersFunctionlog_cluster_stats
Logs and returns statistics about counts and average target values in molecular clusters. :param data: A MoleculeDataset. :param index_s
chemprop/data/scaffold.py:242
↓ 1 callersFunctionmain
()
KGembedding/owl2vec_star/cli.py:15
↓ 1 callersFunctionmake_predictions
Makes predictions. If smiles is provided, makes predictions on smiles. Otherwise makes predictions on args.test_data. :param args: Arguments
chemprop/train/make_predictions.py:17
↓ 1 callersFunctionmatch_fg
(mol)
chemprop/features/featurization.py:155
↓ 1 callersFunctionmodify_predict_args
Modifies and validates predicting args in place. :param args: Arguments.
chemprop/parsing.py:226
↓ 1 callersFunctionmulti_task_random_forest
(train_data: MoleculeDataset, test_data: MoleculeDataset,
chemprop/random_forest.py:61
↓ 1 callersFunctionnormalize
German and Frence have different vowels than English. This utilization removes all the non-unicode characters. Example: āáǎà -->
chemprop/torchlight/utils.py:42
↓ 1 callersFunctionpre_training
Trains a model and returns test scores on the model checkpoint with the highest validation score. :param args: Arguments. :param logger:
chemprop/train/run_training.py:317
↓ 1 callersFunctionpretrain
(args: Namespace, logger: Logger = None)
pretrain.py:16
↓ 1 callersFunctionprompt_generator_output
(args)
chemprop/models/model.py:235
↓ 1 callersFunctionrdflib_to_kg
Convert a rdflib.Graph (located at file) to our KnowledgeGraph.
KGembedding/owl2vec_star/rdf2vec/converters.py:19
↓ 1 callersFunctionrelation_features
(e1,e2)
chemprop/features/featurization.py:144
↓ 1 callersFunctionrun_random_forest
(args: Namespace, logger: Logger = None)
chemprop/random_forest.py:97
↓ 1 callersFunctionrun_stat
k-time independent runs
train.py:18
↓ 1 callersFunctionscaffold_split
Split a dataset by scaffold so that no molecules sharing a scaffold are in the same split. :param data: A MoleculeDataset. :param sizes:
chemprop/data/scaffold.py:53
↓ 1 callersFunctionscaffold_to_smiles
Computes scaffold for each smiles string and returns a mapping from scaffolds to sets of smiles. :param mols: A list of smiles strings or RD
chemprop/data/scaffold.py:33
↓ 1 callersMethodset_targets
Sets the targets for each molecule in the dataset. Assumes the targets are aligned with the datapoints. :param targets: A list of li
chemprop/data/data.py:210
↓ 1 callersFunctionsingle_task_random_forest
(train_data: MoleculeDataset, test_data: MoleculeDataset,
chemprop/random_forest.py:18
↓ 1 callersFunctiontrain
Trains a model for an epoch. :param model: Model. :param data: A MoleculeDataset (or a list of MoleculeDatasets if using moe). :para
chemprop/train/train.py:17
↓ 1 callersMethodtransform
Construct a feature vector for the provided instances. Parameters ---------- graphs: graph.KnowledgeGraph The gra
KGembedding/owl2vec_star/rdf2vec/embed.py:98
Method__call__
Looks up indices of text tokens according to the vocabulary. Parameters ---------- tokens : str or list of strs A
chemprop/torchlight/vocab.py:114
Method__eq__
(self, other)
KGembedding/owl2vec_star/rdf2vec/graph.py:16
Method__getitem__
Gets one or more MoleculeDatapoints via an index or slice. :param item: An index (int) or a slice object. :return: A Molecul
chemprop/data/data.py:237
← previousnext →101–200 of 355, ranked by callers