Skip to content

Commit cb0ae74

Browse files
Update TransferLearningInference.py
Changes to name the classes from prediction appropirately
1 parent 64c806f commit cb0ae74

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Chapter02/TransferLearningInference.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def main(path,dim,model_save_dest,outdir,n_class):
5353
out = pd.DataFrame()
5454
out['id'] = test_files
5555
out['class'] = pred_class
56+
out['class'] = out['class'].apply(lambda x:'class' + str(x))
5657
out.to_csv(outdir + "results.csv",index=False)
5758

5859
if __name__ == '__main__':

0 commit comments

Comments
 (0)