Implementation of algotithms for sampling from Determinantal Point Processes (DPPs) for SAS.
We provide the implementation in three parts:
- Set of 4GL macros,
- Package in SAS/IML,
- Enterprise Miner nodes.
You need to include the path to the loadModules file in order to use the provided macros.
%let dirPath =Path_to_repository;
%include "&dirPath.\SAS4GL\loadModules.sas";
%load_modules(&dirPath.);
Note that Path_to_repository is the path to the unpacked repository without quotation marks added.
To install the package use within proc iml:
package install 'path to dppsampl.zip';
Where the dppsampl.zip file is within the SASIML folder. (If the .ZIP file is not present, you can make one by creating .ZIP file from all contents of the SASIML/dppsampl folder. Note that the archive has to be named dppsampl.zip).
Load the package with:
package load dppsampl;
Again, the above instruction has to be within the proc iml invocation. Within the same invocation you can use the provided fucntions after loading the package.
You might need administrator privilages to perform some parts of this installationn.
-
Clone this repository or download it as ZIP, unpack it, and place the contents in the location on your disk available for SAS.
-
Open SAS session, run the code from the file DPP4SAS\SASMINER\create_sources.sas. Note that in the line
%CreateSources(path to ... \DPP4SAS\SASMINER\DPP);
you need to change "path to ... \DPP4SAS\SASMINER\DPP" into appropriate path.
- Copy XML files from repository (DPP4SAS\SASMINER*.xml) to directory SASHome\SASEnterpriseMinerWorkstationConfiguration\<version>\WEB-INF\classes\components. (By default, SASHome might be present in Program Files folder on Windows and in /usr/local on UNIX)
Usually SASHome directory is in C:\Program Files directory on Windows.
<version> means wersion of SAS Enterprise Miner, e.g. 15.1
- Add below line to file SASHome\SASEnterpriseMinerWorkstationConfiguration\<version>\WEB-INF\classes\components\EMList.txt
BetaFullSampler=BetaFullSampler.xml
BetaBandSampler=BetaBandSampler.xml
PoissPlanchSampler=PoissPlanchSampler.xml
StatOneDSampler=StatOneDSampler.xml
ExactSampler=ExactSampler.xml
MCMCSampler=MCMCSampler.xml
- Copy icons from
- DPP4SAS\SASMINER\gif,
- DPP4SAS\SASMINER\gif16,
- DPP4SAS\SASMINER\gif32
to repsective directories in SASHome\SASEnterpriseMinerWorkstationConfiguration\<version>\WEB-INF\classes\components.
You might need administrator privilages to perform this operation.
-
Start or restart SAS Enterprise Miner
-
In Exploration tab there should be available new group (DPP) with the newly installed nodes.