Skip to content

Fixing scale usage during inference - #6

Open
JoOkuma wants to merge 4 commits into
mainfrom
jookuma/fixing-scaling
Open

Fixing scale usage during inference#6
JoOkuma wants to merge 4 commits into
mainfrom
jookuma/fixing-scaling

Conversation

@JoOkuma

@JoOkuma JoOkuma commented Sep 3, 2026

Copy link
Copy Markdown
Member

No description provided.

@leonfroehlich

Copy link
Copy Markdown

Hi Jordao,
got a KeyError when running this PR because the node attributes were not added to the graph yet. Adding this snippet in ‎src/hoct/features/graph.py just before the add_edges(graph) function is called (line 201) fixed it for me:

    for column in [f"scaled_{c}" for c in cols]:
        graph.add_node_attr_key(column, pl.Float32, 0.0)

    graph.update_node_attrs(
        attrs={
            f"scaled_{c}": node_attrs[f"scaled_{c}"].to_list()
            for c in cols
        },
        node_ids=node_attrs[td.DEFAULT_ATTR_KEYS.NODE_ID].to_list(),
    )

Best,
Leon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants