repo stringlengths 1 99 | file stringlengths 13 215 | code stringlengths 12 59.2M | file_length int64 12 59.2M | avg_line_length float64 3.82 1.48M | max_line_length int64 12 2.51M | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
DGNN_analysis | DGNN_analysis-main/TGN/modules/embedding_module.py | import torch
from torch import nn
import numpy as np
import math
from model.temporal_attention import TemporalAttentionLayer
class EmbeddingModule(nn.Module):
def __init__(self, node_features, edge_features, memory, neighbor_finder, time_encoder, n_layers,
n_node_features, n_edge_features, n_time_fe... | 13,853 | 47.440559 | 129 | py |
DGNN_analysis | DGNN_analysis-main/TGN/modules/memory_updater.py | from torch import nn
import torch
class MemoryUpdater(nn.Module):
def update_memory(self, unique_node_ids, unique_messages, timestamps):
pass
class SequenceMemoryUpdater(MemoryUpdater):
def __init__(self, memory, message_dimension, memory_dimension, device):
super(SequenceMemoryUpdater, self).__init__()... | 2,828 | 40 | 120 | py |
DGNN_analysis | DGNN_analysis-main/TGN/modules/message_aggregator.py | from collections import defaultdict
import torch
import numpy as np
class MessageAggregator(torch.nn.Module):
"""
Abstract class for the message aggregator module, which given a batch of node ids and
corresponding messages, aggregates messages with the same node id.
"""
def __init__(self, device):
super... | 3,254 | 34.769231 | 97 | py |
DGNN_analysis | DGNN_analysis-main/TGN/evaluation/evaluation.py | import math
import numpy as np
import torch
from sklearn.metrics import average_precision_score, roc_auc_score
def eval_edge_prediction(model, negative_edge_sampler, data, n_neighbors, batch_size=200):
# Ensures the random sampler uses a seed for evaluation (i.e. we sample always the same
# negatives for validat... | 3,406 | 43.246753 | 102 | py |
DGNN_analysis | DGNN_analysis-main/TGN/Nsight_Profile/train_self_supervised.py | import math
import logging
import time
import sys
import argparse
import torch
import numpy as np
import pickle
from pathlib import Path
import os
from evaluation.evaluation import eval_edge_prediction
from model.tgn import TGN
from utils.utils import EarlyStopMonitor, RandEdgeSampler, get_neighbor_finder
from utils.d... | 16,608 | 43.52815 | 140 | py |
DGNN_analysis | DGNN_analysis-main/TGN/utils/utils.py | import numpy as np
import torch
class MergeLayer(torch.nn.Module):
def __init__(self, dim1, dim2, dim3, dim4):
super().__init__()
self.fc1 = torch.nn.Linear(dim1 + dim2, dim3)
self.fc2 = torch.nn.Linear(dim3, dim4)
self.act = torch.nn.ReLU()
torch.nn.init.xavier_normal_(self.fc1.weight)
tor... | 7,321 | 38.365591 | 190 | py |
DGNN_analysis | DGNN_analysis-main/TGN/model/tgn.py | import logging
import numpy as np
import torch
from collections import defaultdict
from utils.utils import MergeLayer
from modules.memory import Memory
from modules.message_aggregator import get_message_aggregator
from modules.message_function import get_message_function
from modules.memory_updater import get_memory_u... | 14,606 | 51.354839 | 114 | py |
DGNN_analysis | DGNN_analysis-main/TGN/model/time_encoding.py | import torch
import numpy as np
class TimeEncode(torch.nn.Module):
# Time Encoding proposed by TGAT
def __init__(self, dimension):
super(TimeEncode, self).__init__()
self.dimension = dimension
self.w = torch.nn.Linear(1, dimension)
self.w.weight = torch.nn.Parameter((torch.from_numpy(1 / 10 ** n... | 775 | 28.846154 | 97 | py |
DGNN_analysis | DGNN_analysis-main/TGN/model/temporal_attention.py | import torch
from torch import nn
from utils.utils import MergeLayer
class TemporalAttentionLayer(torch.nn.Module):
"""
Temporal attention layer. Return the temporal embedding of a node given the node itself,
its neighbors and the edge timestamps.
"""
def __init__(self, n_node_features, n_neighbors_featu... | 4,387 | 47.21978 | 102 | py |
DGNN_analysis | DGNN_analysis-main/TGN/Pytorch_Profile/train_self_supervised.py | import math
import logging
import time
import sys
import argparse
import torch
import numpy as np
import pickle
from pathlib import Path
import torchvision.models as models
from torch.profiler import profile, record_function, ProfilerActivity
from torch.profiler import schedule
from evaluation.evaluation import eval... | 17,236 | 41.771712 | 140 | py |
DGNN_analysis | DGNN_analysis-main/MolDGNN/test.py | # This material was prepared as an account of work sponsored by an agency of the
# United States Government. Neither the United States Government nor the United
# States Department of Energy, nor Battelle, nor any of their employees, nor any
# jurisdiction or organization that has cooperated in the development of thes... | 4,651 | 41.678899 | 132 | py |
DGNN_analysis | DGNN_analysis-main/MolDGNN/utils.py | # This material was prepared as an account of work sponsored by an agency of the
# United States Government. Neither the United States Government nor the United
# States Department of Energy, nor Battelle, nor any of their employees, nor any
# jurisdiction or organization that has cooperated in the development of thes... | 3,268 | 35.322222 | 91 | py |
DGNN_analysis | DGNN_analysis-main/MolDGNN/model.py | # This material was prepared as an account of work sponsored by an agency of the
# United States Government. Neither the United States Government nor the United
# States Department of Energy, nor Battelle, nor any of their employees, nor any
# jurisdiction or organization that has cooperated in the development of th... | 4,000 | 44.988506 | 118 | py |
DGNN_analysis | DGNN_analysis-main/MolDGNN/finetune.py | # This material was prepared as an account of work sponsored by an agency of the
# United States Government. Neither the United States Government nor the United
# States Department of Energy, nor Battelle, nor any of their employees, nor any
# jurisdiction or organization that has cooperated in the development of thes... | 5,328 | 44.939655 | 112 | py |
DGNN_analysis | DGNN_analysis-main/MolDGNN/train.py | # This material was prepared as an account of work sponsored by an agency of the
# United States Government. Neither the United States Government nor the United
# States Department of Energy, nor Battelle, nor any of their employees, nor any
# jurisdiction or organization that has cooperated in the development of th... | 5,546 | 43.02381 | 112 | py |
DGNN_analysis | DGNN_analysis-main/MolDGNN/Nsight_Profile/test.py | # This material was prepared as an account of work sponsored by an agency of the
# United States Government. Neither the United States Government nor the United
# States Department of Energy, nor Battelle, nor any of their employees, nor any
# jurisdiction or organization that has cooperated in the development of thes... | 5,986 | 39.727891 | 132 | py |
DGNN_analysis | DGNN_analysis-main/MolDGNN/Pytorch_Profile/test.py | # This material was prepared as an account of work sponsored by an agency of the
# United States Government. Neither the United States Government nor the United
# States Department of Energy, nor Battelle, nor any of their employees, nor any
# jurisdiction or organization that has cooperated in the development of thes... | 6,610 | 40.062112 | 140 | py |
DGNN_analysis | DGNN_analysis-main/TGAT/module.py | import logging
import numpy as np
import torch
import argparse
import torch.nn as nn
import torch.nn.functional as F
from torch.profiler import profile, record_function, ProfilerActivity
#parser = argparse.ArgumentParser('Interface for TGAT experiments on link predictions')
#args = parser.parse_args()
class MergeLay... | 25,196 | 41.70678 | 151 | py |
DGNN_analysis | DGNN_analysis-main/TGAT/graph.py | import numpy as np
import torch
class NeighborFinder:
def __init__(self, adj_list, uniform=False):
"""
Params
------
node_idx_l: List[int]
node_ts_l: List[int]
off_set_l: List[int], such that node_idx_l[off_set_l[i]:off_set_l[i + 1]] = adjacent_list[i]
"""
... | 6,042 | 37.246835 | 136 | py |
DGNN_analysis | DGNN_analysis-main/TGAT/learn_edge.py | """Unified interface to all dynamic graph model experiments"""
import math
import logging
import time
import random
import sys
import argparse
import torch
import pandas as pd
import numpy as np
#import numba
from sklearn.metrics import average_precision_score
from sklearn.metrics import f1_score
from sklearn.metrics... | 17,548 | 43.767857 | 222 | py |
DGNN_analysis | DGNN_analysis-main/JODIE/library_models.py | '''
This is a supporting library with the code of the model.
Paper: Predicting Dynamic Embedding Trajectory in Temporal Interaction Networks. S. Kumar, X. Zhang, J. Leskovec. ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD), 2019.
'''
from __future__ import division
import torch
impor... | 9,283 | 40.262222 | 202 | py |
DGNN_analysis | DGNN_analysis-main/JODIE/evaluate_interaction_prediction.py | '''
This code evaluates the validation and test performance in an epoch of the model trained in jodie.py.
The task is: interaction prediction, i.e., predicting which item will a user interact with?
To calculate the performance for one epoch:
$ python evaluate_interaction_prediction.py --network reddit --model jodie -... | 11,773 | 49.102128 | 251 | py |
DGNN_analysis | DGNN_analysis-main/JODIE/evaluate_interaction_prediction_prof.py | '''
This code evaluates the validation and test performance in an epoch of the model trained in jodie.py.
The task is: interaction prediction, i.e., predicting which item will a user interact with?
To calculate the performance for one epoch:
$ python evaluate_interaction_prediction.py --network reddit --model jodie -... | 15,833 | 49.266667 | 251 | py |
DGNN_analysis | DGNN_analysis-main/JODIE/evaluate_interaction_prediction_prof_tBatch.py | '''
This code evaluates the validation and test performance in an epoch of the model trained in jodie.py.
The task is: interaction prediction, i.e., predicting which item will a user interact with?
To calculate the performance for one epoch:
$ python evaluate_interaction_prediction.py --network reddit --model jodie -... | 14,527 | 50.885714 | 251 | py |
DGNN_analysis | DGNN_analysis-main/JODIE/evaluate_state_change_prediction.py | '''
This code evaluates the validation and test performance in an epoch of the model trained in jodie.py.
The task is: user state change prediction, i.e., when the state of a user changes from one to another, say normal to abnormal.
To calculate the performance for one epoch:
$ python evaluate_state_change_prediction... | 11,594 | 47.924051 | 251 | py |
DGNN_analysis | DGNN_analysis-main/JODIE/jodie.py | '''
This code trains the JODIE model for the given dataset.
The task is: interaction prediction.
How to run:
$ python jodie.py --network reddit --model jodie --epochs 50
Paper: Predicting Dynamic Embedding Trajectory in Temporal Interaction Networks. S. Kumar, X. Zhang, J. Leskovec. ACM SIGKDD International Confere... | 15,825 | 59.40458 | 213 | py |
DGNN_analysis | DGNN_analysis-main/JODIE/Nsight_Profile/evaluate_interaction_prediction_nsys.py | '''
This code evaluates the validation and test performance in an epoch of the model trained in jodie.py.
The task is: interaction prediction, i.e., predicting which item will a user interact with?
To calculate the performance for one epoch:
$ python evaluate_interaction_prediction.py --network reddit --model jodie -... | 14,989 | 49.302013 | 251 | py |
DGNN_analysis | DGNN_analysis-main/JODIE/Nsight_Profile/evaluate_interaction_prediction_nsys_tBatch.py | '''
This code evaluates the validation and test performance in an epoch of the model trained in jodie.py.
The task is: interaction prediction, i.e., predicting which item will a user interact with?
To calculate the performance for one epoch:
$ python evaluate_interaction_prediction.py --network reddit --model jodie -... | 19,016 | 53.489971 | 251 | py |
DGNN_analysis | DGNN_analysis-main/JODIE/Pytorch_Profile/evaluate_interaction_prediction_prof.py | '''
This code evaluates the validation and test performance in an epoch of the model trained in jodie.py.
The task is: interaction prediction, i.e., predicting which item will a user interact with?
To calculate the performance for one epoch:
$ python evaluate_interaction_prediction.py --network reddit --model jodie -... | 15,833 | 49.266667 | 251 | py |
DGNN_analysis | DGNN_analysis-main/JODIE/Pytorch_Profile/evaluate_interaction_prediction_prof_tBatch.py | '''
This code evaluates the validation and test performance in an epoch of the model trained in jodie.py.
The task is: interaction prediction, i.e., predicting which item will a user interact with?
To calculate the performance for one epoch:
$ python evaluate_interaction_prediction.py --network reddit --model jodie -... | 14,527 | 50.885714 | 251 | py |
entropy_reward | entropy_reward-main/setup.py | # Copyright (c) 2019 Horizon Robotics. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 1,941 | 33.678571 | 92 | py |
entropy_reward | entropy_reward-main/alf/initializers.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 6,531 | 39.571429 | 138 | py |
entropy_reward | entropy_reward-main/alf/tensor_specs.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 12,312 | 32.550409 | 93 | py |
entropy_reward | entropy_reward-main/alf/device_ctx.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 2,564 | 31.468354 | 80 | py |
entropy_reward | entropy_reward-main/alf/device_ctx_test.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 1,295 | 37.117647 | 80 | py |
entropy_reward | entropy_reward-main/alf/module.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 1,670 | 29.381818 | 80 | py |
entropy_reward | entropy_reward-main/alf/layers.py | # Copyright (c) 2019 Horizon Robotics. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 117,458 | 36.988034 | 100 | py |
entropy_reward | entropy_reward-main/alf/data_structures_test.py | # Copyright (c) 2019 Horizon Robotics. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 2,686 | 33.896104 | 82 | py |
entropy_reward | entropy_reward-main/alf/layers_test.py | # Copyright (c) 2020 Horizon Robotics. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 38,806 | 36.135885 | 98 | py |
entropy_reward | entropy_reward-main/alf/data_structures.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 16,016 | 34.202198 | 96 | py |
entropy_reward | entropy_reward-main/alf/tensor_specs_test.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 3,124 | 38.0625 | 80 | py |
entropy_reward | entropy_reward-main/alf/networks/critic_networks.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 14,334 | 46.466887 | 93 | py |
entropy_reward | entropy_reward-main/alf/networks/actor_networks_test.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 2,490 | 33.597222 | 80 | py |
entropy_reward | entropy_reward-main/alf/networks/actor_networks.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 13,322 | 43.858586 | 89 | py |
entropy_reward | entropy_reward-main/alf/networks/relu_mlp.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 12,850 | 36.576023 | 84 | py |
entropy_reward | entropy_reward-main/alf/networks/ou_process.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 2,362 | 39.050847 | 89 | py |
entropy_reward | entropy_reward-main/alf/networks/encoding_networks_test.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 14,340 | 38.947075 | 80 | py |
entropy_reward | entropy_reward-main/alf/networks/projection_networks.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 33,935 | 44.007958 | 100 | py |
entropy_reward | entropy_reward-main/alf/networks/mdq_critic_networks.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 25,599 | 43.677138 | 85 | py |
entropy_reward | entropy_reward-main/alf/networks/transformer_networks.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 9,931 | 43.738739 | 96 | py |
entropy_reward | entropy_reward-main/alf/networks/memory.py | # Copyright (c) 2019 Horizon Robotics. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 16,000 | 34.089912 | 93 | py |
entropy_reward | entropy_reward-main/alf/networks/actor_distribution_networks.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 13,009 | 47.00738 | 90 | py |
entropy_reward | entropy_reward-main/alf/networks/q_networks.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 13,212 | 45.361404 | 94 | py |
entropy_reward | entropy_reward-main/alf/networks/encoding_networks.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 33,174 | 46.190612 | 86 | py |
entropy_reward | entropy_reward-main/alf/networks/network.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 15,160 | 37.382278 | 97 | py |
entropy_reward | entropy_reward-main/alf/networks/network_test.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 5,778 | 35.808917 | 80 | py |
entropy_reward | entropy_reward-main/alf/networks/transformer_networks_test.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 2,771 | 35.96 | 80 | py |
entropy_reward | entropy_reward-main/alf/networks/networks.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 10,562 | 35.804878 | 90 | py |
entropy_reward | entropy_reward-main/alf/networks/action_encoder_test.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 1,757 | 32.807692 | 80 | py |
entropy_reward | entropy_reward-main/alf/networks/param_networks.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 14,670 | 40.797721 | 85 | py |
entropy_reward | entropy_reward-main/alf/networks/q_networks_test.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 3,040 | 33.954023 | 85 | py |
entropy_reward | entropy_reward-main/alf/networks/actor_distribution_networks_test.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 8,611 | 37.792793 | 85 | py |
entropy_reward | entropy_reward-main/alf/networks/value_networks.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 11,483 | 43.169231 | 87 | py |
entropy_reward | entropy_reward-main/alf/networks/preprocessors_test.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 5,351 | 37.782609 | 80 | py |
entropy_reward | entropy_reward-main/alf/networks/projection_networks_test.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 10,311 | 42.146444 | 80 | py |
entropy_reward | entropy_reward-main/alf/networks/action_encoder.py | # Copyright (c) 2019 Horizon Robotics. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 2,719 | 33 | 80 | py |
entropy_reward | entropy_reward-main/alf/networks/memory_test.py | # Copyright (c) 2019 Horizon Robotics. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 5,242 | 37.551471 | 78 | py |
entropy_reward | entropy_reward-main/alf/networks/dynamics_networks.py | # Copyright (c) 2020 Horizon Robotics. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 7,537 | 37.070707 | 85 | py |
entropy_reward | entropy_reward-main/alf/networks/containers_test.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 9,931 | 33.971831 | 80 | py |
entropy_reward | entropy_reward-main/alf/networks/preprocessor_networks.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 6,983 | 46.510204 | 88 | py |
entropy_reward | entropy_reward-main/alf/networks/containers.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 22,323 | 39.007168 | 95 | py |
entropy_reward | entropy_reward-main/alf/networks/preprocessors.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 4,635 | 40.392857 | 82 | py |
entropy_reward | entropy_reward-main/alf/networks/param_networks_test.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 4,615 | 39.849558 | 80 | py |
entropy_reward | entropy_reward-main/alf/networks/value_networks_test.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 3,927 | 35.036697 | 80 | py |
entropy_reward | entropy_reward-main/alf/networks/critic_networks_test.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 6,770 | 37.691429 | 91 | py |
entropy_reward | entropy_reward-main/alf/networks/relu_mlp_test.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 8,492 | 36.25 | 84 | py |
entropy_reward | entropy_reward-main/alf/networks/networks_test.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 8,409 | 37.401826 | 80 | py |
entropy_reward | entropy_reward-main/alf/examples/ppo_babyai.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 4,244 | 29.106383 | 80 | py |
entropy_reward | entropy_reward-main/alf/examples/sac_carla_conf.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 6,866 | 31.088785 | 107 | py |
entropy_reward | entropy_reward-main/alf/examples/lm_conf.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 5,091 | 33.639456 | 86 | py |
entropy_reward | entropy_reward-main/alf/examples/muzero_pendulum_conf.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 2,627 | 29.917647 | 90 | py |
entropy_reward | entropy_reward-main/alf/examples/sac_bipedal_walker_conf.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 2,127 | 29.4 | 80 | py |
entropy_reward | entropy_reward-main/alf/examples/ppo_rnd_mrevenge_conf.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 3,875 | 32.413793 | 110 | py |
entropy_reward | entropy_reward-main/alf/examples/mbrl_pendulum.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 1,653 | 34.191489 | 80 | py |
entropy_reward | entropy_reward-main/alf/examples/carla_conf.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 2,366 | 34.328358 | 87 | py |
entropy_reward | entropy_reward-main/alf/examples/oac_halfcheetah_conf.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 2,453 | 28.926829 | 89 | py |
entropy_reward | entropy_reward-main/alf/examples/muzero_go.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 6,658 | 36.410112 | 80 | py |
entropy_reward | entropy_reward-main/alf/examples/oac_humanoid_conf.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 2,651 | 30.2 | 89 | py |
entropy_reward | entropy_reward-main/alf/examples/lite_sac/sac/sac_car_racing_conf.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 3,461 | 27.85 | 80 | py |
entropy_reward | entropy_reward-main/alf/examples/lite_sac/sac/sac_point_conf.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 3,774 | 29.942623 | 93 | py |
entropy_reward | entropy_reward-main/alf/examples/networks/impala_cnn_encoder.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 8,209 | 37.909953 | 80 | py |
entropy_reward | entropy_reward-main/alf/examples/networks/impala_cnn_encoder_test.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 1,897 | 40.26087 | 80 | py |
entropy_reward | entropy_reward-main/alf/examples/benchmarks/dm_control/dm_control_conf.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 2,391 | 30.893333 | 83 | py |
entropy_reward | entropy_reward-main/alf/examples/tutorial/off_policy_interfaces_conf.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 2,692 | 33.974026 | 80 | py |
entropy_reward | entropy_reward-main/alf/examples/tutorial/on_policy_interfaces_conf.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 1,971 | 33 | 80 | py |
entropy_reward | entropy_reward-main/alf/examples/tutorial/off_policy_states_conf.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 2,372 | 32.422535 | 80 | py |
entropy_reward | entropy_reward-main/alf/examples/tutorial/ac_render_conf.py | # Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 2,148 | 36.701754 | 80 | py |
entropy_reward | entropy_reward-main/alf/experience_replayers/segment_tree_test.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 3,153 | 37.938272 | 80 | py |
entropy_reward | entropy_reward-main/alf/experience_replayers/replay_buffer_test.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 24,363 | 42.584973 | 92 | py |
entropy_reward | entropy_reward-main/alf/experience_replayers/segment_tree.py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 9,317 | 35.97619 | 94 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.