Re: ecommerce template prediction based on price

2016-10-18 Thread waheed iqbal
Thank you kenneth. 

  Show original message On Tuesday, October 18, 2016 11:01 AM, Kenneth Chan 
 wrote:
 

 You could add the price as "properties" of item.Then modify the Query class to 
add 'price' as one of field
Modify isCandidate() function to take the price into account 
https://github.com/apache/incubator-predictionio-template-ecom-recommender/blob/23daa4b66015af0a45f0f3cb0115c547ca00958a/src/main/scala/ECommAlgorithm.scala#L553

Kenneth


On Mon, Oct 17, 2016 at 10:26 PM, waheed iqbal  wrote:

Dear all, 
I am using scala ecommerce recommendation template and now I would like to have 
an option to recommend items based on specific price range. Would it be 
possible using the template or I may have to modify the template?
  
|  
|  
|  
|   ||

  |

  |
|  
||  
apache/incubator-predictionio- template-ecom-recommender
 incubator-predictionio- template-ecom-recommender - PredictionIO E-Commerce 
Recommendation Engine Template (Scala...  |   |

  |

  |

 

Thanks, Waheed



   

Universal Recommender date boosts

2016-10-18 Thread Tom McCaul
Hi,

I'm setting up UR to return an ordered list of items for a category by
popularity but I wanted to boost new in items.

So far, I'm using an attribute to create a boost for those new products but
this isn't the most ideal set up.  I'd prefer for the boost to be weighted
over time, so on day 1, the product receives the biggest boost and by day
28 (just before it's no longer considered new) it's at its lowest.

Does anyone have any suggestions how I could best approach this?

Thanks,
Tom
-- 
*Tom Ltd.*
26 Chelsea Wharf
15 Lots Road
London
SW10 0QJ

Office +44 207 351 3521
Mobile +44 774 010 4045
t...@tomandco.co.uk


pio train -- --master yarn-cluster | Error

2016-10-18 Thread amal kumar
Hi,

We are using Spark on yarn and after referring the below URL, we have been
able to submit the jobs to yarn from remote machine (i.e. PredictionIO
Server).

http://theckang.com/2015/remote-spark-jobs-on-yarn/

1. copied core-site.xml and yarn-site.xml from Yarn cluster onto remote
machine (i.e. PredictionIO Server)
2. set the HADOOP_CONF_DIR environment variable in spark-env.sh (locally
installed copy) on the remote machine to locate the files core-site.xml and
yarn-site.xml


Now, when I am trying to train the model using the below command, I get a
new error.

pio train -- --master yarn-cluster

*Console Error Logs:*
java.io.FileNotFoundException: File does not exist:
hdfs://ip-172-31-45-33.us-west-2.compute.internal:8020/user/root/.sparkStaging/application_1476763882145_0069/hbase-site.xml

*Yarn Error Logs:*
[ERROR] [CreateWorkflow$] Error reading from file: File
file:/home/user/PredictionIO/SimilarProductRecommendation/engine.json does
not exist. Aborting workflow


I also tried to pass the file path, but no luck.

pio train -- --master yarn-cluster  --files
file:/home/user/PredictionIO/SimilarProductRecommendation/engine.json


Thanks,
Amal


Re: PredictionIO with Remote Spark | pio train error

2016-10-18 Thread amal kumar
Hi,

We are using Spark on yarn and after referring the below URL, we have been
able to submit the jobs to yarn from remote machine (i.e. PredictionIO
Server).

http://theckang.com/2015/remote-spark-jobs-on-yarn/

1. copied core-site.xml and yarn-site.xml from Yarn cluster onto remote
machine (i.e. PredictionIO Server)
2. set the HADOOP_CONF_DIR environment variable in spark-env.sh (locally
installed copy) on the remote machine to locate the files core-site.xml and
yarn-site.xml


Now, when I am trying to train the model using the below command, I get a
new error.

pio train -- --master yarn-cluster


Error:
[ERROR] [CreateWorkflow$] Error reading from file: File
file:/home/user/PredictionIO/SimilarProductRecommendation/engine.json does
not exist. Aborting workflow


I also tried to pass the file path, but no luck.

pio train -- --master yarn-cluster  --files
file:/home/user/PredictionIO/SimilarProductRecommendation/engine.json


Thanks,
Amal


Re: ecommerce template prediction based on price

2016-10-18 Thread Kenneth Chan
You could add the price as "properties" of item.
Then modify the Query class to add 'price' as one of field

Modify isCandidate() function to take the price into account
https://github.com/apache/incubator-predictionio-template-ecom-recommender/blob/23daa4b66015af0a45f0f3cb0115c547ca00958a/src/main/scala/ECommAlgorithm.scala#L553

Kenneth



On Mon, Oct 17, 2016 at 10:26 PM, waheed iqbal  wrote:

> Dear all,
>
> I am using scala ecommerce recommendation
>  
> template
> and now I would like to have an option to recommend items based on specific
> price range. Would it be possible using the template or I may have to
> modify the template?
>
> apache/incubator-predictionio-template-ecom-recommender
> incubator-predictionio-template-ecom-recommender - PredictionIO
> E-Commerce Recommendation Engine Template (Scala...
>
> 
>
>
> Thanks,
> Waheed
>