You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the above code according to the documentation, the error is as follows:
Trainable params 1284
Start training for 4000 iterations with 9 constants
Traceback (most recent call last):
File "HRI/Grandparent.py", line 47, in
exp.run()
File "/Users/weed/PycharmProjects/hierarchical-rule-induction/HRI/utils/Learn.py", line 167, in run
train_acc_rate, embeddings_temporal, unifs_temporal, losses, valuation, unifs, train_iters = model.train(
File "/Users/weed/PycharmProjects/hierarchical-rule-induction/HRI/utils/coreModel.py", line 378, in train
valuation_init, target = self.data_generator.getData(
File "/Users/qiyucheng/weed/hierarchical-rule-induction/HRI/utils/Dataset.py", line 53, in getData
relations = randomly_generate_family(num_constants,
File "/Users/weed/PycharmProjects/hierarchical-rule-induction/HRI/utils/Family.py", line 172, in randomly_generate_family
parents = random.choice(couples)
File "mtrand.pyx", line 920, in numpy.random.mtrand.RandomState.choice
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
The text was updated successfully, but these errors were encountered:
When I run the above code according to the documentation, the error is as follows:
Trainable params 1284
Start training for 4000 iterations with 9 constants
Traceback (most recent call last):
File "HRI/Grandparent.py", line 47, in
exp.run()
File "/Users/weed/PycharmProjects/hierarchical-rule-induction/HRI/utils/Learn.py", line 167, in run
train_acc_rate, embeddings_temporal, unifs_temporal, losses, valuation, unifs, train_iters = model.train(
File "/Users/weed/PycharmProjects/hierarchical-rule-induction/HRI/utils/coreModel.py", line 378, in train
valuation_init, target = self.data_generator.getData(
File "/Users/qiyucheng/weed/hierarchical-rule-induction/HRI/utils/Dataset.py", line 53, in getData
relations = randomly_generate_family(num_constants,
File "/Users/weed/PycharmProjects/hierarchical-rule-induction/HRI/utils/Family.py", line 172, in randomly_generate_family
parents = random.choice(couples)
File "mtrand.pyx", line 920, in numpy.random.mtrand.RandomState.choice
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
The text was updated successfully, but these errors were encountered: