Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepGraphLearning/graphvite
/ functions
Functions
329 in github.com/DeepGraphLearning/graphvite
⨍
Functions
329
◇
Types & classes
71
↓ 42 callers
Method
resize
Resize the memory space. Reallocate only if the capacity is not enough. */
include/base/memory.h:137
↓ 30 callers
Method
info
Return information about the graph */
include/core/graph.h:118
↓ 28 callers
Method
relpath
(self, path)
python/graphvite/dataset.py:123
↓ 15 callers
Method
__init__
(self)
python/graphvite/dataset.py:580
↓ 15 callers
Method
name
include/core/graph.h:103
↓ 10 callers
Method
reallocate
Reallocate the memory space */
include/base/memory.h:108
↓ 9 callers
Method
to_host
Copy the memory space back from GPU */
include/base/memory.h:165
↓ 9 callers
Method
tokenize
(self, str)
python/graphvite/application/application.py:197
↓ 8 callers
Method
load
load(**kwargs) Load a graph from file or Python object. Arguments depend on the underlying graph type.
python/graphvite/application/application.py:79
↓ 8 callers
Function
signature
include/bind.h:83
↓ 7 callers
Method
clear
Clear the graph and free CPU memory */
include/core/graph.h:76
↓ 7 callers
Method
name_map
(self, dicts, names)
python/graphvite/application/application.py:204
↓ 6 callers
Method
link_prediction_split
Divide a normal graph into a train split and several test splits for link prediction use. Each test split contains half true and half
python/graphvite/dataset.py:318
↓ 5 callers
Function
assert_in
(candidates, **kwargs)
python/graphvite/util.py:54
↓ 5 callers
Method
copy
Copy data from another memory */
include/base/memory.h:96
↓ 5 callers
Function
numpy_view
include/bind.h:93
↓ 5 callers
Method
scatter
Scatter data to a pool according to an index mapping */
include/base/memory.h:208
↓ 5 callers
Method
to_device_async
Copy the memory space to GPU (asynchronous) */
include/base/memory.h:155
↓ 4 callers
Method
clear
Free CPU and GPU memory, except the embeddings on CPU */
include/core/solver.h:805
↓ 4 callers
Method
get_mapping
(self, id2name, name2id)
python/graphvite/application/application.py:189
↓ 4 callers
Function
header
include/util/io.h:94
↓ 4 callers
Method
readable_label
(self, labels, save_file, hierarchy=False)
python/graphvite/dataset.py:910
↓ 3 callers
Method
build
build(**kwargs) Build the solver from the graph. Arguments depend on the underlying solver type.
python/graphvite/application/application.py:91
↓ 3 callers
Method
edge_split
Divide a graph into several splits. Parameters: graph_file (str): graph file files (list of str): file names
python/graphvite/dataset.py:295
↓ 3 callers
Method
gather
Gather data from a pool according to an index mapping. Automatically resize the memory when necessary. */
include/base/memory.h:194
↓ 3 callers
Method
generate_math
(self, save_file, num_triplet)
python/graphvite/dataset.py:602
↓ 3 callers
Method
get_batch_size
(self, sample_size)
python/graphvite/application/application.py:948
↓ 3 callers
Function
get_config_path
()
python/graphvite/cmd.py:35
↓ 3 callers
Method
get_name
(self, function, instance)
python/graphvite/util.py:139
↓ 3 callers
Method
gpu_map
(self, func, settings)
python/graphvite/application/application.py:221
↓ 3 callers
Method
local_files
(self)
python/graphvite/dataset.py:213
↓ 3 callers
Method
swap
Swap two memory spaces */
include/base/memory.h:69
↓ 3 callers
Method
top_k_label
Extract top-k labels. Parameters: label_file (str): label file save_file (str): save file k (int
python/graphvite/dataset.py:238
↓ 3 callers
Method
train
train(**kwargs) Train embeddings with the solver. Arguments depend on the underlying solver type.
python/graphvite/application/application.py:100
↓ 2 callers
Method
Optimizer
Construct a default optimizer */
include/core/optimizer.h:123
↓ 2 callers
Method
build
* @brief Determine and allocate all resources for the solver * @param _graph graph * @param _optimizer optimizer or learning rate * @pa
include/core/solver.h:287
↓ 2 callers
Method
count
Count edges for each sample block. This function can be parallelized. */
include/core/solver.h:1058
↓ 2 callers
Method
csv2txt
Convert ``csv`` to ``txt``. Parameters: csv_file: csv file txt_file: txt file
python/graphvite/dataset.py:225
↓ 2 callers
Method
download
(self, url)
python/graphvite/dataset.py:126
↓ 2 callers
Method
evaluate
evaluate(task, **kwargs) Evaluate the learned embeddings on a downstream task. Arguments depend on the underlying graph type and the t
python/graphvite/application/application.py:108
↓ 2 callers
Method
extract
(self, zip_file, member=None)
python/graphvite/dataset.py:140
↓ 2 callers
Function
find_all_templates
(module)
python/graphvite/helper.py:45
↓ 2 callers
Method
generate_one_vs_rest
(self, H, R, T, num_entity, target="both")
python/graphvite/application/application.py:963
↓ 2 callers
Method
get_name
(self, synset)
python/graphvite/dataset.py:906
↓ 2 callers
Method
image_feature_data
(self, image_path)
python/graphvite/dataset.py:944
↓ 2 callers
Method
load_alias
(self, alias_file)
python/graphvite/dataset.py:720
↓ 2 callers
Function
load_config
(config_file)
python/graphvite/cmd.py:82
↓ 2 callers
Function
load_data
(file_name)
python/graphvite/cmd.py:168
↓ 2 callers
Method
load_images
(self, *batch_files)
python/graphvite/dataset.py:816
↓ 2 callers
Method
load_labels
(self, meta_file, *batch_files)
python/graphvite/dataset.py:824
↓ 2 callers
Method
load_model
Load model in pickle format. Parameters: file_name (str): file name:
python/graphvite/application/application.py:132
↓ 2 callers
Function
make_helper_class
(module, name, target_module, template_keys, template_values)
python/graphvite/helper.py:108
↓ 2 callers
Method
predict
* @brief Predict logits for samples * @param _samples edge samples */
include/core/solver.h:660
↓ 2 callers
Method
save_model
Save model in pickle format. Parameters: file_name (str): file name save_hyperparameter (bool, optional): sa
python/graphvite/application/application.py:146
↓ 2 callers
Method
set_format
Set the format for parsing input data. Parameters: delimiters (str, optional): string of delimiter characters
python/graphvite/application/application.py:66
↓ 2 callers
Function
size_string
include/util/io.h:68
↓ 2 callers
Function
yes_no
include/util/io.h:64
↓ 1 callers
Function
GiB
include/util/common.h:40
↓ 1 callers
Method
SGD
include/core/optimizer.h:274
↓ 1 callers
Method
__init__
(self, score_function, *embeddings, **kwargs)
python/graphvite/application/network.py:49
↓ 1 callers
Method
__new__
(cls, array)
python/graphvite/util.py:95
↓ 1 callers
Method
apply_schedule
Compute current learning rate according to the schedule */
include/core/optimizer.h:132
↓ 1 callers
Method
backward
include/instance/model/graph.h:48
↓ 1 callers
Function
block
include/util/io.h:86
↓ 1 callers
Function
find_all_names
(module)
python/graphvite/helper.py:36
↓ 1 callers
Method
flatten
Flatten the adjacency list to an edge list */
include/core/graph.h:87
↓ 1 callers
Method
generate_mask
(self, H, R, T, exclude_H, exclude_T, num_entity, target="both")
python/graphvite/application/application.py:979
↓ 1 callers
Function
generate_one_vs_rest
(indexes, labels)
python/graphvite/application/application.py:462
↓ 1 callers
Function
get_any_instantiation
(module, name)
python/graphvite/helper.py:55
↓ 1 callers
Method
get_file
(self, key)
python/graphvite/dataset.py:182
↓ 1 callers
Method
get_graph
(self, **kwargs)
python/graphvite/application/application.py:60
↓ 1 callers
Function
get_instantiation_info
(module, name, template_keys)
python/graphvite/helper.py:62
↓ 1 callers
Function
get_parser
()
python/graphvite/cmd.py:46
↓ 1 callers
Method
get_solver
(self, **kwargs)
python/graphvite/application/application.py:63
↓ 1 callers
Method
image_feature_data
Compute feature vectors for an image dataset using a neural network. Parameters: dataset (torch.utils.data.Dataset): dat
python/graphvite/dataset.py:363
↓ 1 callers
Method
import_wordnet
(self)
python/graphvite/dataset.py:893
↓ 1 callers
Method
induced_graph
Induce a subgraph from labeled nodes. All edges in the induced graph have at least one labeled node. Parameters: graph_f
python/graphvite/dataset.py:272
↓ 1 callers
Method
info
Return information about the solver */
include/core/solver.h:506
↓ 1 callers
Function
readable_list
(iterable)
python/graphvite/util.py:56
↓ 1 callers
Function
recursive_default
(obj, default)
python/graphvite/util.py:32
↓ 1 callers
Method
sample
Sample edges. This function can be parallelized. */
include/core/solver.h:1012
↓ 1 callers
Method
scatter_sub
Scatter data to a pool by substraction, according to an index mapping */
include/base/memory.h:232
↓ 1 callers
Method
set_parameters
(self, model)
python/graphvite/application/application.py:288
↓ 1 callers
Function
signature
(name, *args)
python/graphvite/helper.py:26
↓ 1 callers
Method
visualization
Visualize learned 2D or 3D coordinates. Parameters: Y (list of str, optional): labels of vectors file_name (
python/graphvite/application/application.py:1120
Method
AdaGrad
include/core/optimizer.h:291
Method
Adam
include/core/optimizer.h:312
Method
ComplEx
(heads, relations, tails)
python/graphvite/application/network.py:105
Function
CudaCheck
include/util/debug.h:30
Function
CurandCheck
include/util/debug.h:35
Method
DistMult
(heads, relations, tails)
python/graphvite/application/network.py:99
Method
FOR
include/instance/model/graph.h:52
Method
FOR
include/instance/model/visualization.h:52
Method
FOR
include/instance/model/knowledge_graph.h:55
Method
FOR
include/instance/model/knowledge_graph.h:135
Method
FOR
include/instance/model/knowledge_graph.h:362
Method
GraphMixin
include/core/graph.h:71
Function
KiB
include/util/common.h:32
Method
LINE
(heads, tails)
python/graphvite/application/network.py:70
Method
LRSchedule
Construct a learning rate schedule */
include/core/optimizer.h:50
next →
1–100 of 329, ranked by callers