25.10.2016 Views

SAP HANA Predictive Analysis Library (PAL)

sap_hana_predictive_analysis_library_pal_en

sap_hana_predictive_analysis_library_pal_en

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Newton method, Gradient Descend, BFGS and Cyclical Coordinate Descend (primarily for elastic net penalized<br />

object function) are provided to minimize objective function which is opposite in sign with log likelihood<br />

function. For fast convergence, Newton method and BFGS are preferred.<br />

Elastic net regularization seeks to find coefficients which can minimize:<br />

Where .<br />

Here<br />

and λ≥0. If α=0, we have the ridge regularization; if α=1, we have the LASSO regularization.<br />

Function FORECASTWITHLOGISTICR is used to predict the labels for the testing data.<br />

Prerequisites<br />

●<br />

●<br />

●<br />

No missing or null data in inputs.<br />

Data is numeric, or categorical.<br />

Given m independent variables, there must be at least m+1 records available for analysis.<br />

LOGISTICREGRESSION<br />

This is a logistic regression function.<br />

Procedure Generation<br />

CALL SYS.AFLLANG_WRAPPER_PROCEDURE_CREATE (‘AFL<strong>PAL</strong>’, ‘LOGISTICREGRESSION’,<br />

‘’, '', );<br />

The signature table should contain the following records:<br />

Table 119:<br />

Position Schema Name Table Type Name Parameter Type<br />

1 IN<br />

2 IN<br />

3 <br />

OUT<br />

<br />

<br />

OUT (optional)<br />

5 <br />

OUT<br />

166 P U B L I C<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Predictive</strong> <strong>Analysis</strong> <strong>Library</strong> (<strong>PAL</strong>)<br />

<strong>PAL</strong> Functions

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!