随笔分类 -  zzz-深度学习(停止)

摘要:from mxnet.gluon import nn from mxnet import nd class SliceLike(nn.HybridBlock): def __init__(self, xs, **kwargs): super().__init__(**kwargs) self.xs 阅读全文
posted @ 2019-03-27 22:37 xinet 阅读(1413) 评论(0) 推荐(0)
摘要:安装 TensorFlow 2.0 Alpha 本文仅仅介绍 Windows 的安装方式: pip install tensorflow==2.0.0-alpha0 # cpu 版本 pip install tensorflow==2.0.0-alpha0 # gpu 版本 针对 GPU 版的安装完 阅读全文
posted @ 2019-03-07 15:19 xinet 阅读(2004) 评论(0) 推荐(0)
摘要:Pytorch 基础 阅读全文
posted @ 2019-03-06 20:46 xinet 阅读(562) 评论(0) 推荐(0)
摘要:参考资料:有基础(Pytorch/TensorFlow基础)mxnet+gluon快速入门 symbol symbol 是一个重要的概念,可以理解为符号,就像我们平时使用的代数符号 x,y,z 一样。一个简单的类比,一个函数 \(f(x) = x^{2}\),符号 x 就是 symbol,而具体 x 阅读全文
posted @ 2018-07-15 23:01 xinet 阅读(6244) 评论(0) 推荐(0)
摘要:%pylab inline from keras.datasets import mnist import mxnet as mx from mxnet import nd from mxnet import autograd import random from mxnet import gluo 阅读全文
posted @ 2018-01-27 20:36 xinet 阅读(2412) 评论(0) 推荐(0)
摘要:from mxnet import gluon def transform(data, label): return data.astype('float32') / 255., label.astype('float32') mnist_train = gluon.data.vision.MNIS 阅读全文
posted @ 2018-01-27 20:31 xinet 阅读(2565) 评论(0) 推荐(0)
摘要:安装 Tensorflow Keras Opencv # For a specific version: !pip install tensorflow-gpu==1.5.0rc0 # To determine which version you're using: !pip show tensor 阅读全文
posted @ 2018-01-10 19:19 xinet 阅读(1152) 评论(0) 推荐(0)
摘要:软件环境(Windows): Visual Studio Anaconda CUDA MinGW-w64 conda install -c anaconda mingw libpython CNTK TensorFlow-gpu Keras-gpu Theano MKL CuDNN 参考书籍:谢梁 阅读全文
posted @ 2018-01-07 10:11 xinet 阅读(11896) 评论(0) 推荐(3)
摘要:机器学习的概念 有 监 督 学 习(Supervised Learning): \(x, y\) 输入高维向量(Vector)并同时输入其标签(Label),通过建模(Modeling),使得机器能够自动在模型中计算最为合适的参数值(Parameter)。最终,使得我们获得一个参数确定的模型,并在未 阅读全文
posted @ 2017-10-28 09:33 xinet 阅读(531) 评论(0) 推荐(0)
摘要:import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data 1.设置输入和输出节点的个数,配置神经网络的参数。 # MNIST数据集相关的常数 INPUT_NODE = 784 # 输入层节点数 阅读全文
posted @ 2017-10-09 10:25 xinet 阅读(1040) 评论(0) 推荐(0)
摘要:%pylab inline Populating the interactive namespace from numpy and matplotlib 在Yann LeCun教授的网站中(http://yann.lecun.com/exdb/mnist ) 对MNIST数据集做出了详细的介绍。 在 阅读全文
posted @ 2017-10-08 18:30 xinet 阅读(5638) 评论(0) 推荐(0)
摘要:import tensorflow as tf from numpy.random import RandomState 常用函数与运算 tf.clip_by_value函数将张量限定在一定的范围内: sess = tf.InteractiveSession() v = tf.constant([[ 阅读全文
posted @ 2017-10-08 14:23 xinet 阅读(472) 评论(0) 推荐(0)
摘要:三层简单神经网络 import tensorflow as tf 定义变量 w1 = tf.Variable(tf.random_normal([2, 3], stddev=1, seed=1)) w2 = tf.Variable(tf.random_normal([3, 1], stddev=1, 阅读全文
posted @ 2017-10-07 11:11 xinet 阅读(622) 评论(0) 推荐(0)
摘要:tf.sub()更改为tf.subtract() tf.mul()更改为tf.multiply() tf.types.float32更改为tf.float32 tf.pact()更改为tf.stact() tf.select()更改为tf.where() tf.per_image_whitening 阅读全文
posted @ 2017-09-27 14:56 xinet 阅读(13491) 评论(0) 推荐(0)