triplet_recommendations_keras icon indicating copy to clipboard operation
triplet_recommendations_keras copied to clipboard

An example of doing MovieLens recommendations using triplet loss in Keras

Results 7 triplet_recommendations_keras issues
Sort by recently updated
recently updated
newest added

I am trying to run triplet_movielens.py with the same movielens dataset and I get the following error. Using TensorFlow backend. Traceback (most recent call last): File "triplet_movielens.py", line 80, in...

Replaced merge with Lambda Layer.

So we have a (shared) embedding network that receives 1 input and outputs 1 embedding. We then build a triplet loss network around it that takes 3 inputs and outputs...

when I define a new loss function like this ``` ` def batch_all_triplet_loss(X): # Get the pairwise distance matrix print('22') labels, embeddings = X print('1') margin = 1.0 pairwise_dist =...

I saw you have use "K.sum(user_latent * positive_item_latent, axis=-1, keepdims=True)",but in my keras with tensorflow backend,this "*" means point-wise multiplication. I think we should compute the cos similarity between user...

I modified your code for my problem. I added regularization terms in Embedding layers. But when I train the model, both test loss and val loss go to 0.5. I...

Hi, thank you for your sharing ! you sample the triplet from test set as you do that from training set. But in the real world, we can't know which...