- 博客(20)
- 资源 (1)
- 收藏
- 关注
原创 UserWarning: `DataLoader` returned 0 length. Please make sure this was your intention.
按照别人的说法【https://github.com/RangiLyu/nanodet/issues/486】,我将config文件中的。
2024-04-17 14:43:51
382
原创 强化学习的学习笔记
本来像搞懂PPO,发信啊没有前置知识我根本看不懂啊。所以今天整体复习了以下强化学习中的DQN、Policy gradient 和 actor critic。这里分别对三者简单说明了思路,然后尝试用pytorch-like伪代码描述流程。希望基于此,最近能进一步看懂PPO。
2024-02-01 22:20:27
497
原创 递推方程的特征方程解法
f(n)=2f(n-1)+n+4 f(0)=41.首先把其简化为齐次的f(n)=2f(n-1)对于齐次的,1.构建特征方程 x^2-2*x = 02.x1 = 0 ; x2 = 23.构建通解 f(n) = c1*x1^n + c2*x2^n(若是出现相同解:c1*x1^n + c2*n*x2^n+c3*n^2*x3^n4.利用待定系数法得到c1、c2的值,得到了结果2.对于非齐次的部分,先设其通解为A1*n+A2(以为这是一次的)即有个通解A1*n+A2,将其带入原式:A1
2020-10-07 21:56:35
3723
原创 求递归方差的母函数方法
参考:https://blog.youkuaiyun.com/u010480899/article/details/614133431.构建母函数2.用递推关系使方差变形,同时在方程右边构建G(x)3.于是求出一个G(x)的表达式4.利用级数展开该式5.再对照母函数的def,得到递归方程...
2020-10-07 13:08:03
524
原创 Fisher optimal segmentation(Fisher最优分割)-python实现
FOS(Fisher optimal segmentation)是一种有序聚类方法import numpy as npimport jieba def normalizeRows(xx):# ''' 将矩阵正规化 x:ndarr return:ndarr ''' norm = [] for i in range(xx.shape[0]): mean = np.mean(xx[i]) std = np.std(x
2020-06-03 12:40:36
3414
5
原创 Implementing QQ_Chatbot with python
#Preview1.why i wrote this blog2.Whole article structure3.General Algorithm4.specific implementation5.Demo6.PlusPART I-----------Pass part I-----------I.CUZ I’d like to ‘water group’, my Nick...
2020-01-20 13:10:46
284
原创 java和cpp混合编程--jni的使用
使用jin进行java的交互,用一个例子来说明第一步:编写Java代码第二步:编译Java代码第三步:生成C语言头文件第四步:编写C代码第五步:生成C共享库第六步:运行Java程序//也就是说,我们的native sayHello()方法实际上是运行C的Java_NativeDemo_sayHello()这个方法,我们是不能随意写C函数名的的,只能这样写。第一步:编写Java代码...
2019-12-17 09:31:07
525
原创 python Inheritance and Derive
1.in py3,the class is also a object(everything is object)2.when call a func or attribution ,check the object 1st, and then seek in brothers , 3rd seek in parents 【self】->【bros】->【fathers】[...
2019-11-26 22:30:32
206
原创 import java.sql.DriverManager not accessible;
Connection connection = (Connection)DriverManager.getConnection(dbURL,userName,passWord);when I try to access mysql;this happened;I find that I cannot import java.sql.DriverManager .even java.sql...
2019-11-26 18:44:22
2651
7
翻译 聊天机器人在对话中的知识提取
聊天机器人在对话中的知识提取目 录1.引言 12.相关工作 23.知识提取过程 31.1研究方法 31.2答案聚类 54.构建一个神经会话代理 74.1模型 74.2数据集 74.3模型评估 95.模型改进的个人想法 95.总结和展望 10【摘要】聊天机器人的知识获取是设计一个聊天机器人的重要一环。然而,这一环是非常困难的,需要花费太多的时间代价。为了克服这个困...
2019-11-15 19:49:26
3553
原创 My understandof PID(not always right)
pid algoP: F = P*delta(x)like a force, hange refer to delta xD: A =D*(delta(x)/delta(t))like a friction,I: F = Pdelta(x) + Integral(Idelta(x),delta(t))a smart control, add force when delta t ...
2019-11-01 23:02:08
123
原创 CPP int2String
stringstream tempStr; string numStr; tempStr<<i; tempStr>>numStr;plus:get the length of a stringstr.size()
2019-10-22 07:32:02
294
原创 java abstract class and interface
1.the abstract classpackage ForDel;/*** @version: v1.0.0* @author: Showi* @date: 2019年10月15日 下午9:32:06* @Describe:* 1.abstrct class * [1]the access right:* private protected default public...
2019-10-15 22:12:30
106
原创 py3Tkinter_create A Window
1.create windowimport tkinter as tk#import the package tkintermainwindow = tk.Tk()#create a window mainwindow.title('mainWindow')#set title mainwindow.geometry('500x400')#set size mainwindow.mai...
2019-10-14 22:15:10
378
原创 Data Structure:array and list
array:1.array can sotore data and even array2.in some array,store actual datawhile in some array, store the information that if it exists in another array3.like: use a bit Vector to present a arra...
2019-10-09 07:31:51
146
原创 java class and obj
java Learning1.when code a class,The initial should be a capital2.commonly,a class def in a private file3.the java is public if not define4.Person p = new Person();the 2nd Person is access a cons...
2019-10-08 23:09:22
126
Welcome Pro
2019-01-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人