24
CUSTOMER SAP BusinessObjects Predictive Analytics 3.1 2017-10-26 Desktop Installation Guide

Desktop Installation Guide

  • Upload
    others

  • View
    13

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Desktop Installation Guide

CUSTOMER

SAP BusinessObjects Predictive Analytics 3.12017-10-26

Desktop Installation Guide

Page 2: Desktop Installation Guide

Content

1 Document History. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

2 SAP BusinessObjects Predictive Analytics Desktop Edition. . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

3 Installing SAP BusinessObjects Predictive Analytics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

3.1 Installation Prerequisites. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

3.2 Installing SAP BusinessObjects Predictive Analytics Using the Setup Program. . . . . . . . . . . . . . . . . . 5

3.3 Performing a Silent Installation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

4 Configuring Trace Logs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9

4.1 Configuring Trace Logs for Expert Analytics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

4.2 Configuring Trace Logs for Automated Analytics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

5 Important Considerations for Using SAP HANA with Expert Analytics. . . . . . . . . . . . . . . . . . . 12

5.1 Configuring _SYS_REPO for the SAP BusinessObjects Predictive Analytics User. . . . . . . . . . . . . . . . 13

5.2 Granting Object Privileges to Access HANA Online Data Source. . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

5.3 Granting Privileges to Run Demand Forecasting Functionality with AFL. . . . . . . . . . . . . . . . . . . . . . . 13

5.4 Granting Privileges to Run PAL Algorithms with AFL. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

5.5 Granting Privileges to Run OFL Functionality with AFL. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14

5.6 Supported OLAP Measures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

5.7 Using SAP APL Functions with Expert Analytics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

6 Important Considerations for Using SAP BusinessObjects Universes with Expert Analytics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

7 Connecting Automated Analytics to your DBMS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

8 Installing and Configuring R. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

8.1 Installing R and the Required Packages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

8.2 Configuring R. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

8.3 Important Considerations for Using Expert Analytics with R Algorithms in SAP HANA Online Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20

9 Uninstalling SAP BusinessObjects Predictive Analytics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

2 C U S T O M E RDesktop Installation Guide

Content

Page 3: Desktop Installation Guide

1 Document History

Product version What's Changed

SAP BusinessObjects Predictive Analytics 3.1 No changes

SAP BusinessObjects Predictive Analytics 2.5 Update of the Hardware requirements

See Installation Prerequisites [page 5]

Desktop Installation GuideDocument History C U S T O M E R 3

Page 4: Desktop Installation Guide

2 SAP BusinessObjects Predictive Analytics Desktop Edition

SAP BusinessObjects Predictive Analytics desktop edition is a stand-alone process with a two-tier architecture.

Automated Analytics can access data in flat files on the native file system, SAS, and SPSS files, or be configured to access Database Management Systems using ODBC.

Expert Analytics enables you to connect to various data sources such as flat files, relational databases, in-memory databases, and SAP BusinessObjects universes. In addition, you can operate on different volumes of data from a small matrix of data in a CSV file to a very large dataset in SAP HANA.

4 C U S T O M E RDesktop Installation Guide

SAP BusinessObjects Predictive Analytics Desktop Edition

Page 5: Desktop Installation Guide

3 Installing SAP BusinessObjects Predictive Analytics

3.1 Installation Prerequisites

Before installing SAP BusinessObjects Predictive Analytics, make sure the following requirements are met:

● You must have Microsoft Windows 7 or Microsoft Windows 8 R2 operating system installed on your machine. SAP BusinessObjects Predictive Analytics is supported on both 32-bit and 64-bit machines.

● If you have already installed SAP Predictive Analysis on your machine, you need to uninstall it before installing SAP BusinessObjects Predictive Analytics.

NoteIf you have already installed SAP Lumira on your machine, you do not need to uninstall it. SAP BusinessObjects Predictive Analytics is installed in addition in a separate folder.

If you have already installed SAP InfiniteInsight on your machine, you do not need to uninstall it. However, SAP BusinessObjects Predictive Analytics is installed in addition in a separate folder and will not replace any installed version of SAP InfiniteInsight.

● You must have Administrator rights to install SAP BusinessObjects Predictive Analytics on the computer.● Sufficient disk space must be available on various resources. For a detailed list of supported environments

and hardware requirements, see the Product Availability Matrix at: http://service.sap.com/pam

3.2 Installing SAP BusinessObjects Predictive Analytics Using the Setup Program

The SAP BusinessObjects Predictive Analytics Setup program is an installation wizard that guides you through the installation of the required SAP BusinessObjects Predictive Analytics resources on your computer.

The SAP BusinessObjects Predictive Analytics Setup program is contained within the self-extracting archive - SAPPredictiveAnalysisSetup.exe. The program automatically recognizes your computer's operating system and checks for platform requirements. It updates files as required.

1. Navigate to the SAP BusinessObjects Predictive Analytics self-extracting archive - PADESKTOP<version number>_<patch level>.EXE, for example PADESKTOP2002_0.EXE for version 2.2 patch level 0 - and double-click it.The User Account Control dialog box appears with a warning message.

2. Choose Yes in the confirmation prompt.

The SAP BusinessObjects Predictive Analytics Setup program is extracted from the archive. The Installation Manager performs a verification check for all of the installation prerequisites. A Prerequisites

Desktop Installation GuideInstalling SAP BusinessObjects Predictive Analytics C U S T O M E R 5

Page 6: Desktop Installation Guide

page opens only if the verification fails for any requirement. Close the wizard and correct any missing prerequisite before relaunching PADESKTOP<version number>_<patch level>.EXE.

If all of the installation prerequisites are confirmed, the Define Properties page opens.3. Select the setup language from the drop-down list.4. Specify the destination folder for installing SAP BusinessObjects Predictive Analytics.

○ To accept the default installation directory, choose Next .○ To install SAP BusinessObjects Predictive Analytics in a different location, choose Browse. Select the

required folder and choose Next.

The License Agreement page appears.5. Review the license agreement and select I accept the License Agreement.6. Choose Next.

The Ready to Install page appears. You can go back to modify your installation information if required.7. To begin the installation, choose Next.

The installation is complete when the Finish Installation page opens.8. To automatically launch the program, select Launch SAP BusinessObjects Predictive Analytics after

installation completes.9. To exit this installation, choose Finish.

After completing the installation steps, you can register your installation.

NoteA temporary license key is included in the software. Apply for a permanent license key immediately after installing your SAP software on the SAP Support Portal at http://support.sap.com/keys-systems-installations/keys.html .

The first time you start SAP BusinessObjects Predictive Analytics, a keycode dialog appears where you can enter your keycode. You can enter a new keycode at any time. On the SAP BusinessObjects Predictive Analytics Welcome screen, select Help Enter keycode and choose Save.

To be able to publish stories to SAP Lumira Cloud in Expert Analytics, you can create a new SAP Lumira Cloud user or use an existing user as follows:

Registration Options Description

New SAP Lumira Cloud user On the homepage of Expert Analytics, select SAP Lumira Cloud from the menu on the left and select Create a new SAP Lumira Cloud account in the dialog that appears.

You can also create a new user account in the Share room of Expert

Analytics when you select Publish to SAP Lumira Cloud Create a new

SAP Lumira Cloud account .

Existing SAP Lumira Cloud user On the homepage of Expert Analytics, select SAP Lumira Cloud from the menu on the left and enter your email and password for your existing SAP Lumira Cloud account.

6 C U S T O M E RDesktop Installation Guide

Installing SAP BusinessObjects Predictive Analytics

Page 7: Desktop Installation Guide

3.3 Performing a Silent Installation

You can use the SAP BusinessObjects Predictive Analytics self-extractor to create a response file required for a silent installation.

Using a silent installation, system administrators can run a script from the command line to automatically install SAP BusinessObjects Predictive Analytics on any machine in their system without the setup program prompting them for information or displaying the progress bar. The silent installation is primarily geared towards users with network administration roles. A silent installation is particularly useful when you need to push multiple installations in your corporate network. Once you have created a silent installation response file, you can add the silent installation command to your installation scripts.

1. Choose Start Run and type cmd to open a Command Prompt window.

2. Retrieve the SAP BusinessObjects Predictive Analytics self-extracting archive.3. Run the following command:

<filename.exe> -w <response_filepath>\response.ini

Note<filename.exe> represents the name of the .exe file. <response_filepath> represents the file path where you want to save the response file.

The SAP BusinessObjects Predictive Analytics Setup program opens.4. Follow the installation wizard to select your SAP BusinessObjects Predictive Analytics setup options.5. On the Start installation page, choose Next.

The setup program writes your installation options to the response.ini file, and closes.

TipYou can now open response.ini in a text editor to review your setup selections.

6. To run the silent installation, open a Command Prompt window and enter the following command:

<filename.exe> -r <response_filepath>\response.ini

The parameter -r requires the name and location of the response file as specified in Step 3.

You can also apply other optional parameters listed in the table below.

Parameter Name Description Example

-s hides the self-extraction progress bar during the silent installation

-s

userkeycode adds the “User key code” to the in­stalled License.cfg file

userkeycode=XXXXXYYYYYYY-ZZZZZZZ-….

licensekeyfile adds the “License Key File” to the in­stalled License.cfg file

licensekeyfile=c:\temp\License.cfg

Desktop Installation GuideInstalling SAP BusinessObjects Predictive Analytics C U S T O M E R 7

Page 8: Desktop Installation Guide

NoteAdding the user information and/or the license Key automatically thanks to the parameters Userkeycode and licensekeyfile speeds up the installation process. You can use one or both parameters in the same command.

Example

<filename.exe> -s –r <response_filepath> \response.ini licensekeyfile=c:\temp\License.cfg userkeycode=XXXXXYYYYYYY-ZZZZZZZ-…

8 C U S T O M E RDesktop Installation Guide

Installing SAP BusinessObjects Predictive Analytics

Page 9: Desktop Installation Guide

4 Configuring Trace Logs

4.1 Configuring Trace Logs for Expert Analytics

You use this procedure to enable the SAP BusinessObjects Predictive Analytics application to record information about the execution of the application. This log information helps you identify issues when the application fails or encounters a problem.

By default the error messages and trace messages are written to the folder %TEMP%\sappa\logs in your machine. However, you can change the default location of the folder, where the installation information is written by performing the following steps:

1. Create a folder in any location for generating logs.

NoteEnsure that you have "write" permission to the folder.

For example, C:\logs.

2. Create the BO_Trace.ini file and add the following trace details to it.

active=false; severity='E';importance=xs;size=1000000;keep_num=437; alert=true;

The table below lists the general parameters used for configuring server tracing.

Parameter Possible Values Description

active false, true If set to true, trace messages that meet the threshold set in the importance parameter will be traced. If set to false, trace messages will not be traced based on their "importance" level. Default value is false.

importance '<<', '<=', '==', '>=', '>>', xs, s, m, l, xl

Noteimportance = xs or importance = << are the most verbose options

Specifies the threshold for tracing messages. All messages beyond the threshold will be traced. Default value is m (medium).

Desktop Installation GuideConfiguring Trace Logs C U S T O M E R 9

Page 10: Desktop Installation Guide

Parameter Possible Values Description

available while importance = xl or importance = >> are the least.

alert false, true If set to true, trace messages that meet the threshold set in the severity parameter will be traced. If set to false, the trace messages will not be traced based on their "severity" level. Default value is true.

severity ' ', 'W', 'E', 'A', success, warning, error, assert

Specifies the threshold severity over which massages can be traced. Default value is 'E'.

size Possible values are integers >=1000 Specifies the number of messages in a trace log file before a new one is created. Default value is 100000.

keep_num Possible values are integers >=1000 Specifies the number of logs to keep.

administrator Strings or integers Specifies an annotation to use in the output log file. For example, if

administrator = "hello"

this string is inserted into the log file.

log_dir For example, C:\logs. Specifies the output log file directory. By default log files are stored in the Logging folder.

always_close on, off Specifies if the log file should be closed after a trace is written to the log file. Default value is off.

3. Save and close the BO_trace.ini file.

4. Place the BO_Trace.ini file under C:\logs.

5. Set up the following environment variables:○ BO_TRACE_LOGDIR = C:/logs○ BO_TRACE_CONFIGDIR = C:/logs○ BO_TRACE_CONFIGFILE = C:/logs/BO_Trace.ini

6. Restart the application.

The application logs are generated in the specified location. For example, C:\logs.

10 C U S T O M E RDesktop Installation GuideConfiguring Trace Logs

Page 11: Desktop Installation Guide

4.2 Configuring Trace Logs for Automated Analytics

Automated Analytics writes error and trace messages to the file kxenwizard_log_<user name>.txt in the user temporary directory (for example, C:\Users\<user name>\AppData\Local\Temp).

By default, the log format corresponds to the standard used by SAP systems (ITSAM-17). You can revert to the log format used by previous versions of SAP InfiniteInsight using the following procedure.

1. Exit the applicaton.2. Edit the log configuration file logconf.txt found in the folder <installation folder>\Automated

\EXE\Clients\KJWizardJNI\ (the default installation folder is C:\Program Files\SAP BusinesObjects Predictive Analytics\Desktop <version>\).

3. Comment the first Root.format and Root.DateFormat lines, and uncomment the second occurance of these lines by removing the hash sign (#).

Root.format="#2.0#%D#%t#%l#%C#%K##%I#%T#%P##KxShell#%U#######Main#PLAIN##%M#" Root.DateFormat="%Y %m %d %H:%M:%S:%V"#Root.format="[%D] %C [ID %I] [Lvl %L] [%E] '%M'" #Root.DateFormat="%b-%d %H:%M:%S"

4. Save the logconf.txt file and restart the application.

For more information about log file configuration, see the Automated Analytics Operations Guide on the SAP Help Portal at http://help.sap.com/pa.

Desktop Installation GuideConfiguring Trace Logs C U S T O M E R 11

Page 12: Desktop Installation Guide

5 Important Considerations for Using SAP HANA with Expert Analytics

Important considerations and requirements for using Expert Analytics with the SAP HANA database.

Security requirements for publishing to SAP HANA

Before users can publish content to SAP HANA, they must be assigned specific privileges and roles. These roles and privileges are also required for retrieving data from SAP HANA. Use the SAP HANA Studio application to assign user roles and privileges. For information on administrating the SAP HANA database and using SAP HANA Studio see SAP HANA Database – Administration Guide. For information on user security see the SAP HANA Security Guide (Including SAP HANA Database Security).

The user account used to log into the SAP HANA system from SAP BusinessObjects Predictive Analytics must be assigned the MODELING role (in SAP HANA).

NoteThis action can only be performed by a user with ROLE_ADMIN privileges on the SAP HANA database.

When an SAP BusinessObjects Predictive Analytics user logs into the SAP HANA system, the internal _SYS_REPO account must:

● Be granted the SELECT SQL Privileges.● Have the Grantable to others option selected in the (SAP BusinessObjects Predictive Analytics)

user's schema.

Related Information

Configuring _SYS_REPO for the SAP BusinessObjects Predictive Analytics User [page 13]Granting Object Privileges to Access HANA Online Data Source [page 13]Granting Privileges to Run Demand Forecasting Functionality with AFL [page 13]Granting Privileges to Run PAL Algorithms with AFL [page 14]Granting Privileges to Run OFL Functionality with AFL [page 14]Supported OLAP Measures [page 15]Using SAP APL Functions with Expert Analytics [page 15]

12 C U S T O M E RDesktop Installation Guide

Important Considerations for Using SAP HANA with Expert Analytics

Page 13: Desktop Installation Guide

5.1 Configuring _SYS_REPO for the SAP BusinessObjects Predictive Analytics User

How to configure _SYS_REPO in SAP HANA Studio.

An account for the SAP BusinessObjects Predictive Analytics user is already defined in the SAP HANA system.

1. From the system connection in the SAP HANA Studio Systems view, choose Security Users .2. Double-click the _SYS_REPO account.3. On the Object Privileges tab, click the + icon, and enter the name of the user's schema, choose OK.

4. Choose the SELECT privilege.5. If enabled, you have the option to select the Grantable to Others radio button.6. Choose Deploy.

NoteUsers can also open an SQL editor in SAP HANA Studio and run the following SQL statement:

GRANT SELECT ON SCHEMA <user_account_name> TO _SYS_REPO WITH GRANT OPTION

5.2 Granting Object Privileges to Access HANA Online Data Source

Object (_SYS_REPO , _SYS_BI , _SYS_BIC ) privileges are granted by the SAP HANA administrator for the SAP BusinessObjects Predictive Analytics user.

An account for the SAP BusinessObjects Predictive Analytics user is already defined in the SAP HANA system.

1. From the system connection in the SAP HANA Studio Systems view, choose Security Users .2. Double-click the <HANA Online user account>.3. On the Object Privileges tab, click the + icon, select _SYS_REPO, and choose OK.

4. Under Privileges for '_SYS_REPO', choose the SELECT privilege.

Perform the same steps for the _SYS_BI and _SYS_BIC objects.

5.3 Granting Privileges to Run Demand Forecasting Functionality with AFL

The SAP HANA administrator must grant privileges for the SAP BusinessObjects Predictive Analytics user to run UDF (Unified Demand Forecast library) with AFL (Application Function Library) in Expert Analytics.

Ensure that the user has an account in the SAP HANA system and a UDF license.

Desktop Installation GuideImportant Considerations for Using SAP HANA with Expert Analytics C U S T O M E R 13

Page 14: Desktop Installation Guide

NoteFor further information on implementing UDF, see the SAP Help page, Unified Demand Forecast (UDF).

Take the following steps to grant the necessary privilege for Expert Analytics users to work with the Demand Forecasting component:

1. Launch SAP HANA Studio.2. Select the system that the Expert Analytics product will use.3. Open SQL console in HANA Studio.4. Execute the following SQL statement: GRANT AFL__SYS_AFL_UDFCORE_AREA_EXECUTE;

5.4 Granting Privileges to Run PAL Algorithms with AFL

The SAP HANA administrator must grant privileges for the SAP BusinessObjects Predictive Analytics user to run PAL (Predictive Analysis Library) Algorithms with AFL (Application Function Library).

An account is already defined in the SAP HANA system for the user. Take the following steps to grant the necessary privileges to the user:

1. From the system connection in the SAP HANA Studio Navigator window, choose Security > Users.2. Double-click the <HANA Online user account>.3. On the Object Privileges tab, click the + icon, select AFL_WRAPPER_GENERATOR(SYSTEM), and choose

OK.4. Under Privileges for 'AFL_WRAPPER_GENERATOR(SYSTEM)', select EXECUTE.5. On the Granted Roles tab, click the + icon, select AFL__SYS_AFL_AFLPAL_EXECUTE, and choose OK.

For more information on how to install AFL and create the AFL_WRAPPER_GENERATOR(SYSTEM) procedure, see the SAP HANA Predictive Analysis Library (PAL) Reference Guide.

5.5 Granting Privileges to Run OFL Functionality with AFL

The SAP HANA administrator must grant privileges for the SAP BusinessObjects Predictive Analytics user to run OFL (Optimization Function Library) with AFL (Application Function Library) in Expert Analytics.

Ensure that an account is already defined for the user in the SAP HANA system and take the following steps to grant the necessary privileges for Expert Analytics users to use the HANA Optimization Function:

1. Launch SAP HANA Studio.2. Select the system that the Expert Analytics product will use.3. Open SQL console in HANA Studio.4. Execute the following SQL statement: GRANT AFL__SYS_AFL_OFL_AREA_EXECUTE TO <USER_NAME>

14 C U S T O M E RDesktop Installation Guide

Important Considerations for Using SAP HANA with Expert Analytics

Page 15: Desktop Installation Guide

5.6 Supported OLAP Measures

OLAP measures that are supported by SAP HANA.

SAP HANA supports only the following measures of aggregation in OLAP data sources:

● SUM● MIN● MAX● COUNT

If your dataset contains an aggregation on a measure that is not listed above, the aggregation will be ignored by SAP HANA during publication and it will not be part of the final published artifact.

5.7 Using SAP APL Functions with Expert Analytics

You can use SAP APL (SAP Automated Predictive Library) functions in Expert Analytics when connected to SAP HANA.

● When creating a new user schema, you need to make sure the required privileges are granted.

RecommendationIf you are creating or updating a new user schema, it is recommended to drop the existing table types before creating new table types.

You can find a list of the available table types and their column details in the SAP Automated Predictive Library Reference Guide on SAP Help Portal at http://help.sap.com/pa.

Desktop Installation GuideImportant Considerations for Using SAP HANA with Expert Analytics C U S T O M E R 15

Page 16: Desktop Installation Guide

6 Important Considerations for Using SAP BusinessObjects Universes with Expert Analytics

To acquire data from universes that exist on the BI 4.0 platform, ensure that the Web Intelligence Server running. For the complete list of supported BI platforms, see the SAP Product Availability Matrix

16 C U S T O M E R

Desktop Installation GuideImportant Considerations for Using SAP BusinessObjects Universes with Expert

Analytics

Page 17: Desktop Installation Guide

7 Connecting Automated Analytics to your DBMS

Automated Analytics can be configured to access data in a Database Management System using ODBC. To configure your installation, refer to the guide Connecting to your Database Management System on Windows - Automated Analytics Configuration Guide available on the SAP Help Portal at https://help.sap.com/pa.

Desktop Installation GuideConnecting Automated Analytics to your DBMS C U S T O M E R 17

Page 18: Desktop Installation Guide

8 Installing and Configuring R

8.1 Installing R and the Required Packages

R is an open-source programming language and software environment for statistical computing.

Expert Analytics supports the following R algorithms and dependent packages for both SAP HANA and agnostic platforms. For more information about supported platforms and technologies, click to access the Product Availability Matrix page and search for “Predictive Analytics”, http://service.sap.com/sap/support/pam .

R Algorithm Dependent Packages

HANA R-Apriori arules

HANA R-CNR Tree rpart

HANA R-Multiple Linear Regression stats

HANA R-Triple Exponential Smoothing stats

HANA R-Bagging Classification adabag, rpart

HANA R-Boosting Classification adabag, rpart

HANA R-Random Forest Classification randomForest

HANA R-Random Forest Regression randomForest

R Algorithm Dependent Packages

R-CNR Tree rpart

R-Apriori arules

R-K-Means stats

R-Linear Regression stats

R-Multiple Linear Regression stats

R-Exponential Regression stats

R-Geometric Regression stats

R-MONMLP Neural Network monmlp

18 C U S T O M E RDesktop Installation Guide

Installing and Configuring R

Page 19: Desktop Installation Guide

R Algorithm Dependent Packages

R-NNet Neural Network nnet

R-Single Exponential Smoothing stats

R-Double Exponential Smoothing stats

R-Triple Exponential Smoothing stats

R-Bagging Classification adabag, rpart

R-Boosting Classification adabag, rpart

R-Random Forest Classification randomForest

R-Random Forest Regression randomForest

Prerequisites:

To use open-source R algorithms in your analysis, you need to install the R environment and configure it with the application.

SAP BusinessObjects Predictive Analytics provides an option to install and configure the current version of R and the required packages from within the application. Ensure that you are connected to the internet while installing R.

Before installing R (and corresponding required packages), ensure that the following requirements are met:

● The existing R is uninstalled and the registry entries and the R installation folder are removed from the machine.

● The R environment variables (R_LIBS, R_HOME) and R path variables are removed.

Installation:

To install the R environment and the required packages, perform the following steps:

1. Launch SAP BusinessObjects Predictive Analytics.2. Open Expert Analytics.3. From the File menu, choose Install and Configure R.4. Select Install R.5. Read the open-source R license agreement, important instructions, and select I agree to install R using the

script.6. Select Ok.

NoteIf you have already installed R, you can use this procedure to install the required R packages, or manually install the following required packages through your R console:

Desktop Installation GuideInstalling and Configuring R C U S T O M E R 19

Page 20: Desktop Installation Guide

8.2 Configuring R

After you have installed R, configure the R environment to enable R algorithms in the application. If you have already installed R-2.15.x or R-3.0.x, R-3.1.0 or R-3.1.2 and the required packages, you can skip the R installation step and directly configure R.

To configure R, perform the following steps:

1. Launch SAP BusinessObjects Predictive Analytics.2. Open Expert Analytics.3. From the File menu, choose Install and Configure R.4. On the Configuration tab, select Enable Open-Source R Algorithms.5. Choose Browse to select the R installation folder.

For example, C:\Users\Public\R-3.1.2.

6. Choose Ok.The "User Account Control" dialog box appears with a warning message.

7. Choose Yes in the confirmation prompt.

Recommendation● When installing R packages, check that the folder containing the installed R packages exists under the

file path in File Install and Configure R Configuration .You can specify the exact location where you want an R package installed using the following command in R studio: install.packages("PackName",lib="PATH")For example: install.packages("recomandable",lib="C:/Users/Public/R-3.1.2/library"). After the installation, check the subfolder in the R file path. You should see a folder called recomandable.

● Alternatively, if you have R packages installed in multiple locations, make sure that the Microsoft Windows® environment variable, R_LIBS, is pointing to each location. Add the folder locations to the R_LIBS variable, separating each one by a semicolon so they can be found by Expert Analytics.For example: R_LIBS=%R_HOME%\library;%YOUR_HOME_DIRECTORY%\Documents\R\win-library\3.1If the R_LIBS variable is not already available, you need to create this.

NoteYou can use the .libPaths() function to display all locations where R packages are installed.

8.3 Important Considerations for Using Expert Analytics with R Algorithms in SAP HANA Online Mode

SAP HANA supports in-database data mining through R integration, the Predictive Analysis Library (PAL), as well as the Automated Predictive Library (APL) and Unified Demand Forecast (UDF). When using Expert Analytics with R algorithms in the SAP HANA online mode, the following considerations are important:

20 C U S T O M E RDesktop Installation Guide

Installing and Configuring R

Page 21: Desktop Installation Guide

● To use R algorithms in the SAP HANA database, you must install and configure R on SAP HANA. For information on how to install and configure R on SAP HANA, see the SAP HANA R integration guide available at http://help.sap.com/hana_platform.

● Ensure that the user privilege Create R script is granted.

Desktop Installation GuideInstalling and Configuring R C U S T O M E R 21

Page 22: Desktop Installation Guide

9 Uninstalling SAP BusinessObjects Predictive Analytics

You can remove an installation of SAP BusinessObjects Predictive Analytics from your machine.

1. Choose Start Control Panel Programs .2. Choose Uninstall a program.3. Right-click SAP BusinessObjects Predictive Analytics and choose Uninstall.

The SAP BusinessObjects Predictive Analytics Setup wizard appears.4. On the Confirm Uninstall page, choose Next .5. To complete the uninstallation, choose Finish .

22 C U S T O M E RDesktop Installation Guide

Uninstalling SAP BusinessObjects Predictive Analytics

Page 23: Desktop Installation Guide

Important Disclaimers and Legal Information

Coding SamplesAny software coding and/or code lines / strings ("Code") included in this documentation are only examples and are not intended to be used in a productive system environment. The Code is only intended to better explain and visualize the syntax and phrasing rules of certain coding. SAP does not warrant the correctness and completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, unless damages were caused by SAP intentionally or by SAP's gross negligence.

AccessibilityThe information contained in the SAP documentation represents SAP's current view of accessibility criteria as of the date of publication; it is in no way intended to be a binding guideline on how to ensure accessibility of software products. SAP in particular disclaims any liability in relation to this document. This disclaimer, however, does not apply in cases of willful misconduct or gross negligence of SAP. Furthermore, this document does not result in any direct or indirect contractual obligations of SAP.

Gender-Neutral LanguageAs far as possible, SAP documentation is gender neutral. Depending on the context, the reader is addressed directly with "you", or a gender-neutral noun (such as "sales person" or "working days") is used. If when referring to members of both sexes, however, the third-person singular cannot be avoided or a gender-neutral noun does not exist, SAP reserves the right to use the masculine form of the noun and pronoun. This is to ensure that the documentation remains comprehensible.

Internet HyperlinksThe SAP documentation may contain hyperlinks to the Internet. These hyperlinks are intended to serve as a hint about where to find related information. SAP does not warrant the availability and correctness of this related information or the ability of this information to serve a particular purpose. SAP shall not be liable for any damages caused by the use of related information unless damages have been caused by SAP's gross negligence or willful misconduct. All links are categorized for transparency (see: http://help.sap.com/disclaimer).

Desktop Installation GuideImportant Disclaimers and Legal Information C U S T O M E R 23

Page 24: Desktop Installation Guide

go.sap.com/registration/contact.html

© 2017 SAP SE or an SAP affiliate company. All rights reserved.No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company. The information contained herein may be changed without prior notice.Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors. National product specifications may vary.These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP or its affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP or SAP affiliate company products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other countries. All other product and service names mentioned are the trademarks of their respective companies.Please see http://www.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and notices.