def _GetEmbedding(model, name):
    """Function to get embedding for users or items
    
    Params:     
        model (keras model): Keras model which has embedding layer
        names (string): Name of the user or item embedding layer
    
    Returns: 
        embedding (numpy matrix): Embedding layer for user or item
    """
    embedding = model.get_layer(name=name).get_weights()[0]
    return embedding
