Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
User Score Computation
// Spark : Train the model and save features, weights in PMML format
saveModelToS3(model.toPMML(), // PMML string
"miles_away_from_store", // Feature names
// Inside user-scoring microservice : Compute the user score
features = Map("miles_away_from_store" -> miles_away_from_store,
"card_holder" -> card_holder,
"lives_in_rural_area" -> lives_in_rural_area,
"trips_past_year" -> trips_past_year)
user_score = modelEvaluator.evaluate(features)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.