when i use matplotlib in jupyter notebook,it always raise “ matplotlib is currently using a non-GUI backend” error?

后端 未结 10 1509
耶瑟儿~
耶瑟儿~ 2020-11-28 07:40
import matplotlib.pyplot as pl
%matplot inline
def learning_curves(X_train, y_train, X_test, y_test):
\"\"\" Calculates the performance of several models with varyin         


        
10条回答
  •  一向
    一向 (楼主)
    2020-11-28 08:21

    You don't need the line of "fig.show()". Just remove it. Then it will be no warning message.

提交回复
热议问题