Conversation
rusty1s
reviewed
Apr 15, 2024
torch_frame/datasets/jobs.py
Outdated
Comment on lines
12
to
16
| treatment indicator (1 if treated, 0 if not treated), age, | ||
| education, Black (1 if black, 0 otherwise), Hispanic | ||
| (1 if Hispanic, 0 otherwise), married (1 if married, 0 otherwise), | ||
| nodegree (1 if no degree, 0 otherwise), RE74 (earnings in 1974), | ||
| RE75 (earnings in 1975), and RE78 (earnings in 1978). |
Member
There was a problem hiding this comment.
Make this into a readable doc-string.
| train = 'https://www.fredjo.com/files/jobs_DW_bin.new.10.train.npz' | ||
| test = 'https://www.fredjo.com/files/jobs_DW_bin.new.10.test.npz' | ||
|
|
||
| def __init__(self, root: str, feature_engineering: bool = False): |
torch_frame/datasets/jobs.py
Outdated
Comment on lines
18
to
22
| lalonde_treated = 'https://users.nber.org/~rdehejia/data/nsw_treated.txt' | ||
| lalonde_control = 'https://users.nber.org/~rdehejia/data/nsw_control.txt' | ||
| psid = 'https://users.nber.org/~rdehejia/data/psid_controls.txt' | ||
| train = 'https://www.fredjo.com/files/jobs_DW_bin.new.10.train.npz' | ||
| test = 'https://www.fredjo.com/files/jobs_DW_bin.new.10.test.npz' |
Member
There was a problem hiding this comment.
Suggested change
| lalonde_treated = 'https://users.nber.org/~rdehejia/data/nsw_treated.txt' | |
| lalonde_control = 'https://users.nber.org/~rdehejia/data/nsw_control.txt' | |
| psid = 'https://users.nber.org/~rdehejia/data/psid_controls.txt' | |
| train = 'https://www.fredjo.com/files/jobs_DW_bin.new.10.train.npz' | |
| test = 'https://www.fredjo.com/files/jobs_DW_bin.new.10.test.npz' | |
| lalonde_treated_url = 'https://users.nber.org/~rdehejia/data/nsw_treated.txt' | |
| lalonde_control_url = 'https://users.nber.org/~rdehejia/data/nsw_control.txt' | |
| psid_url = 'https://users.nber.org/~rdehejia/data/psid_controls.txt' | |
| train_url = 'https://www.fredjo.com/files/jobs_DW_bin.new.10.train.npz' | |
| test_url = 'https://www.fredjo.com/files/jobs_DW_bin.new.10.test.npz' |
torch_frame/datasets/jobs.py
Outdated
Comment on lines
26
to
27
| train = self.download_url(Jobs.train, root) | ||
| test = self.download_url(Jobs.test, root) |
Member
There was a problem hiding this comment.
Suggested change
| train = self.download_url(Jobs.train, root) | |
| test = self.download_url(Jobs.test, root) | |
| train = self.download_url(self.train_url, root) | |
| test = self.download_url(self.test_url, root) |
examples/bcauss.py
Outdated
| parser.add_argument("--lr", type=float, default=0.00001) | ||
| parser.add_argument("--epochs", type=int, default=2) | ||
| parser.add_argument("--seed", type=int, default=2) | ||
| parser.add_argument("--compile", action="store_true") |
examples/bcauss.py
Outdated
Comment on lines
54
to
55
| treated_eval_dataset.materialize(path=osp.join(path, "treated_eval_data.pt")) | ||
| control_eval_dataset.materialize(path=osp.join(path, "control_eval_data.pt")) |
Member
There was a problem hiding this comment.
Why do we need to materialize again?
This file contains hidden or 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
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.
No description provided.