I have a sklearn model and I want to save the pickle file on my s3 bucket using joblib.dump
I used joblib.dump(model, 'model.pkl')
to save the model locally, but I do not know how to save it to s3 bucket.
s3_resource = boto3.resource('s3')
s3_resource.Bucket('my-bucket').Object("model.pkl").put(Body=joblib.dump(model, 'model.pkl'))
I expect the pickled file to be on my s3 bucket.