Export of Purchase Likelihood scores
If the transaction data is loaded with the available data import options, then this call exports the data:
lsbatch -d "jdbc:postgresql://192.168.56.102/crm_db?user=crm&password=crm" -p c:/tmp/Demo20-11/lsparams.json -st 2014-01-01 -e 2016-12-31 -o ls_results.json
This table shows the command line parameters of the call:
Option | Abbreviation | Required | Comment |
---|---|---|---|
dburl | -d | Yes | SICRM db connection string. |
schema | -sc | No.
Default public |
Database schema. |
lsparams | -p | Yes | File with model parameters. |
start | -st | Yes | Start date of the transaction set. |
end | -e | Yes | End date of the transaction set. |
csv | -c | No.
Default JSON |
Output in .csv format. |
sort | -s | No.
Default false |
Sort by PL score. |
output | -o | No.
Default STDOUT |
Output file name. |
endlastpurchase | -el | No.
Default from lsparams |
Use end date as the last purchase period date if endlastpurchase is present, otherwise take from lsparams. |
keep | -k | No.
Default false |
Keep the customers without the transaction data in the output. |