-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sparse estimator support fidv2 (#208)
* fid_v2 * support fid v2 * remove run.sh * clint * make test.sh exec * use_fid_v2
- Loading branch information
1 parent
da3a332
commit d2a65f5
Showing
9 changed files
with
73 additions
and
32 deletions.
There are no files selected for viewing
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
export CUDA_VISIBLE_DEVICES="" | ||
|
||
python make_data.py --fid_version=1 | ||
python follower.py --local-addr=localhost:50010 \ | ||
--peer-addr=localhost:50011 \ | ||
--worker-rank=0 \ | ||
--data-path=data/follower/ \ | ||
--checkpoint-path=model/follower \ | ||
--save-checkpoint-steps=100 \ | ||
--export-path=model/follower/saved_model \ | ||
--sparse-estimator=True & | ||
|
||
python leader.py --local-addr=localhost:50011 \ | ||
--peer-addr=localhost:50010 \ | ||
--worker-rank=0 \ | ||
--data-path=data/leader/ \ | ||
--checkpoint-path=model/leader \ | ||
--save-checkpoint-steps=100 \ | ||
--export-path=model/leader/saved_model \ | ||
--sparse-estimator=True | ||
|
||
wait | ||
|
||
rm -rf data model | ||
python make_data.py --fid_version=2 | ||
python follower.py --local-addr=localhost:50010 \ | ||
--peer-addr=localhost:50011 \ | ||
--worker-rank=0 \ | ||
--data-path=data/follower/ \ | ||
--checkpoint-path=model/follower \ | ||
--save-checkpoint-steps=100 \ | ||
--export-path=model/follower/saved_model \ | ||
--sparse-estimator=True \ | ||
--fid_version=2 & | ||
|
||
python leader.py --local-addr=localhost:50011 \ | ||
--peer-addr=localhost:50010 \ | ||
--worker-rank=0 \ | ||
--data-path=data/leader/ \ | ||
--checkpoint-path=model/leader \ | ||
--save-checkpoint-steps=100 \ | ||
--export-path=model/leader/saved_model \ | ||
--sparse-estimator=True \ | ||
--fid_version=2 | ||
rm -rf data model | ||
wait |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/bin/bash | ||
|
||
bash example/tree_model/test.sh | ||
bash example/tree_model/test.sh | ||
bash example/sparse_model/test.sh |