Hi,

I have question about, how can I real time make decision using a model I
have created with Spark ML.

1. I have some data and created model using it.

// Train the model

    val model = new LogisticRegressionWithLBFGS().setNumClasses(2).run(
trainingData)

2. I believe, I can use spark streaming to get real time feed and then
predict result against model created in step1

3. My question is, how can I do it in synchronous way?

For e.g. lets say if some customer logs in to my site, then according to
his data, I want to personalize his site. I want to send his attributes to
model and get prediction before rendering anything on page.

How can I do this synchronously?

Regards,

Suyog

Reply via email to