Skip to content

Commit 84b9c5f

Browse files
committed
Fix KGE example
1 parent 96e1031 commit 84b9c5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ You find example applications in the [apps/](apps/) directory and launch command
141141
#### Knowledge Graph Embeddings
142142
```
143143
make apps/knowledge_graph_embeddings
144-
python3 tracker/dmlc_local.py-s 2 build/apps/knowledge_graph_embeddings --dataset apps/data/kge/ --num_entities 280 --num_relations 112 --num_epochs 4 --embed_dim 100 --eval_freq 2
144+
python3 tracker/dmlc_local.py -s 2 build/apps/knowledge_graph_embeddings --dataset apps/data/kge/ --num_entities 280 --num_relations 112 --num_epochs 4 --embed_dim 100
145145
```
146146

147147
#### Word vectors

apps/knowledge_graph_embeddings.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ int process_program_options(const int argc, const char *const argv[]) {
11971197
("async_push", po::value<bool>(&async_push)->default_value(true), "push synchronously (false) or asynchronously (true, default)")
11981198
("signal_initial_relations_intent", po::value<bool>(&signal_initial_relations_intent)->default_value(false), "whether to signal long-term intent for relations or not")
11991199
("read_partitioned_dataset", po::value<bool>(&read_partitioned_dataset)->default_value(false), "read partitioned dataset")
1200-
("init_parameters", po::value<string>(&init_parameters)->default_value("normal{0,0.1}"), "initialize parameters, possible: 'none', 'uniform{a,b}', 'normal{mean,std}'")
1200+
("init_parameters", po::value<string>(&init_parameters)->default_value("normal{0/0.1}"), "initialize parameters, possible: 'none', 'uniform{a/b}', 'normal{mean/std}'")
12011201
("enforce_random_keys", po::value<bool>(&enforce_random_keys)->default_value(false), "enforce that keys are assigned randomly")
12021202
("enforce_full_replication", po::value<bool>(&enforce_full_replication)->default_value(false), "manually enforce full model replication")
12031203
("eval_truncate_tr", po::value<size_t>(&eval_truncate_tr)->default_value(2048), "truncate training dataset in evaluation (0 for no truncation)")

0 commit comments

Comments
 (0)