- 博客(18)
- 收藏
- 关注
原创 浏览器访问远程服务器jupter notebook
安装anconda conda 安装jupter :conda install jupyter 生成jupter配置文件:jupyter notebook --generate-config 生成密码:进入python环境>>>from notebook.auth import passwd>>>passwd()#两次数据密码 #生成加密密码#exit()退出编辑jupter配置文件:将加密后密码填入c.NotebookApp.passwor.
2020-12-24 17:34:23
271
1
转载 用conda创建TensorFlow虚拟环境
01 用conda创建python虚拟环境1、首先在所在系统中安装Anaconda。可以打开命令行输入conda -V检验是否安装以及当前conda的版本。2、conda常用的命令。1)conda list 查看安装了哪些包。2)conda env list 或 conda info -e 查看当前存在哪些虚拟环境3)conda update conda 检查更新当前conda...
2019-12-19 17:09:43
1051
原创 shell单进程锁
#!/bin/bashSingletonCheck() { exec 7<>.$1.lock flock -n 7 || { echo Instance is running ... exit 1 }}SingletonCheckAndWait () { exec 7<>.$1.lock flock -n 7 || { ...
2019-09-27 15:53:11
517
转载 打印优快云文章
step1:打开Chrome浏览器step2:进入开发者模式(F12)step3:将一下代码copy到console中(可以先点击清理console内容),回车;(function(){$("#side").remove();$("#comment_title, #comment_list, #comment_bar, #comment_form, .announce,...
2019-05-31 11:58:38
2258
1
原创 常用Linux 命令
1.求两个文件差集:grep -F -v -f a.txt b.txt | sort | uniq注:b-a交集https://www.cnblogs.com/thatsit/p/6657993.htmlhttps://blog.youkuaiyun.com/autofei/article/details/6579320
2019-05-27 17:06:14
121
转载 SVN常用命令详解
命令的使用1、检出svncohttp://路径(目录或文件的全路径) [本地目录全路径]--username 用户名 --password 密码svncosvn://路径(目录或文件的全路径) [本地目录全路径]--username用户名 --password 密码svncheckouthttp://路径(目录或文件的全路径) [本地目录全路径] --userna...
2019-05-27 13:07:41
1470
转载 Hash算法碰撞率统计
转自https://blog.youkuaiyun.com/huangyueranbbc/article/details/84393060
2019-01-29 09:14:39
1690
原创 libfm
dump model://libfm-1.42.src/src/fm_core/fm_model.hvoid dump_model();void fm_model::dump_model() { std::ofstream ofile; ofile.open("./model"); for (uint i = 0; i < w.dim; i++) { ...
2018-12-10 12:39:51
213
原创 tf学习
一.基础:使用图(graph)表示计算任务 任务在会话(session)中执行 使用(tensor)表示数据 使用(Variable)维护状态 使用feed和fetch进行操作的(op)赋值和数据获取 tf程序被构建成图,然后通过运行图被执行。定义op(constant常量也属于op)import tensorflow as tf#创建一个常量op 返回一个1*2的矩...
2018-12-06 18:52:44
217
原创 tensorflow 警告处理
1、查看tf是gup版本还是cpu版本:import os from tensorflow.python.client import device_libos.environ["TF_CPP_MIN_LOG_LEVEL"] = "99"if __name__ == "__main__": print(device_lib.list_local_devices())2、查看...
2018-12-05 15:31:12
865
1
原创 Git
git clone addr [local name]建立本地仓库:addr:远程仓库地址(ssh://, http(s)://, git://)local name :本地仓库名字,缺省时,默认为远程仓库名git branch查看所有本地分支:当前所在分支前有*号标示#git branch* Mercy_liu
2017-01-12 14:39:47
290
原创 linux 进程跟踪
最近调用了包含并行处理逻辑的so库,压满了dn的cpu,由于集群cpu隔离机制太牛(low),为了不影响其它节点.....要控制下并行度。正好借此机会梳理下linux进程、线程相关的命令和工具。那么首先来看下进程和线程究竟是什么吧~
2017-01-03 18:12:50
459
原创 打印数据schema
%pysparkimport jsonpath = '****/part-19999.gz'data = sqlContext.read.json(path)data.printSchema()
2016-12-05 19:15:20
1449
原创 样本抽样
sample_ra = 0.04 random_scope = int(1/sample_ra) rand = random.randint(1,int(4/sample_ra)) if rand > (2*random_scope + 4) or rand < (2*random_scope): continue
2016-12-03 12:50:58
328
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人