constants

class marius.tools.configuration.constants.PathConstants(model_file='model.pt', model_state_file='model_state.pt', edges_directory='edges/', nodes_directory='nodes/', training_file_prefix='train_', validation_file_prefix='validation_', test_file_prefix='test_', partition_offsets_file='partition_offsets.txt', node_mapping_file='node_mapping.txt', relation_mapping_file='relation_mapping.txt', edge_file_name='edges', node_file_name='nodes', features_file_name='features', labels_file_name='labels', node_embeddings_file_name='embeddings', node_embeddings_state_file_name='embeddings_state', saved_full_config_file_name='full_config.yaml', file_ext='.bin', train_edges_path='edges/train_edges.bin', valid_edges_path='edges/validation_edges.bin', test_edges_path='edges/test_edges.bin', train_edge_buckets_path='edges/train_partition_offsets.txt', valid_edge_buckets_path='edges/validation_partition_offsets.txt', test_edge_buckets_path='edges/test_partition_offsets.txt', node_features_path='nodes/features.bin', relation_features_path='edges/features.bin', labels_path='nodes/labels.bin', train_nodes_path='nodes/train_nodes.bin', valid_nodes_path='nodes/validation_nodes.bin', test_nodes_path='nodes/test_nodes.bin', node_mapping_path='nodes/node_mapping.txt', relation_mapping_path='edges/relation_mapping.txt')
Parameters
  • model_file (str) –

  • model_state_file (str) –

  • edges_directory (str) –

  • nodes_directory (str) –

  • training_file_prefix (str) –

  • validation_file_prefix (str) –

  • test_file_prefix (str) –

  • partition_offsets_file (str) –

  • node_mapping_file (str) –

  • relation_mapping_file (str) –

  • edge_file_name (str) –

  • node_file_name (str) –

  • features_file_name (str) –

  • labels_file_name (str) –

  • node_embeddings_file_name (str) –

  • node_embeddings_state_file_name (str) –

  • saved_full_config_file_name (str) –

  • file_ext (str) –

  • train_edges_path (str) –

  • valid_edges_path (str) –

  • test_edges_path (str) –

  • train_edge_buckets_path (str) –

  • valid_edge_buckets_path (str) –

  • test_edge_buckets_path (str) –

  • node_features_path (str) –

  • relation_features_path (str) –

  • labels_path (str) –

  • train_nodes_path (str) –

  • valid_nodes_path (str) –

  • test_nodes_path (str) –

  • node_mapping_path (str) –

  • relation_mapping_path (str) –

Return type

None

model_file: str = 'model.pt'
model_state_file: str = 'model_state.pt'
edges_directory: str = 'edges/'
nodes_directory: str = 'nodes/'
training_file_prefix: str = 'train_'
validation_file_prefix: str = 'validation_'
test_file_prefix: str = 'test_'
partition_offsets_file: str = 'partition_offsets.txt'
node_mapping_file: str = 'node_mapping.txt'
relation_mapping_file: str = 'relation_mapping.txt'
edge_file_name: str = 'edges'
node_file_name: str = 'nodes'
features_file_name: str = 'features'
labels_file_name: str = 'labels'
node_embeddings_file_name: str = 'embeddings'
node_embeddings_state_file_name: str = 'embeddings_state'
saved_full_config_file_name: str = 'full_config.yaml'
file_ext: str = '.bin'
train_edges_path: str = 'edges/train_edges.bin'
valid_edges_path: str = 'edges/validation_edges.bin'
test_edges_path: str = 'edges/test_edges.bin'
train_edge_buckets_path: str = 'edges/train_partition_offsets.txt'
valid_edge_buckets_path: str = 'edges/validation_partition_offsets.txt'
test_edge_buckets_path: str = 'edges/test_partition_offsets.txt'
node_features_path: str = 'nodes/features.bin'
relation_features_path: str = 'edges/features.bin'
labels_path: str = 'nodes/labels.bin'
train_nodes_path: str = 'nodes/train_nodes.bin'
valid_nodes_path: str = 'nodes/validation_nodes.bin'
test_nodes_path: str = 'nodes/test_nodes.bin'
node_mapping_path: str = 'nodes/node_mapping.txt'
relation_mapping_path: str = 'edges/relation_mapping.txt'