04 2019 档案

摘要:1) 修改hadoop-env.sh 2) 修改core-site.xml 3) 修改hdfs-site.xml 阅读全文
posted @ 2019-04-30 14:30 竹心_兰君 阅读(131) 评论(0) 推荐(0)
摘要:package lastt; public class last { String name;int age; public last(String name,int age) { this.name =name; this.age=age; } public static void main(String []ar... 阅读全文
posted @ 2019-04-29 16:17 竹心_兰君 阅读(106) 评论(0) 推荐(0)
摘要:package ord; import java.util.ArrayList; public class order { public String orderid; public user user; public ArrayList pdls; public float ordernum; public float ordmon; pub... 阅读全文
posted @ 2019-04-29 16:06 竹心_兰君 阅读(818) 评论(0) 推荐(0)
摘要:package guss; import java.util.Scanner; public class gussnum { String myin; int y; public int gussnum() { Scanner mysc=new Scanner(System.in); String myin=mysc.nextLine(); int y=Integer.parseInt(myi... 阅读全文
posted @ 2019-04-29 08:28 竹心_兰君 阅读(144) 评论(0) 推荐(0)
摘要:package arr; public class arr4 { public static void main(String []args) { int []myarr = new int[5]; myarr[0]=2; myarr[1]=8; myarr[2]=1; myarr[3]=5; myarr[4]=4; int tmp=myarr[0]; for(int j=0;jmyarr[... 阅读全文
posted @ 2019-04-29 08:13 竹心_兰君 阅读(173) 评论(0) 推荐(0)
摘要:目录: 阅读全文
posted @ 2019-04-26 11:41 竹心_兰君 阅读(199) 评论(0) 推荐(0)
摘要:基于多线程的木头人游戏,等待时间随机 阅读全文
posted @ 2019-04-25 13:03 竹心_兰君 阅读(183) 评论(0) 推荐(0)
摘要:1 public class arr{ 2 int []arr; 3 public arr(int a) { 4 this.arr = new int[10]; 5 for(int x= 0;x<a;x++) { 6 arr[x]=x+2; 7 } 8 } 9 10 ... 阅读全文
posted @ 2019-04-24 17:05 竹心_兰君 阅读(101) 评论(0) 推荐(0)
摘要:public class f_w { public static void main(String []args) { int a=0; System.out.print("_info__while"); while(a<10) { a+=1; if(a == 5) { ... 阅读全文
posted @ 2019-04-24 16:16 竹心_兰君 阅读(211) 评论(0) 推荐(0)
摘要:#useradd 添加用户 #passwd 用户名 #密码 #clear 清屏 #ls | more 查看更多三行内容 #ls | less #exit 退出 #su -用户名 #date "042208002016" #ls 当前文件目录 #ls -l 文件详细信息 #ls -a 查看隐藏文件 #ls -l/根目录文件详细信息 #cd /bin 配置文件 #cd /sbin 系统可执行文... 阅读全文
posted @ 2019-04-22 08:03 竹心_兰君 阅读(133) 评论(0) 推荐(0)
摘要:设置变量/set varibale 1、定义变量(子转换): 原始数据 设置获取变量:点击获取字段,自动获取变量名称和字段名称 引用变量: 输出: kettle.properties 文件存储在.kettle目录下 var=value 重启spoon 7.1版本中编辑-编辑kettle.proper 阅读全文
posted @ 2019-04-20 20:42 竹心_兰君 阅读(966) 评论(0) 推荐(0)
摘要:接arg参数: 通过命令行进行变量赋值和引用 定义跟界面定义相同: 赋值(转换): 运行命令到kettle目录下 pan /file:path "/param:aa="bb"" "/param:file="abc"" 阅读全文
posted @ 2019-04-20 20:42 竹心_兰君 阅读(534) 评论(0) 推荐(0)
摘要:1、定义子服务器 新建子服务器中有一个必须为主服务器 新建集群 在需求集群运行的步骤中右键集群进行使用 阅读全文
posted @ 2019-04-20 20:42 竹心_兰君 阅读(407) 评论(0) 推荐(0)
摘要:》流查询: 1、转换设计 2、主数据 3、查询数据 4、流查询 5、数据预览 查询中有重复数据默认获取最后一条:查询数据中有重复数据,默认获取到了最后一条数据。 主数据中无匹配数据则在结果集中返回null值。 》数据库查询: 主数据-数据库数据: 定义数据库查询: 勾选查询失败则忽略: 勾选多行结果 阅读全文
posted @ 2019-04-20 20:41 竹心_兰君 阅读(992) 评论(0) 推荐(0)
摘要:思路1: 1、提前建好ts时间表,设置两个字段分别为current_t和load_t,current用于比较原表中日期的上限,load_t则为上次加载的日期,几位原表中日期的下限。 2.1、新建转换1,获取当前系统日期,并赋值给变量${SYSDATA},然后更新到ts表中 在同一转换中通过表输入获取 阅读全文
posted @ 2019-04-20 20:41 竹心_兰君 阅读(5934) 评论(2) 推荐(0)
摘要:模糊匹配: 1、主数据/查询数据 2、模糊匹配 3、输出:jaro/jaro winkler/pair letters similarity(各自算法的匹配度measure value) http client/http post 阅读全文
posted @ 2019-04-19 11:17 竹心_兰君 阅读(507) 评论(0) 推荐(0)
摘要:创建表: create table stu_info( id int identity(1,1) not null primary key clustered, name char(10) not null, score numeric not null ) 新建主键: create table stu_info( id int identity(1,1) not null, name ... 阅读全文
posted @ 2019-04-18 10:29 竹心_兰君 阅读(332) 评论(0) 推荐(0)
摘要:1、定义: 编辑-设置-命名参数 在当前界面下定义参数名称和缺省值。 2、引用:原始数据 通过${var}引用变量 输出 注:1、字符串在命名参数引用是需要添加单引号的,但位置参数是不需要进行转译; 2、引用变量时需要勾选替换sql语句.... 3、变量的生成双击空白处也可以打开属性 4、在sele 阅读全文
posted @ 2019-04-17 13:48 竹心_兰君 阅读(4350) 评论(0) 推荐(0)
摘要:SGD神经网络以及python中实现 1、SGD(stochastic gradient descend):<1>数据抽取;<2>计算梯度;<3>参数更新;<4>循环 2、三层SGD网络组件:隐藏层(1),隐藏层(2),输出层,损失函数 2.1隐藏层: <1>激活函数/激励函数:sigmoid函数和 阅读全文
posted @ 2019-04-17 08:07 竹心_兰君 阅读(352) 评论(0) 推荐(0)
摘要:图像金字塔:图像不断缩放1 import cv2#定义金字塔函数#传入参数分为为图像,缩放比例,最小size 2 def img_pyramid(img,scale,minsize):#调用1次返回1次 3 yield img 4 while minsize[1] < img.shape[0] or minszie[0]<img.shape[1] : 5 image=cv2.resize(img... 阅读全文
posted @ 2019-04-16 13:54 竹心_兰君 阅读(524) 评论(0) 推荐(0)
摘要:生成数据 画图 注:在使用matplotlib的时候四个边框都出现了刻度,可以设置顶部和左部的刻度分别和底部和右部刻度重叠。 pca应用  阅读全文
posted @ 2019-04-15 17:10 竹心_兰君 阅读(206) 评论(0) 推荐(0)
摘要:更新: 1.1更新表: 目标表: 插入更新: 2.1匹配表: 目标表: 插入/更新转换 目标表 阅读全文
posted @ 2019-04-15 12:45 竹心_兰君 阅读(4401) 评论(0) 推荐(0)
摘要:表输出: 字段选择: 注:字段选择可以输出匹配后的选中列,表输出则输出匹配后的所有列。 阅读全文
posted @ 2019-04-15 11:32 竹心_兰君 阅读(8894) 评论(0) 推荐(0)
摘要:1、表输入中使用?占位作为kettle转换变量 数据预览: 获取变量数据: 使用?传入变量 需要勾选替换sql语句中的变量,并选则从步骤插入数据中所在步骤 数据预览 阅读全文
posted @ 2019-04-15 11:17 竹心_兰君 阅读(764) 评论(0) 推荐(0)
摘要:基于socket实现文件的传输以及md5验证 server: 阅读全文
posted @ 2019-04-12 16:30 竹心_兰君 阅读(181) 评论(0) 推荐(0)
摘要:time模块: 阅读全文
posted @ 2019-04-11 10:22 竹心_兰君 阅读(140) 评论(0) 推荐(0)
摘要:random与numpy.random对比: 1、random.random():生成[0,1)之间的随机浮点数; numpy.random.random():生成[0,1)之间的随机浮点数; numpy.random.random(size=(2,2)),生产一个2维的随机数组,每维2个随机数,数 阅读全文
posted @ 2019-04-10 14:18 竹心_兰君 阅读(1478) 评论(0) 推荐(1)
摘要:1、创建: 2、增加 3、删除 4、查找(索引) 阅读全文
posted @ 2019-04-08 20:21 竹心_兰君 阅读(1909) 评论(0) 推荐(0)
摘要:描述:同一文件夹下有多个工作簿,且表结构相同,需要把文件夹下的各个工作表的内容合并到同一工作簿中。 在文件夹下新建工作表,在新建工作表下插入宏。 运行宏合并数据 注:本次合并前提为合并内容表头相同,下节出示表头不同的解决方法。 阅读全文
posted @ 2019-04-08 20:21 竹心_兰君 阅读(1541) 评论(1) 推荐(0)
摘要:hasattr/getattr/setattr/delattr #通过字符串判断/获取/新增/删除对象属性或方法 class att(object): def __init__(self,var): self.var=var def func(self): print('%s is funcing' 阅读全文
posted @ 2019-04-08 20:20 竹心_兰君 阅读(133) 评论(0) 推荐(0)
摘要:server端和client端 1、server端: import socket server=socket.socket() server.bind(('localhost',8080)) server.listen() conn,attr=server.connect() data=conn.r 阅读全文
posted @ 2019-04-08 20:20 竹心_兰君 阅读(134) 评论(0) 推荐(0)
摘要:匹配/查找/替换/分割函数: 阅读全文
posted @ 2019-04-08 17:19 竹心_兰君 阅读(193) 评论(0) 推荐(0)
摘要:PLA(Principal Component Analysis)主成分分析: 思路1:坐标旋转 1、数据分布以及投影; 2、特征值以及特征向量 思路2: 未完待续... 阅读全文
posted @ 2019-04-08 14:21 竹心_兰君 阅读(189) 评论(0) 推荐(0)
摘要:client端: server端: 阅读全文
posted @ 2019-04-08 11:21 竹心_兰君 阅读(133) 评论(0) 推荐(0)
摘要:1、python高阶函数和嵌套函数 1.1高阶函数 1.2嵌套函数 2.1 原始函数 2.2 装饰器 阅读全文
posted @ 2019-04-02 14:44 竹心_兰君 阅读(342) 评论(0) 推荐(0)
摘要:接上节: 3、梯度(gradient): def numerical_gradient(f,x): h=1e-5 grad=np.zeros_like(x) for index_x in range(x.size): tmp=x[index_x] x[index_x]=tmp+h fxh1=f(x) 阅读全文
posted @ 2019-04-01 15:40 竹心_兰君 阅读(220) 评论(0) 推荐(0)
摘要:import resquests #import urllib.request from bs4 import BeautifulSoup from collections import OrderedDict import pandas as pd import numpy as np impor 阅读全文
posted @ 2019-04-01 12:46 竹心_兰君 阅读(234) 评论(0) 推荐(0)
摘要:一、基本定义 class cl(object): def __init(self,var) self.var=var def func(self,i) print('%s is in %s'%(i,self.var)) c=cl(var)#实例化 c.var#属性 c.func()#方法 type( 阅读全文
posted @ 2019-04-01 12:03 竹心_兰君 阅读(224) 评论(0) 推荐(0)
摘要:1、Pandas库的读取操作 from pandas import read_excel dr=read_excel(filename,header) dr#dataframe数据 dw=DataFrams(data=dict,columns=dict.keys()) dw.to_excel(fil 阅读全文
posted @ 2019-04-01 11:45 竹心_兰君 阅读(1072) 评论(0) 推荐(0)