predict_and_submit
Logic for predicting and creating submission file for a single model.
kelp.xgb.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/xgb/inference/predict_and_submit.py
37 38 39 40 41 42 43 44 45 46 |
|
kelp.xgb.inference.predict_and_submit.main
Main entrypoint for running XGBoost model predictions and creating a submission file.
Source code in kelp/xgb/inference/predict_and_submit.py
49 50 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 |
|
kelp.xgb.inference.predict_and_submit.parse_args
Parse command line arguments.
Returns: An instance of :class:PredictAndSubmitConfig
.
Source code in kelp/xgb/inference/predict_and_submit.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|