[STUDY VLOG] 勉強風景 #7

  • Tensorflow

    • 人工智能、机器学习、深度学习(神经网络)
    • 神经网络:卷积(处理图像)、循环(文字或语言)
    • 卷积神经网络:卷积运算、池化操作、稀疏交互、权值共享
    • 数据流编程(多平台支持、高级API、可视化训练、生产部署)
    • 开发环境搭建:强推colab
      !pip3 install tensorflow == 2.00rc1
      import tensorflow as tf
      print(tf.__version__)
      tf.test.is_gpu_available
      
    • MNIST手写数字案例简介
      内置数据集介绍:dir(tf.keras.datasets)
      MNIST数据集加载:mnist = tf.keras.datasets.mnist
      mnist.load_data()
      数据集查看:x_train.shape, y_train.shape
      import matplotlib.pyplot as plt  可移植性好
      image_index = 1234 #[0~59999]
      print(y_train[image_index])
      显示:plt.imshow(x_train[image_index],cmap='Greys')
      import numpy as np
      图片扩充:x_train = np.pad(x_train,((0,0),(2,2),(2,2)),'constant',constant_values = 0)
      数据类型转化:x_train = x_train.astype('float32')
      数据正则化:x_train/=255
      数据维度转换([n,h,w,c]):x_train = x_train.reshape(x_train.shape[0],32,32,1)
      
    • LeNet模型:卷积神经网络的“hello,world”
      • 卷积、池化(下采样)、激活函数
  • 洛谷:循环结构

  • 扇贝单词打卡

发布了42 篇原创文章 · 获赞 5 · 访问量 2708

猜你喜欢

转载自blog.csdn.net/weixin_44198992/article/details/105032514