会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
aldin
博客园
首页
新随笔
联系
管理
订阅
1
2
3
下一页
2016年6月23日
ubuntu 16 安装搜狗输入法
摘要: 按照网上的教程安装搜狗输入法后仍不能添加搜狗输入法,将Only Show Current Language选项去掉。
阅读全文
posted @ 2016-06-23 11:43 aldin
阅读(399)
评论(0)
推荐(0)
2015年3月7日
linux中configure文件默认执行结果所在位置
摘要: 批量修改makefile收获
阅读全文
posted @ 2015-03-07 13:16 aldin
阅读(4923)
评论(0)
推荐(0)
2014年8月22日
虚拟机如何分配内存和CPU
摘要: 一般虚拟机分配1G内存足够但要多分配些CPU,可与主机处理器数相同cpu使用率一般不会很高,但虚拟机内存分配太多主机会很卡虚拟机处理器少,内存再多也没用
阅读全文
posted @ 2014-08-22 16:41 aldin
阅读(5298)
评论(0)
推荐(0)
2014年8月20日
函数调用可视化
摘要: 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
阅读(312)
评论(0)
推荐(0)
2014年6月29日
R 线性回归 步骤
摘要: 通过rbinom生成o-1分布,区分train和test利用glm生成基于每个特征的模型,然后计算损失率找出损失最小的特征来构建模型glm生成模型predict(model,data)进行预测
阅读全文
posted @ 2014-06-29 11:21 aldin
阅读(194)
评论(0)
推荐(0)
R dataframe按照某一列排序
摘要: 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
阅读(10767)
评论(0)
推荐(0)
2014年5月20日
R 连接MySQL
摘要: 可以用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
阅读(505)
评论(0)
推荐(0)
2014年4月22日
R 字符操作
摘要: 字符串格式化 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
阅读(196)
评论(0)
推荐(0)
2014年3月16日
mysql 基本操作
摘要: 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
阅读(116)
评论(0)
推荐(0)
2014年3月15日
python 将复杂数据类型(list、dict)存储到文件 以及 读入 pickle模块
摘要: 存储: 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
阅读(2105)
评论(0)
推荐(0)
1
2
3
下一页
公告