Repository: pykeen/pykeen
Issue: test the DistMultLiteral model on the NationsLiteral dataset
Root cause: Algorithmic Error

### What is your question

Hello ! I am currently working on a way to adapt KG embedding models so they can handle numerical triples too.
 
The idea is to use LiteralE (already implemented in pykeen)
 

I'm trying to test the DistMultLiteral model on the NationsLiteral dataset
I used the following code:
```python
from pykeen.datasets.nations import NationsLiteral
from pykeen.pipeline import pipeline
from pykeen.models import predict

result = pipeline(
    dataset=NationsLiteral,
    model='DistMultLiteral',
    training_kwargs=dict(num_epochs=20, use_tqdm=False),
    evaluation_kwargs=dict(use_tqdm=False),
    training_loop='lcwa',
    random_seed=1235,
)

model = result.model
tf = result.training

testing_mapped_triples = NationsLiteral().testing.mapped_triples.to(model.device)

prediction_df = predict.get_all_prediction_df(model, triples_factory=tf, testing=testing_mapped_triples)

print(result.metric_results.get_metric('hits_at_1'))
print(result.metric_results.get_metric('hits_at_3'))
print(result.metric_results.get_metric('hits_at_5'))
print(result.metric_results.get_metric('hits_at_10'))
```
and I got the following results:
```
0.243781095
0.517412935
0.746268657
0.955223881
```
When I accessed the file named "literal.txt" and change all the numeric column to zero, I expect the result to change, but this is not happen and the results remained the same/
When I changed all the relation in the literal.txt file to a single relation the result changed as following:
```
0.273631841
0.60199005
0.778606965
0.962686567
```
Why it matters to the amount of type of relations but not to the values of the features?
--


### Environment

Microsoft Windows [Version 10.0.18363.2212]
(c) 2019 Microsoft Corporation. All rights reserved.
(venv) C:\Users\User\PycharmProjects\ron_reaserch>python -m pykeen version
| Key             | Value                    |
|-----------------|--------------------------|
| OS              | nt                       |
| Platform        | Windows                  |
| Release         | 10                       |
| Time            | Tue Jun  7 15:22:11 2022 |
| Python          | 3.9.0                    |
| PyKEEN          | 1.8.0                    |
| PyKEEN Hash     | UNHASHED                 |
| PyKEEN Branch   |                          |
| PyTorch         | 1.10.1+cpu               |
| CUDA Available? | false                    |
| CUDA Version    | N/A                      |
| cuDNN Version   | N/A                      |


### Issue Template Checks

- [X] This is not a bug report (use a different issue template if it is)
- [X] This is not a feature request (use a different issue template if it is)
- [X] I've read the text explaining why including environment information is important and understand if I omit this information that my issue will be dismissed

This might be because of the way your PyKEEN is installed - are you sure the literals.txt file you're editing is the same one that's getting loaded? From your environment, it looks like it's installed with pip from PyPI, so you mean that you edited the file in your site packages?

yes exactly that I mean I edited the file that is in the path: ... \ venv \ Lib \ site-packages \ pykeen \ datasets \ nations and I'm sure the file is loaded because when I change the amount of relation (set all of them to "area" the result changes

[literals.txt](https://github.com/pykeen/pykeen/files/8885756/literals.txt)
this is the file, and after editing it I change all the numeric columns to zero

Are there any example results of working with the literal model, I would be happy if you could help me in the implementation of  knowledge graph completion based on numerical features