<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Amber__py的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/Amber__py</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; Amber__py]]></copyright><item><title><![CDATA[2021-06-17]]></title><link>https://blog.youkuaiyun.com/Amber__py/article/details/118003289</link><guid>https://blog.youkuaiyun.com/Amber__py/article/details/118003289</guid><author>Amber__py</author><pubDate>Fri, 18 Jun 2021 15:22:51 +0800</pubDate><description><![CDATA[class Solution:
  def minNumberdisappered(self , arr ):
    # write code here
    length = len(arr)
    for i in range(length):
      if arr[i]&gt;= 1 and arr[i]&lt;=length and arr[i] != arr[arr[i]-1]:
        temp = arr[i]
  ...]]></description><category></category></item><item><title><![CDATA[2021-06-10 python 创建单链表]]></title><link>https://blog.youkuaiyun.com/Amber__py/article/details/117779278</link><guid>https://blog.youkuaiyun.com/Amber__py/article/details/117779278</guid><author>Amber__py</author><pubDate>Thu, 10 Jun 2021 19:57:46 +0800</pubDate><description><![CDATA[定义结点数据结构

class Node(object):
    def __init__(self, data):
        self.data = data
        self.next = None

单链表的代码实现
]]></description><category></category></item><item><title><![CDATA[2021-06-09 二维数组中的查找 & 替换空格]]></title><link>https://blog.youkuaiyun.com/Amber__py/article/details/117746569</link><guid>https://blog.youkuaiyun.com/Amber__py/article/details/117746569</guid><author>Amber__py</author><pubDate>Wed, 09 Jun 2021 16:34:02 +0800</pubDate><description><![CDATA[描述：

在一个二维数组中（每个一维数组的长度相同），每一行都按照从左到右递增的顺序排序，每一列都按照从上到下递增的顺序排序。请完成一个函数，输入这样的一个二维数组和一个整数，判断数组中是否含有该整数。

[[1,2,8,9],[2,4,9,12],[4,7,10,13],[6,8,11,15]]

给定 target= 7，返回true。

给定target=3，返回false。

实例1：

输入：7,[[1,2,8,9],[2,4,9,12],[4,7,10,13],[6,8,11,15...]]></description><category></category></item><item><title><![CDATA[2021-06-08 数组中重复的数字]]></title><link>https://blog.youkuaiyun.com/Amber__py/article/details/117712994</link><guid>https://blog.youkuaiyun.com/Amber__py/article/details/117712994</guid><author>Amber__py</author><pubDate>Tue, 08 Jun 2021 19:15:47 +0800</pubDate><description><![CDATA[描述：

在一个长度为 n 的数组里的所有数字都在 0 到 n-1 的范围内。 数组中某些数字是重复的，但不知道有几个数字是重复的。也不知道每个数字重复几次。请找出数组中任一一个重复的数字。 例如，如果输入长度为 7 的数组 [2,3,1,0,2,5,3] ，那么对应的输出是 2 或者 3 。存在不合法的输入的话输出 -1 。

实例：

输入：[2,3,1,0,2,5,3]

返回值：2

说明：2 或 3 都是对的

方法1：利用字典（哈希表）。从头到尾扫描数组的每个数字，每扫描到一个数字时，都可以用 ]]></description><category></category></item><item><title><![CDATA[曹健老师 TensorFlow2.1 —— 第六章 循环神经网络]]></title><link>https://blog.youkuaiyun.com/Amber__py/article/details/116009881</link><guid>https://blog.youkuaiyun.com/Amber__py/article/details/116009881</guid><author>Amber__py</author><pubDate>Mon, 26 Apr 2021 15:27:13 +0800</pubDate><description><![CDATA[第一章

第二章

第三章

第四章

第五章

本章目的：用 RNN 实现连续数据的预测 ( 以股票预测为例 )

6.1 循环核

循环核：具有记忆力，通过不同时刻的参数共享，实现了对时间序列的信息提取。循环核如下图所示，圆柱为记忆体，记忆体下面、侧面、上面分别有三组待训练的参数矩阵. 记忆体个数可被指定，改变记忆体容量，当记忆体个数被指定，输入、输出维度被指定，周围待训练参数的维度也就被限定了. 记忆体内存储着每个时刻的状态信息为，当前时刻循环核的输出特征为，计算公式为：







在前...]]></description><category></category></item><item><title><![CDATA[曹健老师 TensorFlow2.1 —— 第五章 卷积神经网络]]></title><link>https://blog.youkuaiyun.com/Amber__py/article/details/115741194</link><guid>https://blog.youkuaiyun.com/Amber__py/article/details/115741194</guid><author>Amber__py</author><pubDate>Wed, 21 Apr 2021 15:20:27 +0800</pubDate><description><![CDATA[第一章

第二章

第三章

第四章

本章目的：

在实际项目中，输入神经网络的是具有更高分辨率的彩色图片，使得送入全连接网络的输入特征数过多，随着隐藏层层数的增加，网络规模过大，待优化参数过多，很容易使模型过拟合
...]]></description><category></category></item><item><title><![CDATA[曹健老师 TensorFlow2.1 —— 第四章 网络八股扩展]]></title><link>https://blog.youkuaiyun.com/Amber__py/article/details/115710291</link><guid>https://blog.youkuaiyun.com/Amber__py/article/details/115710291</guid><author>Amber__py</author><pubDate>Thu, 15 Apr 2021 21:51:29 +0800</pubDate><description><![CDATA[第一章

第二章

第三章

本章目的：扩展六步法功能，并实现应用.

4.1 搭建网络八股总览

利用自制数据集，解决本领域应用，同时可利用数据增强，解决数据量过少问题，扩展数据，提高泛化力
	利用断点续训，实时保存最优模型
	利用参数提取获取各层网络最优的参数，在任何平台实现前向推理复现模型，实现应用
	利用 acc 和 loss 曲线可视化，查看训练效果
	利用实物应用程序，输入神经网络一组新的、从未见过的特征，神经网络输出预测结果，实现学以致用
4.2 自制数据集

把 .data_load() .]]></description><category></category></item><item><title><![CDATA[曹健老师 TensorFlow2.1 —— 第三章 神经网络八股]]></title><link>https://blog.youkuaiyun.com/Amber__py/article/details/115678947</link><guid>https://blog.youkuaiyun.com/Amber__py/article/details/115678947</guid><author>Amber__py</author><pubDate>Wed, 14 Apr 2021 21:38:50 +0800</pubDate><description><![CDATA[第一章

第二章

本章目的：使用 “ 八股 ” 搭建神经网络

3.1 搭建网络八股 Sequential

用 Tensorflow API：tf.keras 搭建网络八股

六步法：

import
	train，test                        # 喂入网络的训练集和测试集
	model = tf.keras.models.Sequential    # 在 Sequential 中搭建网络结构，逐层描述每层网络，即前向...]]></description><category></category></item><item><title><![CDATA[ICLR 2020 | Learn to explain efficient via neural logic inductive learning]]></title><link>https://blog.youkuaiyun.com/Amber__py/article/details/115456599</link><guid>https://blog.youkuaiyun.com/Amber__py/article/details/115456599</guid><author>Amber__py</author><pubDate>Wed, 14 Apr 2021 21:01:18 +0800</pubDate><description><![CDATA[如有翻译不当，请指正，谢谢。

原文链接：https://arxiv.org/pdf/1910.02481v2.pdf

GitHub 源码：https://github.com/gblackout/NLIL













By the way，在复现实验时，wn 数据集可正常运行，但运行 fb 数据集时，遇到了 KeyError，具体如下图：



在GitHub上问了作者，但是没得到答复 ... ...
...]]></description><category></category></item><item><title><![CDATA[曹健老师 TensorFlow2.1 —— 第二章 神经网络优化]]></title><link>https://blog.youkuaiyun.com/Amber__py/article/details/115531782</link><guid>https://blog.youkuaiyun.com/Amber__py/article/details/115531782</guid><author>Amber__py</author><pubDate>Tue, 13 Apr 2021 00:02:28 +0800</pubDate><description><![CDATA[第一章

本章目的：学会神经网络优化过程，使用正则化减少过拟合，使用优化器更新网络参数。

2.1 预备知识

tf.where(条件语句, 真返回A, 假返回B)

a = tf.constant([1,2,3,1,1])
b = tf.constant([0,2,3,4,5])
c = tf.where(tf.greater(a, b), a, b)
# 若 a&gt;b ,返回 a 对应位置的元素，否则返回 b 对应位置的元素

np.random.RandomState.rand(维度) 返回一个.]]></description><category></category></item><item><title><![CDATA[曹健老师 TensorFlow2.1 —— 第一章 神经网络计算]]></title><link>https://blog.youkuaiyun.com/Amber__py/article/details/115455680</link><guid>https://blog.youkuaiyun.com/Amber__py/article/details/115455680</guid><author>Amber__py</author><pubDate>Thu, 08 Apr 2021 21:11:18 +0800</pubDate><description><![CDATA[看该视频前建议先看一看神经网络基础，推荐吴恩达老师课程。

吴恩达老师视频课：https://pan.baidu.com/s/1ns0yUdF6HU0bz12fHu5ACw 提取码：xic2

曹健老师视频课程链接：https://www.bilibili.com/video/BV1B7411L7Qt?p=1

课程源码：https://pan.baidu.com/s/18JaAUNlYxO2g2_Xh7Mgmgw 提取码：03ra













...]]></description><category></category></item><item><title><![CDATA[Linux 下终于成功安装 pytorch ！（ Virtualenv 和 Anaconda 安装）]]></title><link>https://blog.youkuaiyun.com/Amber__py/article/details/115438920</link><guid>https://blog.youkuaiyun.com/Amber__py/article/details/115438920</guid><author>Amber__py</author><pubDate>Mon, 05 Apr 2021 11:26:56 +0800</pubDate><description><![CDATA[Virtualenv 安装
	
1. 安装virtualenv


pip install virtualenv

2. virturalenv 创建虚拟环境


virtualenv py_pytorch
# py_pytorch 为虚拟环境的名字
# 默认保存在当前路径


3. 激活虚拟环境


# 切换到创建环境时的路径！
souce py_pytorch/bin/activate


# 查看当前路径下的文件，可以看到当前路径下有没有自己创建的虚拟环境
ls

# 如果是创建在根目录下，要注意..]]></description><category></category></item><item><title><![CDATA[莫烦 pytorch 高阶内容]]></title><link>https://blog.youkuaiyun.com/Amber__py/article/details/115304580</link><guid>https://blog.youkuaiyun.com/Amber__py/article/details/115304580</guid><author>Amber__py</author><pubDate>Mon, 29 Mar 2021 21:22:13 +0800</pubDate><description><![CDATA[莫烦主页：https://mofanpy.com/

5. 高阶内容

5.1 为什么 torch 是动态的

TensorFlow 是先搭建好一个计算系统（计算图），一旦搭建好了，就不能改动了，所有的计算都会在这个图中流动。

PyTorch 是动态搭建，动态计算，每次都会重新搭建一个新的计算图。

用 RNN 的例子展示动态计算时，数据的格式是 ( batch, time_step, input_size )，通常在 TensorFlow 中会将 batch 设置为 None ，可以让 batch_si]]></description><category></category></item><item><title><![CDATA[莫烦 pytorch 高级神经网络结构]]></title><link>https://blog.youkuaiyun.com/Amber__py/article/details/115260882</link><guid>https://blog.youkuaiyun.com/Amber__py/article/details/115260882</guid><author>Amber__py</author><pubDate>Mon, 29 Mar 2021 16:17:35 +0800</pubDate><description><![CDATA[莫烦主页：https://mofanpy.com/

4. 高级神经网络结构

4.1 卷积神经网络CNN（Convolutional Neural Network）

1. 应用：计算机图片识别、自然语言处理、视频分析、药物发现、AlphaGo

2. 如何运作：

神经网络是由一连串的神经元组成，每一层神经层里存在很多的神经元，这些神经元也是神经网络识别事物的关键，当输入值是图片时，图片被转换成像素值矩阵；卷积是指神经网络不再对每个像素的输入信息做处理，而是对图片上每一小块像素区域的处理，这种做法加强了]]></description><category></category></item><item><title><![CDATA[win10 Anaconda 安装 gym 模块]]></title><link>https://blog.youkuaiyun.com/Amber__py/article/details/115294793</link><guid>https://blog.youkuaiyun.com/Amber__py/article/details/115294793</guid><author>Amber__py</author><pubDate>Mon, 29 Mar 2021 10:22:32 +0800</pubDate><description><![CDATA[进入需要安装 gym 模块的虚拟环境：例如我需要在 pytorch 环境中安装 gym 模块

# 激活虚拟环境 pytorch 是我的虚拟环境的名字
activate pytorch

pip 安装 gym 模块：

pip install gym

这时我的计算机报错：ERROR: Could not install packages due to an OSError: HTTPSConnectionPool

改用清华镜像安装


pip install gym matplotlib -i  htt]]></description><category></category></item><item><title><![CDATA[莫烦 pytorch 建造第一个神经网络]]></title><link>https://blog.youkuaiyun.com/Amber__py/article/details/115250283</link><guid>https://blog.youkuaiyun.com/Amber__py/article/details/115250283</guid><author>Amber__py</author><pubDate>Sat, 27 Mar 2021 10:09:37 +0800</pubDate><description><![CDATA[莫烦主页：https://mofanpy.com/

3.建造第一个神经网络

3.1 Regression 回归（关系拟合）

神经网络可以分成两种类型：分类（如房价问题）和回归（两类或多类）


import torch
from torch.autograd import Variable
import torch.nn.functional as F
import matplotlib.pyplot as plt

# 在torch当中，数据是有维度的
# torch.unsqueeze()把一维.]]></description><category></category></item><item><title><![CDATA[莫烦 pytorch]]></title><link>https://blog.youkuaiyun.com/Amber__py/article/details/115225953</link><guid>https://blog.youkuaiyun.com/Amber__py/article/details/115225953</guid><author>Amber__py</author><pubDate>Fri, 26 Mar 2021 16:47:28 +0800</pubDate><description><![CDATA[科普：

Neural Networks

神经网络是一种运算模型，由大量的节点和神经元与之间的联系构成。神经元会被训练或强化，形成固定的神经抑制形态，对特殊的信息有更强烈的反应。

神经网络如何训练：

需要非常多数据（带标签）；
	将数据进行很多次训练；
	对比预测答案和真实答案的差别，将差别反向传递回去，使每一个神经元向正确的方向改动；
每一个神经元都有自己的激活函数（activationfunction），函数给计算机一个刺激行为；

下一次训练时，利用改进后的神经元，可得到更高一点点的准确率；
.]]></description><category></category></item><item><title><![CDATA[windows使用git bash运行shell脚本]]></title><link>https://blog.youkuaiyun.com/Amber__py/article/details/115199391</link><guid>https://blog.youkuaiyun.com/Amber__py/article/details/115199391</guid><author>Amber__py</author><pubDate>Thu, 25 Mar 2021 10:42:42 +0800</pubDate><description><![CDATA[在windows运行shell脚本需要提前安装好Git，教程参考

配置python环境
例如，我需要使用的是anaconda配置的名为pytorch的虚拟环境，进入git bash，在任意目录下输入source activate pytorch ，这里的pytorch是虚拟环境的名字；
进入脚本所在目录
例如，我输入的目录是cd d:software/Anaconda3/pytorch_space/NLIL
运行shell脚步
网上有许多种运行命令，我使用的是*./run_wn.sh*，回车即可。

所有]]></description><category></category></item></channel></rss>