2019年3月29日

数模国赛——致病基因

摘要: ## 读取数据 setwd("D:/Dasktop/数学建模/国赛2016/2016试题/B/B题附件") phenotype cc){ wh=c(wh,i) } } #length(wh);wh;colnames(genotype)[wh] ## 优比检验 cc=qchisq(alpha, df=1) #c(0.95,0.99,0.999) wh1=c() for(i in... 阅读全文

posted @ 2019-03-29 12:25 iUpoint 阅读(263) 评论(0) 推荐(0) 编辑

mysql 生成时间序列数据 - 存储过程

摘要: 由于时间自动转换为int值, 做一步转化,也可在调用时处理 use `test`; CREATE table test.test1 as SELECT state, id, `规格条码`, `色号条码`, `货号`, `在售平台`, `平台售价`, DATE_ADD('1900-01-01', In 阅读全文

posted @ 2019-03-29 12:03 iUpoint 阅读(1874) 评论(0) 推荐(0) 编辑

R实用小技巧

摘要: 输出重定向 全排列 链接 R 字符处理函数 阅读全文

posted @ 2019-03-29 12:00 iUpoint 阅读(143) 评论(0) 推荐(0) 编辑

python将文件夹下的所有csv文件存入mysql和oracle数据库

摘要: #oracle版 首先新建python脚本(d:/python/orclImport.py) 在命令行执行 python d:/python/orclImport.py # mysql版 阅读全文

posted @ 2019-03-29 11:59 iUpoint 阅读(660) 评论(0) 推荐(0) 编辑

遗传算法求解最优化问题

摘要: tic clc,clear load sj.txt %加载敌方100个目标的数据 x=sj(:,1:2:8);x=x(:); y=sj(:,2:2:8);y=y(:); sj=[x y]; d1=[70,40]; sj0=[d1;sj;d1]; %距离矩阵d sj=sj0*pi/180; d=zeros(102); for i=1:101 for j=i+1:102 te... 阅读全文

posted @ 2019-03-29 11:53 iUpoint 阅读(1334) 评论(1) 推荐(0) 编辑

R随机森林交叉验证 + 进度条

摘要: 交叉验证伪代码 阅读全文

posted @ 2019-03-29 11:52 iUpoint 阅读(2394) 评论(0) 推荐(0) 编辑

统一社会信用代码+组织机构代码 校验 python

摘要: 转自: https://blog.csdn.net/warrah/article/details/69338912 https://blog.csdn.net/qq_37142340/article/details/80695187 https://blog.csdn.net/u013361668/ 阅读全文

posted @ 2019-03-29 11:45 iUpoint 阅读(3829) 评论(0) 推荐(0) 编辑

mysql 分组排序前n + 长表转宽表

摘要: MySQL数据库优化的八种方式(经典必看) 建表 CREATE TABLE if not EXISTS `bb` ( `id` int not null primary key auto_increment, `aab001` varchar(20) DEFAULT NULL COMMENT '参保 阅读全文

posted @ 2019-03-29 10:54 iUpoint 阅读(882) 评论(0) 推荐(0) 编辑

sql 代码优化

摘要: 1. where 执行顺序:右→左,筛选多的放右边;计算难度小的放右边,sql老版本(只在基于规则的优化器中有效,新版本基于代价不存在这个问题): 2. 少用子查询; 3. union快,表结构得一致; 4. 条件中用到的字段建立索引; 5. 索引字段失效条件: a <> '1'; 如是数值型改为 阅读全文

posted @ 2019-03-29 10:32 iUpoint 阅读(121) 评论(0) 推荐(0) 编辑

导航