Myrrix中的多个模型 [英] Multiple models in Myrrix

查看:96
本文介绍了Myrrix中的多个模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的CSV文件:

I have a CSV file like this:


typeA,typeB
typeA,typeC
typeA,typeC
typeA,typeB

这里,typeA,typeB和typeC是3种不同类型的实体.将类型B和C视为两种不同类型的项目,将类型A视为用户.

Here, typeA, typeB and typeC are 3 different types of entities. Consider types B and C to be two different types of items and consider type A to be the users.

我可以通过将此CSV文件输入Myrrix来构建模型.该文件只有两种类型,即B(以前的CSV文件中的"B"项以用户身份出现在这里)和D.现在,假设我还有另一个CSV文件,如下所示:

I can build a model by feeding this CSV file into Myrrix. This file has two types only, B (the "B" items from the former CSV file are in here as users) and D. Now, suppose I have another CSV file like this:


typeB,typeD
typeB,typeD
typeB,typeD
typeB,typeD

在这里,我想获得有关TypeB的typeD推荐.为此,我必须有一个单独的Myrrix实例吗?是否可以有两个模型并选择推荐的模型?我想用Apache Mahout做到这一点很容易,但是我想不能像Myrrix那样获得实时setPreference和模型刷新的乐趣?

Here, I want to get recommendations of typeD for typeB. Must I have a separate Myrrix instance for this? Is it possible to have two models and choose which to recommend from? Doing this with Apache Mahout is easy I guess, but I wouldn't be able to get the joy of real-time setPreference and model refreshing like in Myrrix then I suppose?

我很乐意解决这个问题.

I would appreciate any idea to solve this.

推荐答案

是的,从概念上讲,这是两个不同的域.一个是A到B或C,另一个是B到D.这可能是用户到文章或帖子,以及文章到标签的用户. D在第一个中不存在,但恰好是第二个中所建议的.

Yes, these are conceptually two different domains. One is A-to-B-or-C, and the other is B-to-D. This might be users-to-articles-or-posts, and articles-to-tags. D doesn't exist in the first one, but is exactly what the second recommends.

分隔确实使事情变得简单.例如,您可以将两个模型托管在同一台计算机甚至JVM中.例如,考虑在两个端口上运行两个服务器.您可以通过访问一项或另一项服务来选择所需的一项.或者,您可以直接嵌入并直接使用两个ServerRecommender实例.

The separation does keeps things simple. You can, for example, host both models within the same machine or even JVM potentially. For example, consider running two servers on two ports. You can choose which one you want by accessing one or the other service. Or you could simply embed and use two instances of ServerRecommender directly.

在这方面,它与Mahout没什么不同,

It's not different than Mahout in this regard, no.

这篇关于Myrrix中的多个模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆