摘要: 按照网上的教程安装搜狗输入法后仍不能添加搜狗输入法,将Only Show Current Language选项去掉。 阅读全文
posted @ 2016-06-23 11:43 aldin 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 批量修改makefile收获 阅读全文
posted @ 2015-03-07 13:16 aldin 阅读(4794) 评论(0) 推荐(0) 编辑
摘要: 一般虚拟机分配1G内存足够但要多分配些CPU,可与主机处理器数相同cpu使用率一般不会很高,但虚拟机内存分配太多主机会很卡虚拟机处理器少,内存再多也没用 阅读全文
posted @ 2014-08-22 16:41 aldin 阅读(5179) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 /* Function prototypes with attributes */ 5 void main_constructor( void ) 6 __attribute__ ((no_instrument_function, ... 阅读全文
posted @ 2014-08-20 11:56 aldin 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 通过rbinom生成o-1分布,区分train和test利用glm生成基于每个特征的模型,然后计算损失率找出损失最小的特征来构建模型glm生成模型predict(model,data)进行预测 阅读全文
posted @ 2014-06-29 11:21 aldin 阅读(187) 评论(0) 推荐(0) 编辑
摘要: data #dataframe对象 含有v1,v2两列data[sort(data$v1,index.return=TRUE)$ix,] #对data的数据按v1排列,v1须为numeric as.numeric() 阅读全文
posted @ 2014-06-29 11:09 aldin 阅读(10716) 评论(0) 推荐(0) 编辑
摘要: 可以用R直接进行分析,具体步骤如下:1、R下载RODBC包,安装好。2、在http://dev.mysql.com/downloads/connector/odbc下载mySQL ODBC,安装好。3、windows:控制面板->管理工具->数据源(ODBC)->双击->添加->选中mysql OD... 阅读全文
posted @ 2014-05-20 10:34 aldin 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 字符串格式化 sprintf :returns a character vector containing a formatted combination of text and variable values. a<-sprintf("%.3f", pi)R 字符串变量 ... 阅读全文
posted @ 2014-04-22 20:03 aldin 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1 安装时将字符集设为gbk2 查看有哪些数据库 show databases 查看有哪些表 show tables 查看当前用户 select user()3 更改字段名称 alter table table_name change col_old col_new varchar(10)(属性) 更改字段属性 alter tabel table_name modify col_name varchar(10)(属性) 添加字段 alter table table_name add col_name NOT ... 阅读全文
posted @ 2014-03-16 15:41 aldin 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 存储: import pickle fileHandle = open ( 'pickleFile.txt', 'w' ) testList = [ 123, { 'Calories' : 190 }, 'Mr. Anderson', [ 1, 2, 7 ] ] pickle.dump ( testList, fileHandle ) fileHandle.close() 读取import pickle fileHandle = open ( 'pickleFile.txt' ,'r') testL 阅读全文
posted @ 2014-03-15 20:49 aldin 阅读(2090) 评论(0) 推荐(0) 编辑