LiuDongdong

爱好由来落笔难,一诗千改心始安。

globalVariable&Lock

1. 本文件中 # 定义全局变量 num = 1 # 使用全局变量,并对其赋值 def fun1(): global num print("num= " + str(num)) num = 10 print("num= " + str(num)) 2. 使用其他文件中 teest1.py # 定义全局变量 num = 1 # 设置变量值 def set_num(p):

Rec_paper

Liu, Hongtao, et al. “NRPA: Neural Recommendation with Personalized Attention.” Proceedings of the 42nd International ACM SIGIR Conference on Research and Development in Information Retrieval. 2019. Paper: NRPA Summary propose a neural recommendation approach with personalized attention to learn personalized representations of users and items from reviews, to select different important words and reviews for different users/items. review encoder to learn representations of reviews from words and user/item encoder to

vpn

VPN技术通过密钥交换、封装、认证、加密手段在公共网络上建立起私密的隧道,保障传输数据的完整性、私密性和有效性。OpenVPN是近年来新出现

Environment

1. Maven 安装 1.1. 下载 1.2. 解压 tar zxvf apache-maven-3.6.1-bin.tar.gz -C /softdowload 1.3. 环境变量 vim ~/.bashrc export M2_HOME=/opt/apache-maven-3.6.1 export PATH=$PATH:$M2_HOME/bin source ~/.bashrc mvn -version 2. Java 百度云盘下载JDK1.8安装包 sudo tar -zxvf ./jdk-8u162-linux-x64.tar.gz -C /usr/java/jdk1.8.0_261 #set oracle jdk environment export JAVA_HOME=/usr/java/jdk1.8.0_261 export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=${PATH}:${JAVA_HOME}/bin #注意 java -version

Pdf&Cdf&Pmf

1. PDF&CDF&PMF 2. code import numpy as np import matplotlib.pyplot as plt import os from scipy import stats import seaborn as sns def readTxt(path): f = open(path,'r', encoding='UTF-8') dataList = [] dataList=[line.split(":")[-1].split("\n")[0] for line in f.readlines()] dataList=[float(i) for i in dataList] return dataList data=['52.20153254455275', '48.421227186748', '50.95434359918541'] data=[float(i) for i in data] fs_xk = np.sort(data) hist, bin_edges = np.histogram(fs_xk) width = (bin_edges[1] - bin_edges[0]) * 0.95 plt.bar(bin_edges[1:], hist/sum(hist), width=width, color='#5B9BD5') cdf = np.
0%