Open kayjayk opened 8 months ago
I think you might have made some changes to the source code that led to the error. I suggest you use debug mode to check the dimension of self.vecs_use in the line vec_output=self.vec_embedding_layer1(self.vecs_use). In the original code, the dimension of self.vecs_use should not be "106994 x 3" as mentioned in the error message you provided. My guess is that during the feature vector stage, you might have kept only three feature vectors, resulting in each poi point's feature representation in WORK/vecs_use.npy being only 3-dimensional.
Due to various reasons, the source code of this project has not been well organized. Therefore, modifying parameters in earlier steps may lead to subsequent processes encountering dimension mismatches. Alternatively, I suspect you might be using a different dataset. During the feature value filtering stage, it seems that twenty valid feature values (>1e-5) weren't successfully retained.
This process occurs in line 126 of the spectral_clustering.py file, specifically at the condition while (vals[j]) < 1e-5:. You can verify this by checking the number of elements contained in the subsequent index.
Good luck to you.
@Shirley-YFY Hello, My name is kijun. I read your paper interesting. And thank you for releasing the relevant code. I found an error while running the code as you mentioned in README.
when I run the
train_copy.py
in the 6th, I got an error like below.Would you please help me to solve this?