-
Notifications
You must be signed in to change notification settings - Fork 50
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
Predict column task #297
Draft
martinjurkovic
wants to merge
24
commits into
snap-stanford:main
Choose a base branch
from
martinjurkovic:predict-column-task
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Predict column task #297
martinjurkovic
wants to merge
24
commits into
snap-stanford:main
from
martinjurkovic:predict-column-task
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…h into task_missing_data
Thanks for the PR @martinjurkovic ! Can you please address some comments:
|
Hi @rishabh-ranjan, thanks for the comments!
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a general Predict Column task, with which we can predict any column in any table, if that table has a time column present by which the data is split into train/val/test. The work was done at the Stanford University in collaboration with @rishabh-ranjan and Prof. Jure Leskovec.
The task is constructed by specifying a
predict_column_task_config
dictionary, which needs the following keys:The target table is then constructed by removing the target column from the dataset when initializing the dataset, while at the same time saving it to the database
db.table_dict[entity_table].removed_cols
. Then, in themake_table
function, the saved target column is joined to the id and time column of the entity table.When specifying the task, we pass the
predict_column_task_config
to thePredictColumnTask
class (code copied fromexamples/gnn_predict_column.py
:Examples
In the examples directory, three files are added (
baseline_predict_column.py
,gnn_predict_column.py
andlightgbm_predict_column.py
).F1: predict the position of the driver at the end of the race
The config for this task is the default in the example scripts.
Config:
Results: