param-grid
Generate a list of possible paramaters combinations. Useful for example for hyper-paramater grid search..
Installation
$ npm install --save ml-param-grid
Usage
; // paramGrid is a generator function so it returns an iteratorforlet param of console;;// result is// {param1 : 'x', param2: 4, param3: true}// {param1 : 'x', param2: 2, param3: true}// {param1 : 'y', param2: 4, param3: true}// {param1 : 'y', param2: 2, param3: true} // Get the result directly as an arrayArray; // [{p: 1}, {p: 2}]