{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Insights /
avatar image
0
Question by Cladius Fernando · Apr 14, 2016 at 12:09 AM · 291 Views errorsinsightsr

How to resolve errors in Score Jobs?

While scoring one of my prediction models I encountered the following error:

sh: sns-cmd: command not found

Any pointers on how to resolve this?

Comment
Add comment Show 3
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image amalavalli@apigee.com ♦ · Apr 14, 2016 at 05:22 PM 0
Link

Can you give more details? Can you give a screenshot of the log and your R snippet?

avatar image Cladius Fernando amalavalli@apigee.com ♦   · Apr 14, 2016 at 08:01 PM 0
Link

I've added you to my insights org. You can view the log online here. The R script is an adaptation of the sample script pointing to my catalog instead of the default RetailDatasets catalog.

avatar image amalavalli@apigee.com ♦ Cladius Fernando · Apr 14, 2016 at 09:21 PM 0
Link

Thanks for adding. Can you provide me your R script for model and score?

Close

1 Answer

  • Sort: 
avatar image
1
Best Answer

Answer by amalavalli@apigee.com · Apr 14, 2016 at 10:07 PM

Basically, there is no correlation found in the model. modelObject$stream(topN = -1) should tell you that if there are like 2 or 3 lines only. My guess is that it has to do with dimension value in setProfile method. It looks like you might have something like setProfile(<OTHER PARAMS>, dimensions = list(c("AgeGroup","Gender","IncomeGroup","MaritalStatus","State","HouseholdSize")))

change it to

setProfile(<OTHER_PARAMS>, dimensions = list("AgeGroup","Gender","IncomeGroup","MaritalStatus","State","HouseholdSize", c("AgeGroup","Gender"),c("AgeGroup","IncomeGroup"), c("AgeGroup","MaritalStatus"), c("AgeGroup","State"), c("AgeGroup","HouseholdSize"), c("Gender","IncomeGroup"), c("Gender","MaritalStatus"),c("Gender","State"),c("Gender","HouseholdSize"), c("IncomeGroup","MaritalStatus"),c("IncomeGroup","State"),c("IncomeGroup","HouseholdSize"), c("MaritalStatus","State"), c("MaritalStatus","HouseholdSize"), c("State","HouseholdSize")))

Basically, in your script you are telling the model to use:

AgeGroup and Gender and IncomeGroup and MaritalStatus and State and HouseholdSize as *one combination* and try to find correlation. This might not have enough support since this could be a too narrow of a marker.

In the change that i have suggested, we are telling the model to use:

AgeGroup or Gender or IncomeGroup, ....

OR

AgeGroup and Gender

OR

AgeGroup and IncomeGroup

OR

etc

This way we try to find correlations for each combination. So the bottom line is that, usually with experiments we have done so far, 2 or max of 3 dimensions as one combination works well. But ultimately it depends on the data.

This might be little confusing at first. And the tutorial does not talk about this actually.

Comment
Add comment Show 2 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Cladius Fernando   · Apr 14, 2016 at 10:26 PM 0
Link

Thanks for the detailed answer and suggesting the changes in the script. I'll rerun the script and let you know the outcome. Could you meanwhile convert your above comment to an answer so that I can accept it?

avatar image amalavalli@apigee.com ♦ Cladius Fernando · Apr 14, 2016 at 11:38 PM 0
Link

I converted the comment to an answer.

Follow this Question

Answers Answers and Comments

23 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Has anyone tried running R locally and connecting to the Insights environment from a windows machine? 2 Answers

Unable to execute model 2 Answers

Is it possible to connect backend databases like mongodb,Nosql with Apigee Insight? 1 Answer

What's the process to see the descriptive and predictive analysis in Apigee Insights? 1 Answer

Can one provide me POC in Apigee Insight? 0 Answers

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges