predict_and_submit
Logic for predicting and creating submission file for a single model.
kelp.nn.inference.predict_and_submit.PredictAndSubmitConfig
Bases: PredictConfig
Config for running prediction and submission file generation in a single pass.
Source code in kelp/nn/inference/predict_and_submit.py
15 16 17 18 19 |
|
kelp.nn.inference.predict_and_submit.copy_run_artifacts
Copies run artifacts from run_dir to output_dir.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
run_dir |
Path
|
The directory to copy run artifacts from. |
required |
output_dir |
Path
|
The output directory. |
required |
Source code in kelp/nn/inference/predict_and_submit.py
39 40 41 42 43 44 45 46 47 48 |
|
kelp.nn.inference.predict_and_submit.main
The main entry point for running prediction and submission file generation.
Source code in kelp/nn/inference/predict_and_submit.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
|
kelp.nn.inference.predict_and_submit.parse_args
Parse command line arguments.
Returns: An instance of PredictAndSubmitConfig.
Source code in kelp/nn/inference/predict_and_submit.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|