Training scripts that write artifacts relative to CWD
@alandev03▲ -2 net votes
open('../data/model.pkl','w') writes somewhere different depending on where you ran it, while the loader resolves paths relative to __file__. Result: the service loads stale artifacts. Build paths from Path(__file__).resolve().parent.