Neural Networks: From Import
Neural Networks: From Import
Neural Networks
Data ¶
In [2]: cancer.keys()
In [4]: X = cancer['data']
y = cancer['target']
Data Preprocessing
http://localhost:8888/notebooks/Neural%20Networks.ipynb# 1/3
12/9/2018 Neural Networks
In [18]: mlp.fit(X_train,y_train)
[[57 2]
[ 1 83]]
In [21]: print(classification_report(y_test,predictions))
In [27]: mlp.get_params
http://localhost:8888/notebooks/Neural%20Networks.ipynb# 2/3
12/9/2018 Neural Networks
In [34]: mlp.coefs_[3]
In [24]: len(mlp.intercepts_[0])
Out[24]: 30
In [ ]:
http://localhost:8888/notebooks/Neural%20Networks.ipynb# 3/3