Created
December 26, 2017 07:45
-
-
Save goddoe/94e18d01bf6640f44d3d900b3ee78328 to your computer and use it in GitHub Desktop.
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
import argparse | |
from models.model import model_class, model_type | |
from libs.utils import run_train | |
""" | |
Main | |
""" | |
def main(): | |
parser = argparse.ArgumentParser(description='Process some integers.') | |
parser.add_argument('--dataset', metavar='data_path', | |
type=str, help='path of train csv file') | |
parser.add_argument('--param', metavar='param_path', | |
type=str, help='path of param json file') | |
parser.add_argument('--model', metavar='model_path', | |
type=str, help='path of model') | |
parser.add_argument('--result', metavar='result_path', | |
type=str, help='path of result') | |
p = parser.parse_args() | |
print("{}\ntrain start\n{}".format('*'*30, '*'*30)) | |
run_train(model_class=model_class, | |
model_type=model_type, | |
data_path=p.dataset, | |
model_path=p.model, | |
param_path=p.param, | |
result_path=p.result) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment