cp /workspace/scratch/fitfinal.py /workspace/scratch/fitfinal0.py; python - <<'PY'
p='/workspace/scratch/fitfinal.py';s=open(p).read();s=s.replace('x**p[:3]@p[3:12].reshape(3,3)+p[12:15]','np.maximum(x-p[12:15],1e-10)**p[:3]@p[3:12].reshape(3,3)');s=s.replace('x**fit.x[:3]@fit.x[3:12].reshape(3,3)+fit.x[12:15]','np.maximum(x-fit.x[12:15],1e-10)**fit.x[:3]@fit.x[3:12].reshape(3,3)');s=s.replace("'offset':fit.x[12:].tolist()","'input_offset':fit.x[12:].tolist()")
open(p,'w').write(s)
PY
OPENBLAS_NUM_THREADS=1 python /workspace/scratch/fitfinal.py