TypeError: amax() got an unexpected keyword argument 'keepdims'

というエラーはnumpyのversion updateによって解決

sudo easy_install -U numpy