Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graph embedding #14

Open
wants to merge 181 commits into
base: main
Choose a base branch
from
Open

graph embedding #14

wants to merge 181 commits into from

Conversation

ruochen99
Copy link
Collaborator

Add back the graph embedding script that was removed from the last PR. To generate workload embeddings for the tasks, run

python3 graph_embedding.py

and in mlp_model.py or xgb_model.py, replace

tmp_task_embedding = get_workload_embedding(task.workload_key)

with

tmp_task_embeddings = pickle.load(open("task_embeddings.pkl", 'rb'))
tmp_task_embedding = tmp_task_embeddings[json.loads(task.workload_key)[0]]

and modify the dimensions accordingly.
Note that I include two different embedding models in this script, but they are not super useful for improving the model performance. Including here to provide some food for thought.

@merrymercy merrymercy force-pushed the main branch 4 times, most recently from b4070bf to a3f54d7 Compare October 25, 2022 12:36
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.

1 participant