preview_submission
Logic to preview submission predictions.
kelp.nn.inference.preview_submission.PreviewSubmissionConfig
Bases: ConfigBase
Config for previewing the submission files.
Source code in kelp/nn/inference/preview_submission.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
kelp.nn.inference.preview_submission.main
Main entrypoint for plotting sample predictions from submission directory.
Source code in kelp/nn/inference/preview_submission.py
83 84 85 86 87 88 89 90 91 |
|
kelp.nn.inference.preview_submission.parse_args
Parse command line arguments.
Returns: An instance of PreviewSubmissionConfig.
Source code in kelp/nn/inference/preview_submission.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
kelp.nn.inference.preview_submission.plot_first_n_samples
Plots first N samples from the submission directory.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_dir |
Path
|
The path to the data directory with files used to generate predictions in the submission dir. |
required |
submission_dir |
Path
|
The path to the submission directory. |
required |
output_dir |
Path
|
The path to the output directory. |
required |
n |
int
|
The number of samples to plot. |
10
|
Source code in kelp/nn/inference/preview_submission.py
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 |
|