Repository: pykeen/pykeen
Issue: TypeError when using 'complex' model in the hpo_pipeline.
Root cause: Configuration Error

### Discussed in https://github.com/pykeen/pykeen/discussions/667

<div type='discussions-op-text'>

<sup>Originally posted by **Shraddha-Mane** December  8, 2021</sup>
Hi, 

I am using HPO pipleline on Hetionet dataset. I could run 'transe' and 'rotate' models in hpo_pipeline buf for 'complex' model it throws error. I am using AWS Deep learning AMI machine for executing this code. Code and error are as follows:

**code:**
```python
from pykeen.hpo import hpo_pipeline

EPOCHS = 7
TRIALS = 2

def train_by_hpo(model_given, epochs_given, n_trials_given,  path, checkpoint_name):
    result = hpo_pipeline(
        n_trials=n_trials_given,  # you probably want more than this
        training=HETIONET_TRAIN_PATH,
        testing=HETIONET_TEST_PATH,
        validation=HETIONET_VALIDATE_PATH,
        model=model_given,
        epochs=epochs_given,  # short epochs for testing - you should go higher
        training_kwargs=dict(
            num_epochs=epochs_given,  # more epochs than before
         ),
        stopper='early',
        stopper_kwargs=dict(frequency=5, patience=2, relative_delta=0.001),
        result_tracker='csv',
        result_tracker_kwargs=dict(
            path='./results_tracker_hpo.csv',
        ),
    )
    result.save_to_directory(path)
    return

start = time.time()
train_by_hpo(model_given = 'complex', epochs_given = EPOCHS, n_trials_given = TRIALS, path = OUT_DIR + 'hpo/transe/',checkpoint_name = 'hetionet_checkpoint_hpo_transe.pt')
print("time required for execution = {} minutes".format((time.time()-start)/60))
```

**Error**:

```python-traceback
Trial 0 failed because of the following error: TypeError("__init__() got an unexpected keyword argument 'margin'")
Traceback (most recent call last):
  File "/home/ubuntu/anaconda3/envs/pytorch_latest_p37/lib/python3.7/site-packages/optuna/study/_optimize.py", line 213, in _run_trial
    value_or_values = func(trial)
  File "/home/ubuntu/anaconda3/envs/pytorch_latest_p37/lib/python3.7/site-packages/pykeen/hpo/hpo.py", line 285, in __call__
    device=self.device,
  File "/home/ubuntu/anaconda3/envs/pytorch_latest_p37/lib/python3.7/site-packages/pykeen/pipeline/api.py", line 930, in pipeline
    training_triples_factory=training,
  File "/home/ubuntu/anaconda3/envs/pytorch_latest_p37/lib/python3.7/site-packages/pykeen/pipeline/api.py", line 642, in _build_model_helper
    loss_instance = loss_resolver.make(loss, loss_kwargs)
  File "/home/ubuntu/anaconda3/envs/pytorch_latest_p37/lib/python3.7/site-packages/class_resolver/api.py", line 263, in make
    raise e
  File "/home/ubuntu/anaconda3/envs/pytorch_latest_p37/lib/python3.7/site-packages/class_resolver/api.py", line 257, in make
    return cls(**(pos_kwargs or {}), **kwargs)  # type: ignore
TypeError: __init__() got an unexpected keyword argument 'margin'
```

Please check and do let me know how can I run this for 'complex' model.
Thanks 

</div>

environment: https://github.com/pykeen/pykeen/discussions/667#discussioncomment-1771736

Hi @Shraddha-Mane,

I tried your code snippet on the current `master` branch version and could not reproduce the behaviour. Would you mind re-running your script with an updated `pykeen` version and let us know whether the error persists?

I was thinking the same ^ this could have been fixed already with a recent PR

Closing this issue for now.