The advantage of this, as we will see later, is that our navigator only needs to include the item providers for the model types we are interested in as part of the composed adapter factory.
我们即将了解到,这个类的优势在于,导航器只需将我们所需要的模型类型的项目提供程序作为组合适配器工厂的一部分包括进来。
The sixth line takes advantage of this technique with puts "Price: #{item[:price]} Tax: #{item[:tax]}".
第 6 行代码的 puts "Price: #{item[:price]} Tax: #{item[:tax]}" 就利用了这项技术。
In that case, you can take advantage of the item-item calculations and ask the ItemBasedRecommender for the items that are most similar to the current item. Listing 5 demonstrates this in code.
对于这种情况,您可以利用项目计算并向ItemBasedRecommender请求与相当项目最相似的项目。
应用推荐