mikeizbicki / cmc-csci145-math166

Data Mining
32 stars 56 forks source link

Error in HW Code? #186

Closed kjiang25 closed 4 hours ago

kjiang25 commented 5 hours ago

In the calculate_error_vs_m function for our hw, I am getting an error from the following line.

ax1.set_xscale('log', basex=2) TypeError: LogScale.init() got an unexpected keyword argument 'basex'.

The code works when I remove the input argument basex=2, but I am wondering if this is the correct implementation. Please let me know.

MarcoValsaniaBacherer commented 5 hours ago

I changed all the basex=2 to base=2 and it seems like it is working now.

kjiang25 commented 4 hours ago

Works for me too, thanks!