We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
def create_adj_mat(self): t1 = time() adj_mat = sp.dok_matrix((self.n_users + self.n_items, self.n_users + self.n_items), dtype=np.float32) adj_mat = adj_mat.tolil() R = self.R.tolil() adj_mat[:self.n_users, self.n_users:] = R adj_mat[self.n_users:, :self.n_users] = R.T adj_mat = adj_mat.todok() print('already create adjacency matrix', adj_mat.shape, time() - t1) t2 = time()
I've waited for a day and the code is still stuck at adj_mat = adj_mat.todok()
adj_mat = adj_mat.todok()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I've waited for a day and the code is still stuck at
adj_mat = adj_mat.todok()
The text was updated successfully, but these errors were encountered: