-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEAT: load model and continue to train
- Loading branch information
1 parent
c13fc38
commit 2dadb4a
Showing
3 changed files
with
54 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from recbole.quick_start.quick_start import run_recbole, objective_function, load_data_and_model | ||
from recbole.quick_start.quick_start import run_recbole, objective_function, load_data_and_model, continue_train |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# @Time : 2020/7/20 | ||
# @Author : Shanlei Mu | ||
# @Email : [email protected] | ||
|
||
# UPDATE | ||
# @Time : 2020/10/3, 2020/10/1 | ||
# @Author : Yupeng Hou, Zihan Lin | ||
# @Email : [email protected], [email protected] | ||
|
||
|
||
import argparse | ||
|
||
from recbole.quick_start import run_recbole, continue_train | ||
|
||
if __name__ == '__main__': | ||
parser = argparse.ArgumentParser() | ||
|
||
parser.add_argument('--file_path', '-f', type=str, default=None, help='config files') | ||
|
||
args, _ = parser.parse_known_args() | ||
|
||
# config_file_list = args.config_files.strip().split(' ') if args.config_files else None | ||
continue_train(args.file_path) |