[Solved]: IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices

This Datatype issue. Change your datatype to int

entity_vectors_e1 = entity_vectors[:, e1.tolist()]entity_vectors_e2 = entity_vectors[:, e2.tolist()]entity_vectors_e3 = entity_vectors[:, e3.tolist()]

To 

entity_vectors_e1 = entity_vectors[:, [int(i) for i in e1.tolist()]]entity_vectors_e2 = entity_vectors[:, [int(i) for i in e2.tolist()]]entity_vectors_e3 = entity_vectors[:, [int(i) for i in e3.tolist()]]