<p dir="auto">When building a Pipeline with custom transformers, what is the best way to serialize that for later use?</p>
<p dir="auto">If you use pickle, you need to define those functions in the new environment, so that doesn't seem like a solution to me. I ran into the same issue with dill and joblib.</p>
<p dir="auto">What is the best practice here?</p>
<p dir="auto">Thanks!</p>
<p dir="auto">pred=[1e-10, 0, 0]<br>
sol=[1, 0, 0]<br>
metrics.roc_auc_score(sol, pred) # 0.5, wrong, 1 is correct</p>
<p dir="auto">pred=[1, 0, 0]<br>
sol=[1, 0, 0]<br>
metrics.roc_auc_score(sol, pred) # 1 correct</p>