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.

3.6.2 Binning Assignment<br />

Binning assignment is used to assign data to the bins previously generated by the Binning algorithm.<br />

Therefore it accepts a binning model as input.<br />

It is assumed that the binning model generated in the previous binning stage includes bin starts (S) and ends<br />

(E) of all bins, and therefore new data (d) can be assigned to bin i directly satisfying S i ≤ d < E i (for the last<br />

bin, the less than relation should be less than or equal to).<br />

There is some probability that new data locates too far away from all bins. Here the IQR technique is adopted<br />

to justify if a piece of data is an outlier. If new data is lower than both Q1 – 1.5*IQR and the first bin start, or<br />

higher than both Q3 + 1.5*IQR and the last bin end, it is regarded an outlier and assigned to a virtual bin of<br />

index -1 without smoothing.<br />

The new data will not update the binning model.<br />

Note that for the cast of Equal Number Per Bin strategy, the new data assignment may violate its original<br />

binning properties.<br />

Prerequisites<br />

●<br />

●<br />

●<br />

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

Data types must be identical to those in the binning procedure.<br />

The data types of the ID columns in the data input table and the result output table must be identical.<br />

BINNINGASSIGNMENT<br />

This function directly assigns data to bins based on the previous binning model, without running binning<br />

procedure thoroughly.<br />

Procedure Generation<br />

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

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

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

Table 313:<br />

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

1 <br />

IN<br />

2 <br />

IN<br />

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

<strong>PAL</strong> Functions P U B L I C 437

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

Saved successfully!

Ooh no, something went wrong!