Skip to content

Korigami/DPP4SAS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DPP4SAS

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.

Installation of 4GL Macros:

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.

Installation of IML package:

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.

Installation guide for SAS Enterprise Miner:

You might need administrator privilages to perform some parts of this installationn.

  1. Clone this repository or download it as ZIP, unpack it, and place the contents in the location on your disk available for SAS.

  2. 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.

  1. 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

  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
  1. 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.

  1. Start or restart SAS Enterprise Miner

  2. In Exploration tab there should be available new group (DPP) with the newly installed nodes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages