Hi Khanh,

This is the directory contents.

.ipynb_checkpoints
analysis.ipynb
README.md
.ipynb_checkpoints\analysis-checkpoint.ipynb
.ipynb_checkpoints\logweight-checkpoint.ipynb
data\budget.csv
data\food.csv
data\full_weights.csv
data\steps.csv
data\weights.csv
viz\eda.png
viz\interpret.png
viz\lambda_0_05.png
viz\lambda_coef_boundary.png
viz\log_0_001_0.gif
viz\log_0_01_0.gif
viz\log_0_01_10.gif
viz\log_1_0.gif
viz\recall_lambda.png
viz\threshold.png
viz\weight.png

I tried removing viz\weight.png to see if it was being created. It is not. I put it back.

It is reading .csv files from data OK but nothing pertaining to ,png or .gif works.

The first failure is plt.show()

Then the fig.savefig(‘viz/weight.png’) fails.

I’ll see if I can write something simple that will work with images this weekend.

Regards,

Dave

Retired and living my golden years in a world full of angry people.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store