Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanzx33033 committed Aug 20, 2022
1 parent 33dfbae commit 77bb40a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions configs/fb15k-237.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

data_input_dir="datasets/data_preprocessed/FB15K-237/"
vocab_dir="datasets/data_preprocessed/FB15K-237/vocab"
total_iterations=5000
total_iterations=10000
path_length=3
hidden_size=50
embedding_size=50
batch_size=256
beta=0.1
Lambda=0.1
batch_size=512
beta=0.14
Lambda=0.14
use_cluster_embeddings=0
use_entity_embeddings=0
train_entity_embeddings=0
Expand Down
2 changes: 1 addition & 1 deletion trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def train(self):
format(self.batch_counter, np.sum(entity_rewards), e_avg_reward + c_avg_reward, num_ep_correct,
(num_ep_correct / self.batch_size), train_loss))

if self.batch_counter % self.eval_every == 0 or np.sum(entity_rewards) >= 1800:
if self.batch_counter % self.eval_every == 0: #or np.sum(entity_rewards) >= 1800:

self.test_rollouts = 100
self.test_environment = self.test_test_environment
Expand Down

0 comments on commit 77bb40a

Please sign in to comment.