/srv/home/bhattacharyya/anaconda3/envs/py3.7/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /srv/home/bhattacharyya/anaconda3/envs/py3.7/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /srv/home/bhattacharyya/anaconda3/envs/py3.7/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /srv/home/bhattacharyya/anaconda3/envs/py3.7/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /srv/home/bhattacharyya/anaconda3/envs/py3.7/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) /srv/home/bhattacharyya/anaconda3/envs/py3.7/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) /srv/home/bhattacharyya/anaconda3/envs/py3.7/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /srv/home/bhattacharyya/anaconda3/envs/py3.7/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /srv/home/bhattacharyya/anaconda3/envs/py3.7/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /srv/home/bhattacharyya/anaconda3/envs/py3.7/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /srv/home/bhattacharyya/anaconda3/envs/py3.7/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) /srv/home/bhattacharyya/anaconda3/envs/py3.7/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) 2021-09-18 18:17:18.647126: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA 2021-09-18 18:17:18.678645: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2099990000 Hz 2021-09-18 18:17:18.680296: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55641814b320 executing computations on platform Host. Devices: 2021-09-18 18:17:18.680338: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): , 2021-09-18 18:17:19.977711: W tensorflow/compiler/jit/mark_for_compilation_pass.cc:1412] (One-time warning): Not using XLA:CPU for cluster because envvar TF_XLA_FLAGS=--tf_xla_cpu_global_jit was not set. If you want XLA:CPU, either set that envvar, or use experimental_jit_scope to enable XLA:CPU. To confirm that XLA is active, pass --vmodule=xla_compilation_cache=1 (as a proper command-line flag, not via TF_XLA_FLAGS) or set the envvar XLA_FLAGS=--xla_hlo_profile. The dataframe X: ent1 rel ent2 0 6 17 1973 1 9 17 183 2 9 19 3275 3 9 19 9511 4 9 19 10002 Value counts for relation: 19 28464 17 25865 27 9198 18 2802 2 1856 10 673 20 673 28 652 12 548 22 548 5 384 16 314 26 314 8 154 7 59 9 46 29 35 3 31 1 19 24 11 14 11 11 9 21 9 13 5 6 5 23 5 15 4 25 4 4 3 30 2 Name: rel, dtype: int64 Changing the edge structure from (synset -> synset) to (word -> word) Number of edges with words as nodes = 388301 Training set = (268301, 3) Test set1 = (40000, 3) Test set2 = (40000, 3) DistMult Model: Fold 1: Results: Test mrr = 0.4340852648049848 Test hits_at_10 score = 0.6397875 Fold 2: Results: Test mrr = 0.43304049443575576 Test hits_at_10 score = 0.6373375 Fold 3: Results: Test mrr = 0.4295105078018246 Test hits_at_10 score = 0.6359625 ComplEx Model: Fold 1: Results: Test mrr = 0.4976722630942029 Test hits_at_10 score = 0.67355 Fold 2: Results: Test mrr = 0.49723742658710546 Test hits_at_10 score = 0.6726875 Fold 3: Results: Test mrr = 0.4972575932053442 Test hits_at_10 score = 0.6750875 Traceback (most recent call last): File "cv_best_models.py", line 143, in hole_model = HolE(batches_count= 100, epochs=10, k= 100, eta= 50, optimizer= 'adagrad', loss= 'pairwise', regularizer= None, verbose= False, optimizer_params= {'lr': 0.1}, loss_params= {'margin': 0.5}, embedding_model_params= {'negative_corruption_entities': 'all'}) NameError: name 'HolE' is not defined