FocusE-ComplEx: Question on using numeric edge weight attributes - prediction performance (MRR) and embeddings are very similar between models with and without edge weights
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- machine-learning
Direzione di ricerca
Inizia con la riproduzione allegata in PHXA-11415-Log-ISSUE-Ampligraph-ComplEx-FocusE__pythonCODE.txt e con l’esempio della documentazione di ComplEx+FocusE. Confronta le chiamate a model.fit con e senza focusE_numeric_edge_values, quindi determina se le metriche e gli embeddings simili sono previsti o rivelano un difetto. Il lavoro è completato quando la spiegazione è documentata oppure viene isolato un errore riproducibile con un test di regressione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
Ampligraph-Complex-FocusE (Version 1.4.0) - Support for Numeric Literals on Edges
I am comparing 2 different ComplEx Models, one that uses model.fit(X, focusE_numeric_edge_values=X_edge_values) with edge weights and one without edge weights using model.fit(X)
I'm following the Toy Example provided on AmpliGraph documentation page (see below)
https://docs.ampligraph.org/en/1.4.0/generated/ampligraph.latent_features.ComplEx.html#focuse-complex
Actual Behavior
COMPARING Predictions (MRR) & Embeddings between the following two ComplEx models:
(1) With Edge-weights AND
(2) WithOUT Edge-weights]
Upon comparing models (1) & (2), the following behavior is observed:
- Quite Similar Performance (eg. MRR / MR / Hits@N) - BUT most likely due to the dataset size for this example.
- Very Similar Embeddings, meaning embedding differences between (1) & (2) exhibiting relative tolerance ~ +/-[0.005]
- Most importantly, small embedding differences when using following cases for edge-weights:
3a. all edge weights = 0's (using np.zeros)
3b. all edge weights = 1's (using np.ones)
3c. all edge weights assigned to random weights between [0,1] using np.random.rand
When using complEx+FocusE algorithms to add Edge-weights, I assume performance / embeddings should NOT be approximately the same when comparing these TWO models (1) vs (2).
Expected Behavior
After trying various edge-weights (eg. focusE_numeric_edge_values = {from Toy Example, OR all ones, OR all zeros, OR random numbers between [0,1]}), I was expecting the Embeddings between the models WITH edge-weights to be different from the models WithOUT.
In summary, across all variations of edge weights for these experiments, the MRR was very similar and the embeddings were also in terms of their relative differences compared to model trained without using edge weights.
Steps to Reproduce
Please kindly replicate the toy example using following code:
Here are the Steps needed to reproduce this issue for ComplEx+FocusE Edge weightings.
========================




===========================
<-- PYTHON CODE FILE -->
PHXA-11415-Log-ISSUE-Ampligraph-ComplEx-FocusE__pythonCODE.txt
- Lingua principale
- Python
- Stelle
- 2.2k
- Fork
- 257
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Accenture/AmpliGraph
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Accenture/AmpliGraph#290 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Accenture/AmpliGraph#289 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Accenture/AmpliGraph#287 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
Accenture/AmpliGraph#284 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
Accenture/AmpliGraph#275 ·
Tutte le issue di Accenture/AmpliGraph
Issue simili
-
[Resource]: SpaicelyApertaresource-submission validation-passed
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
hesreallyhim/awesome-claude-code#3875 · 1 commento ·
-
[Bug]: Ajax Pro login issueApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
bvis/aegis-hass#725 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
datasektionen/cashflow#468 ·
-
dont call alembic upgrade until we check whether or not the cache DB has an alembic version stampAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Bug: AttributeError: 'GptOssConfig' object has no attribute 'rope_scaling_factor' with transformers >= 5.xForse già presa @NimaVaziri l’ha presa oggi. ApertaPytorch
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NVIDIA/TensorRT-LLM#23406 ·
I maintainer di solito rispondono entro 1 giorno