Skip to content

Instantly share code, notes, and snippets.

@sbalnojan
Created June 20, 2019 19:48
Show Gist options
  • Save sbalnojan/3eb5d8ca4a32a32f8422efe7d016a3dc to your computer and use it in GitHub Desktop.
Save sbalnojan/3eb5d8ca4a32a32f8422efe7d016a3dc to your computer and use it in GitHub Desktop.
from torchbiggraph.config import parse_config
import attr
train_config = parse_config(CONFIG_PATH)
train_path = [convert_path(os.path.join(DATA_DIR, FILENAMES['train']))]
train_config = attr.evolve(train_config, edge_paths=train_path)
from torchbiggraph.train import train
train(train_config)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment