当前位置: 首页 > news >正文

查数据的权威网站平面设计培训班学费一般多少

查数据的权威网站,平面设计培训班学费一般多少,合肥有做网站的吗,企业网站建设公司司今天在Anaconda运行Visualization of MLP weights on MNIST源码时出现了如图错误#xff1a; 提示无法导入fetch_openml#xff0c;查了一下是对应的sklearn软件包版本过低#xff0c;为0.17版。需要更新到0.20版。 1.打开Anaconda Prompt命令行 输入 conda list 命令 查看…今天在Anaconda运行Visualization of MLP weights on MNIST源码时出现了如图错误 提示无法导入fetch_openml查了一下是对应的sklearn软件包版本过低为0.17版。需要更新到0.20版。 1.打开Anaconda Prompt命令行 输入 conda list 命令 查看Anaconda中软件包的版本如图所示 2.执行 conda update --all命令 更新后可查看sklearn此时版本已经更新为0.20. 3. Visualization of MLP weights on MNIST源码为 Visualization of MLP weights on MNIST Sometimes looking at the learned coefficients of a neural network can provide insight into the learning behavior. For example if weights look unstructured, maybe some were not used at all, or if very large coefficients exist, maybe regularization was too low or the learning rate too high.This example shows how to plot some of the first layer weights in a MLPClassifier trained on the MNIST dataset.The input data consists of 28x28 pixel handwritten digits, leading to 784 features in the dataset. Therefore the first layer weight matrix have the shape (784, hidden_layer_sizes[0]). We can therefore visualize a single column of the weight matrix as a 28x28 pixel image.To make the example run faster, we use very few hidden units, and train only for a very short time. Training longer would result in weights with a much smoother spatial appearance.import matplotlib.pyplot as plt from sklearn.datasets import fetch_openml from sklearn.neural_network import MLPClassifierprint(__doc__)# Load data from https://www.openml.org/d/554 X, y fetch_openml(mnist_784, version1, return_X_yTrue) X X / 255.# rescale the data, use the traditional train/test split X_train, X_test X[:60000], X[60000:] y_train, y_test y[:60000], y[60000:]# mlp MLPClassifier(hidden_layer_sizes(100, 100), max_iter400, alpha1e-4, # solversgd, verbose10, tol1e-4, random_state1) mlp MLPClassifier(hidden_layer_sizes(50,), max_iter10, alpha1e-4,solversgd, verbose10, tol1e-4, random_state1,learning_rate_init.1)mlp.fit(X_train, y_train) print(Training set score: %f % mlp.score(X_train, y_train)) print(Test set score: %f % mlp.score(X_test, y_test))fig, axes plt.subplots(4, 4) # use global min / max to ensure all weights are shown on the same scale vmin, vmax mlp.coefs_[0].min(), mlp.coefs_[0].max() for coef, ax in zip(mlp.coefs_[0].T, axes.ravel()):ax.matshow(coef.reshape(28, 28), cmapplt.cm.gray, vmin.5 * vmin,vmax.5 * vmax)ax.set_xticks(())ax.set_yticks(())plt.show()
http://www.yutouwan.com/news/34874/

相关文章:

  • 做网站体会心得科技术语有哪些
  • 江安县建设招标网站开发公司组织架构设计
  • 凡科网建站怎么样平台搭建app开发
  • 网站建设需要提供的资料文档手机网站哪家好
  • 手机网站微信支付代码网页设计流程的四个阶段
  • 从哪个网站设置宽带主机国际外贸平台排名
  • 网站分析软件电子商务网站建设参考文献
  • 福州建站模板搭建网站推广方法及特点
  • 有没有一种网站做拍卖厂的做百度推广销售怎么找客户
  • 音乐网站的音乐怎么做wordpress多个菜单menu
  • 网站挂直播连接怎么做做的网站上传到服务器
  • wordpress英文建站个人网站是否需要备案
  • intitle:律师网站建设的重要性上海中学官网首页
  • 做购物比价的网站软件开发工具通常也称为
  • 做海报一般都去什么网站看个体户年报网上申报
  • 手机做外贸有什么好的网站网页模版下载器
  • 设计公司网站应该包括的信息建设银行网站怎么预约纪念币
  • 外贸云网站建设深圳二手房成交价格查询
  • 做网站赠送搜索引擎优化简称
  • 如何的找网站建设公司马鞍山做网站公司排名
  • 福州微信网站建设资深做网站公司
  • 中国建设银行网站-诚聘英才自己搭建网络培训平台
  • 网站建设后期需要做什么ai设计室内设计
  • 美术馆网站建设概述天津机械网站建设模板
  • 有域名和服务器怎么建网站郴州建设局门户网站
  • 温州专业微网站制作公司哪家好千锋教育成立于哪一年
  • 杭州seo网站推广带会员注册企业网站源码
  • 网站改版后seo该怎么做浦项建设中国有限公司网站
  • 企业网站建设备案都需要什么沂水网站制作
  • 上海html5网站制作深圳十大电商巨头