This module contains functions to infer on the test set and generate the final submission file for Kaggle.
infer_on_test_set
(learn
:Learner
, path
:Path
, tta
:bool
=False
, bs
:int
=64
)
Infers on test CSV at path
using learn
, optionally performing TTA.
format_submission
(preds
:Tensor
, save_path
:Union
[Path
, str
])
Formats raw preds
into submission CSV, saving at save_path
.
All-in-One Learner -> Submission Function
evaluate
(learn
:Learner
, path
:Path
, name
:str
='submission.csv'
, tta
:bool
=False
)
Evaluates learn
on test CSV at path
and saves as name
, optionally applying TTA.