Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HICAI-ZJU/KANO
/ functions
Functions
355 in github.com/HICAI-ZJU/KANO
⨍
Functions
355
◇
Types & classes
46
↳
Endpoints
2
↓ 29 callers
Method
queryGraph
(self, query)
KGembedding/owl2vec_star/lib/Onto_Access.py:314
↓ 27 callers
Method
format
(self, record)
chemprop/torchlight/logger.py:23
↓ 15 callers
Method
update
Updates the metric's state using the passed batch output. This is called once for each batch. Args: output: the i
chemprop/torchlight/metric.py:31
↓ 12 callers
Method
fit
Fit the embedding network based on provided instances. Parameters ---------- graphs: graph.KnowledgeGraph The gra
KGembedding/owl2vec_star/rdf2vec/embed.py:72
↓ 12 callers
Method
getOntology
(self)
KGembedding/owl2vec_star/lib/Onto_Access.py:103
↓ 12 callers
Method
smiles
Returns the smiles strings associated with the molecules. :return: A list of smiles strings.
chemprop/data/data.py:120
↓ 10 callers
Function
label_item
(item)
KGembedding/owl2vec_star/owl2vec_star.py:189
↓ 9 callers
Method
__addTriple__
(self, subject_uri, predicate_uri, object_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:680
↓ 9 callers
Method
__processPropertyResults__
(self, prop_iri, results, are_tbox_results, add_triple)
KGembedding/owl2vec_star/lib/Onto_Projection.py:687
↓ 9 callers
Method
features
Returns the features associated with each molecule (if they exist). :return: A list of 1D numpy arrays containing the features for e
chemprop/data/data.py:136
↓ 9 callers
Method
shuffle
Shuffles the dataset. :param seed: Optional random seed.
chemprop/data/data.py:171
↓ 9 callers
Method
targets
Returns the targets associated with each molecule. :return: A list of lists of floats containing the targets.
chemprop/data/data.py:147
↓ 8 callers
Method
__addSubsumptionTriple__
(self, subclass_uri, superclass_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:764
↓ 7 callers
Method
evaluate
(self, model, eva_samples)
KGembedding/owl2vec_star/lib/Evaluator.py:20
↓ 7 callers
Method
extract_random_walks
Extract random walks of depth - 1 hops rooted in root.
KGembedding/owl2vec_star/rdf2vec/walkers/random.py:11
↓ 7 callers
Function
get_data
Gets smiles string and target values (and optionally compound names if provided) from a CSV file. :param path: Path to a CSV file. :para
chemprop/data/utils.py:84
↓ 7 callers
Function
onek_encoding_unk
Creates a one-hot encoding. :param value: The value for which the encoding should be one. :param choices: A list of possible values.
chemprop/features/featurization.py:67
↓ 7 callers
Function
pre_process_words
(words)
KGembedding/owl2vec_star/lib/Label.py:26
↓ 6 callers
Method
__addInverseSubsumptionTriple__
(self, subclass_uri, superclass_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:768
↓ 6 callers
Method
__convertExpressionToManchesterSyntax__
(self, cls_exp)
KGembedding/owl2vec_star/lib/Onto_Projection.py:248
↓ 6 callers
Method
add_edge
Add a uni-directional edge.
KGembedding/owl2vec_star/rdf2vec/graph.py:44
↓ 6 callers
Method
add_vertex
Add a vertex to the Knowledge Graph.
KGembedding/owl2vec_star/rdf2vec/graph.py:37
↓ 6 callers
Function
evaluate_predictions
Evaluates predictions using a metric function and filtering out invalid targets. :param preds: A list of lists of shape (data_size, num_task
chemprop/train/evaluate.py:10
↓ 6 callers
Method
fit_transform
First apply fit to create a Word2Vec model and then generate embeddings for the provided instances. Parameters ----------
KGembedding/owl2vec_star/rdf2vec/embed.py:125
↓ 6 callers
Method
get_neighbors
Get all the neighbors of vertex (vertex -> neighbor).
KGembedding/owl2vec_star/rdf2vec/graph.py:54
↓ 6 callers
Function
index_select_ND
Selects the message features from source corresponding to the atom or bond indices in index. :param source: A tensor of shape (num_bonds, hi
chemprop/nn_utils.py:34
↓ 6 callers
Function
makedirs
Creates a directory given a path to either a directory or file. If a directory is provided, creates that directory. If a file is provided (i
chemprop/utils.py:19
↓ 5 callers
Method
num_tasks
Returns the number of prediction tasks. :return: The number of tasks.
chemprop/data/data.py:155
↓ 5 callers
Method
step
Updates the learning rate by taking a step. :param current_step: Optionally specify what step to set the learning rate to. I
chemprop/nn_utils.py:193
↓ 4 callers
Function
build_pretrain_model
Builds a MoleculeModel, which is a message passing neural network + feed-forward layers. :param args: Arguments. :return: A MoleculeMode
chemprop/models/model.py:139
↓ 4 callers
Method
fit
Learns means and standard deviations across the 0th axis. :param X: A list of lists of floats. :return: The fitted StandardS
chemprop/data/scaler.py:25
↓ 4 callers
Method
normalize_features
Normalizes the features of the dataset using a StandardScaler (subtract mean, divide by standard deviation). If a scaler is provided
chemprop/data/data.py:181
↓ 4 callers
Function
predict
Makes predictions on a dataset using an ensemble of models. :param model: A model. :param data: A MoleculeDataset. :param batch_size
chemprop/train/predict.py:11
↓ 4 callers
Method
sort
Sorts the dataset using the provided key. :param key: A function on a MoleculeDatapoint to determine the sorting order.
chemprop/data/data.py:221
↓ 4 callers
Function
split_data
Splits data into training, validation, and test splits. :param data: A MoleculeDataset. :param split_type: Split type. :param sizes:
chemprop/data/utils.py:192
↓ 3 callers
Method
__addClassTypeTriple__
(self, indiv_uri, class_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:772
↓ 3 callers
Method
__addInverseClassTypeTriple__
(self, indiv_uri, class_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:777
↓ 3 callers
Method
__init__
Initializes the MoleculeModel. :param classification: Whether the model is a classification model.
chemprop/models/model.py:21
↓ 3 callers
Method
__populateDictionary__
(self, annotation_uris, dictionary)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1453
↓ 3 callers
Function
build_model
Builds a MoleculeModel, which is a message passing neural network + feed-forward layers. :param args: Arguments. :return: A MoleculeMode
chemprop/models/model.py:118
↓ 3 callers
Method
createManchesterSyntaxAxioms
(self)
KGembedding/owl2vec_star/lib/Onto_Projection.py:122
↓ 3 callers
Method
extract
(self, graph, instances)
KGembedding/owl2vec_star/rdf2vec/walkers/walker.py:29
↓ 3 callers
Method
extractEntityURIs
(self)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1491
↓ 3 callers
Method
extractProjection
(self)
KGembedding/owl2vec_star/lib/Onto_Projection.py:296
↓ 3 callers
Method
getClasses
(self)
KGembedding/owl2vec_star/lib/Onto_Access.py:295
↓ 3 callers
Function
get_activation_function
Gets an activation function module given the name of the activation. :param activation: The name of the activation function. :return: Th
chemprop/nn_utils.py:55
↓ 3 callers
Function
get_atom_fdim
Gets the dimensionality of atom features. :param: Arguments.
chemprop/features/featurization.py:49
↓ 3 callers
Function
get_bond_fdim
Gets the dimensionality of bond features. :param: Arguments.
chemprop/features/featurization.py:58
↓ 3 callers
Function
get_header
Returns the header of a data CSV file. :param path: Path to a CSV file. :return: A list of strings containing the strings in the comma-s
chemprop/data/utils.py:32
↓ 3 callers
Function
get_task_names
Gets the task names from a data CSV file. :param path: Path to a CSV file. :param use_compound_names: Whether file has compound names in
chemprop/data/utils.py:18
↓ 3 callers
Method
indexAnnotations
(self)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1418
↓ 3 callers
Function
initialize_exp
Initialize the experiment: - dump parameters - create a logger
chemprop/torchlight/logger.py:74
↓ 3 callers
Function
load_checkpoint
Loads a model checkpoint. :param path: Path where checkpoint is saved. :param current_args: The current arguments. Replaces the argument
chemprop/utils.py:64
↓ 3 callers
Function
modify_train_args
Modifies and validates training arguments in place. :param args: Arguments.
chemprop/parsing.py:254
↓ 3 callers
Function
param_count
Determines number of trainable parameters. :param model: An nn.Module. :return: The number of trainable parameters.
chemprop/nn_utils.py:24
↓ 3 callers
Function
parse_train_args
Parses arguments for training (includes modifying/validating arguments). :return: A Namespace containing the parsed, modified, and validated
chemprop/parsing.py:322
↓ 3 callers
Method
saveProjectionGraph
(self, file_projection)
KGembedding/owl2vec_star/lib/Onto_Projection.py:672
↓ 2 callers
Function
URI_parse
Parse a URI: remove the prefix, parse the name part (Camel cases are plit)
KGembedding/owl2vec_star/lib/Label.py:5
↓ 2 callers
Method
__addSameAsTriple__
(self, indiv_uri1, indiv_uri2)
KGembedding/owl2vec_star/lib/Onto_Projection.py:781
↓ 2 callers
Method
__convertAxtiomToManchesterSyntax__
(self, cls_iri, cls_exp, axiom_type)
KGembedding/owl2vec_star/lib/Onto_Projection.py:168
↓ 2 callers
Method
__convertListToManchesterSyntax__
(self, cls_exp, connector)
KGembedding/owl2vec_star/lib/Onto_Projection.py:190
↓ 2 callers
Method
__extractTriplesForRestriction__
(self, cls, cls_exp_rest)
KGembedding/owl2vec_star/lib/Onto_Projection.py:843
↓ 2 callers
Method
__hash__
(self)
KGembedding/owl2vec_star/rdf2vec/graph.py:21
↓ 2 callers
Method
__init__
(self, args: Namespace, atom_fdim: int = None, bond_fdim: i
chemprop/models/cmpn.py:199
↓ 2 callers
Method
__init__
(self)
chemprop/torchlight/metric.py:19
↓ 2 callers
Method
__init__
(self, urionto)
KGembedding/owl2vec_star/lib/Onto_Access.py:27
↓ 2 callers
Method
_take_n_grams
(self, walk)
KGembedding/owl2vec_star/rdf2vec/walkers/ngrams.py:14
↓ 2 callers
Function
add_functional_prompt
(model, args)
chemprop/models/model.py:238
↓ 2 callers
Function
atom_features
Builds a feature vector for an atom. :param atom: An RDKit atom. :param functional_groups: A k-hot vector indicating the functional grou
chemprop/features/featurization.py:83
↓ 2 callers
Function
bond_features
Builds a feature vector for a bond. :param bond: A RDKit bond. :return: A list containing the bond features.
chemprop/features/featurization.py:105
↓ 2 callers
Method
compound_names
Returns the compound names associated with the molecule (if they exist). :return: A list of compound names or None if the dataset do
chemprop/data/data.py:109
↓ 2 callers
Function
construct_kg_walker
(onto_file, walker_type, walk_depth)
KGembedding/owl2vec_star/lib/RDF2Vec_Embed.py:11
↓ 2 callers
Method
create_encoder
Creates the message passing encoder for the model. :param args: Arguments.
chemprop/models/model.py:38
↓ 2 callers
Method
create_ffn
Creates the feed-forward network for the model. :param args: Arguments.
chemprop/models/model.py:49
↓ 2 callers
Function
create_kg
(triples, label_predicates)
KGembedding/owl2vec_star/rdf2vec/converters.py:4
↓ 2 callers
Function
filter_invalid_smiles
Filters out invalid SMILES. :param data: A MoleculeDataset. :return: A MoleculeDataset with only valid molecules.
chemprop/data/utils.py:72
↓ 2 callers
Method
getAnnotationURIsForLexicalAnnotations
(self)
KGembedding/owl2vec_star/lib/Onto_Annotations.py:113
↓ 2 callers
Method
getClassURIs
(self)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1504
↓ 2 callers
Method
getDataProperties
(self)
KGembedding/owl2vec_star/lib/Onto_Access.py:298
↓ 2 callers
Method
getIndividualURIs
(self)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1508
↓ 2 callers
Method
getObjectProperties
(self)
KGembedding/owl2vec_star/lib/Onto_Access.py:301
↓ 2 callers
Method
getQueryDataRoleAssertions
(self, prop_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1107
↓ 2 callers
Method
getQueryForAllClassTypes
(self)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1037
↓ 2 callers
Method
getQueryForAnnotations
(self, ann_prop_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1397
↓ 2 callers
Method
getQueryForAtomicEquivalentObjectProperties
(self, prop_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:999
↓ 2 callers
Method
getQueryForDomain
(self, prop_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1143
↓ 2 callers
Method
getQueryForInverses
(self, prop_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1172
↓ 2 callers
Method
getQueryObjectRoleAssertions
(self, prop_uri)
KGembedding/owl2vec_star/lib/Onto_Projection.py:1097
↓ 2 callers
Function
get_available_features_generators
Returns the names of available features generators.
chemprop/features/features_generators.py:43
↓ 2 callers
Method
get_components
Returns the components of the BatchMolGraph. :return: A tuple containing PyTorch tensors with the atom features, bond features, and
chemprop/features/featurization.py:396
↓ 2 callers
Function
get_data_from_smiles
Converts SMILES to a MoleculeDataset. :param smiles: A list of SMILES strings. :param skip_invalid_smiles: Whether to skip and filter ou
chemprop/data/utils.py:168
↓ 2 callers
Function
get_emb
Makes predictions on a dataset using an ensemble of models. :param model: A model. :param data: A MoleculeDataset. :param batch_size
chemprop/train/predict.py:57
↓ 2 callers
Function
get_features_generator
Gets a registered FeaturesGenerator by name. :param features_generator_name: The name of the FeaturesGenerator. :return: The desired Fea
chemprop/features/features_generators.py:29
↓ 2 callers
Function
get_metric_func
Gets the metric function corresponding to a given metric name. :param metric: Metric name. :return: A metric function which takes as arg
chemprop/utils.py:229
↓ 2 callers
Function
get_rdf2vec_walks
(onto_file, walker_type, walk_depth, classes)
KGembedding/owl2vec_star/lib/RDF2Vec_Embed.py:46
↓ 2 callers
Function
initialize_weights
Initializes the weights of a model in place. :param model: An nn.Module.
chemprop/nn_utils.py:80
↓ 2 callers
Method
inverse_transform
Performs the inverse transformation by multiplying by the standard deviations and adding the means. :param X: A list of lists of flo
chemprop/data/scaler.py:54
↓ 2 callers
Method
loadOntology
(self, reasoner=Reasoner.NONE, memory_java='10240')
KGembedding/owl2vec_star/lib/Onto_Access.py:42
↓ 2 callers
Function
load_args
Loads the arguments a model was trained with. :param path: Path where model checkpoint is saved. :return: The arguments Namespace that t
chemprop/utils.py:138
↓ 2 callers
Function
log_scaffold_stats
Logs and returns statistics about counts and average target values in molecular scaffolds. :param data: A MoleculeDataset. :param index_
chemprop/data/scaffold.py:125
next →
1–100 of 355, ranked by callers