liyonghui160com.iteye.com/
liyonghui160com · 共 292 篇文章
[置顶] 超越算法来看待个性化推荐
一提到个性化推荐,大家一般会想到协同过滤、文本相似等推荐算法,或是更高阶的模型推荐算法,百度的张栋说过,推荐40%取决于UI、30%取决于数据、20%取决于背景知识,虽然本人不是很认同这种比例,但推荐系统中,推荐算法起的作用起的作用是非常有限的。 就像任何数据挖掘应用一样,算法不是起决定作用的,背景知识、数据很重要。通过算法或数学模型来描述和解决问题,我觉得是工科或者理科背景同学的习惯性思维,为什么会有这种习惯性思维?很简单,因为受自己的知识背景限制。 个性化推荐研究的对象是人和物品,针对人的层次,目前个性化研究领域上,用户建模信息主要包括用户喜欢的物品、风格、品类等,用这些比较静态的信息来…
2015-01-08 11:21 · 推荐&统计系统 · 评论(2)
[置顶] 关于推荐个人观点
回想起来,我也做推荐了3年多了,最近公司做了调整招聘了很多算法工程师,以为需要多么高大上的算法才能搭建起来的,从实践中走过来,我只想说【不是这样的】 第一次接触推荐系统是在四年前入职的时候,那时候,机器学习和大数据都是没有的概念,什么大数据处理开源软件根本不存在,我们用多台计算机web程序记录用户行为,用.net的wcf框架实现了和现在mapreduce一样的功能,分析了用户的日志,一台分发任务,其余计算计算完回传到分发任务的这台计算机,这台计算机合并各台回传数据批量入库,到现在程序还在使用中。而现在就是每天晚上数据部会同步到他们的数据仓库中。也许在现在很多人眼里看来很可笑吧! 当然推荐的数…
2014-06-12 15:36 · 推荐&统计系统 · 评论(2)
openresty的安装配置
-----------------------------openresty的安装配置: yum -y install gcc gcc-c++ autoconf automake yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel openresty下载地址: http://openresty.org/en/download.html docker专用: https://github.com/openresty/docker-openresty tar zxvf ... cd openresty/ ./co…
2017-01-23 17:28 · nginx lua · 评论(0)
nginx openresty组件介绍
---------------------缓存: 1、php的fastcgi缓存 fastcgi_cache 见上面配置:php fastcgi的缓存: http://www.360doc.com/content/15/0816/14/552866_492084033.shtml https://zhangge.net/5042.html https://github.com/FRiCKLE/ngx_cache_purge/ 2、缓存代理页面 proxy_pass_cache 见上面配置:proxy代理缓存 实现:本地文件的形式 http://www.open-open.com/lib/vi…
2017-01-23 17:27 · flume-ng · 评论(0)
location匹配规则
------------------location匹配规则: location = / { # 只匹配"/". [ configuration A ] } location / { # 匹配任何请求,因为所有请求都是以"/"开始 # 但是更长字符匹配或者正则表达式匹配会优先匹配 [ configuration B ] } location ^~ /images/ { # 匹配任何以 /images/ 开始的请求,并停止匹配 其它location [ configuration C ] } location ~* \.(gif|jpg|jpeg)$ { # 匹配以 gif, jpg, or …
2017-01-23 17:24 · nginx lua · 评论(0)
nginx.conf配置文件详解
#运行用户 user www www; #启动进程,通常设置成和cpu的数量相等 worker_processes 4; worker_cpu_affinity 0001 0010 0100 1000; worker_processes 8; worker_cpu_affinity 00000001 00000010 00000100 00001000 00010000 00100000 01000000 10000000; #全局错误日志及PID文件 日志级别:debug|info|notice|warn|error|crit error_log /var/log/nginx/error.…
2017-01-23 17:21 · nginx lua · 评论(0)
hive中空值判断
hive中空值判断基本分两种 (1)NULL 与 \N hive在底层数据中如何保存和标识NULL,是由 alter table name SET SERDEPROPERTIES('serialization.null.format' = '\N'); 参数控制的 比如: 1.设置 alter table name SET SERDEPROPERTIES('serialization.null.format' = '\N'); 则:底层数据保存的是'\N',通过查询显示的是'NULL' 这时如果查询为空值的字段可通过 语句:a is null 或者 a='\\N' 2.设置 alter ta…
2017-01-23 14:54 · hive · 评论(0)
jQuery的ajax jsonp的使用
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Untitled Page</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"…
2016-12-12 12:59 · jquery · 评论(0)
ajax请求中设置特殊的RequestHeader
一.ajax请求,没有跨域,设置http header头部 $.ajax({ type: "post", url:"http://abc.cc/qrcode3/index.php/home/index/testpost", dataType: "json" data: {"key":"value"}, // headers : {'Authorization':'Basic bmVvd2F5Oe4lb3dheQ=='}, beforeSend: function(xhr) { xhr.setRequestHeader("Authorization", "Basic bmVvd2F5Oe4lb…
2016-12-12 10:40 · java · 评论(0)
mongodb 3.2
mongodb的驱动包: https://docs.mongodb.com/ecosystem/drivers/java/ https://github.com/mongodb/mongo-csharp-driver/tree/master 1、单独启动: ./mongod -port=27017 -fork -bind_ip=192.168.149.90 -dbpath=/export/App/mongodb-linux-x86_64-3.2.10/data -logpath=/export/App/mongodb-linux-x86_64-3.2.10/log/mongodb.log -…
2016-11-11 14:43 · mongodb · 评论(0)
linux安装mongodb 参数配置
详细介绍看文档:http://www.runoob.com/mongodb/mongodb-linux-install.html Linux下安装 安装 下载 执行下面命令,下载压缩包 1 curl -0 https://fastdl.mongodb.org/linux/mongodb-linux-i686-2.6.0.tgz 解压 执行下面命令解压下载好的文件 1 tar -zxvf mongodb-linux-i686-2.6.0.tgz 将解压后的目录复制到要运行mongodb的目录 执行下面命令拷贝mongodb 1 2 mkdir -p /opt/mongodb cp -R -n …
2016-11-09 10:21 · mongodb · 评论(0)
hget hmget redis api使用
适用于,一个key 对应多个key的值的存储,如:商品的属性,属性值 Map map = new HashMap(); map.put("uid", "10000"); map.put("username", "chenxu"); map.put("address", "chenxu"); map.put("age", "chenxu"); map.put("title", "chenxu"); redis.hmset("hash", map); //得到map下面的username的值 System.out.println(redis.hget("hash", "username")); …
2016-10-26 11:22 · Redis · 评论(0)
spring map list 注入
1、注入list <!-- Construct List --> <bean id="nameList" class="java.util.ArrayList"> <constructor-arg> <list> <value>xxx</value> </list> </constructor-arg> </bean> 2、注入map <!-- Construct Map --> <bean id="nameMap" class="java.util.HashMap"> <constructor-arg> <map> <entry key="xxx" value-ref="nameList"…
2016-10-26 11:19 · spring · 评论(0)
Spring自动注入properties文件
1. 因为在下面要用到Spring的<util />配置,所以,首先要引入其对应的命名空间,即要在applicationContext.xml中加入以下的配置: Xml代码 xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation=" http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd"> 2.既然要让Spring使用注解来自动注入,则要让其去…
2016-10-13 15:29 · java · spring · util:properties · 评论(0)
netty4.0.23 初学的demo
netty4.0.23 初学的demo 例子共4个文件,用到的jar包有: netty-all-4.0.23.Final.jar log4j.jar (apache的) commons-logging-1.1.1.jar(apache的) 文件 TcpServerHandler Java代码 package test.netty; import org.apache.log4j.Logger; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInboundHandler; …
2016-09-29 17:52 · netty · 评论(0)