grid-search
is a small, simple node module that can be used to generate an array of parameters to use during a machine learning grid search. It will generate every possible combination of parameters based on user input.
This package additionally ships with a small range
method that can be used to generate a range of values between two numbers.
Installation
Install grid-search
using npm.
npm i grid-search
Example Use
Basic grid search parameter generation
const gridSearch = ; const params = iterations: 10 20 30 objective: "binaryCrossentropy" dropout: 04 05 06; const search = ; console;
Your output will be:
iterations: 10 objective: "binaryCrossentropy" dropout: 04 iterations: 10 objective: "binaryCrossentropy" dropout: 05 iterations: 10 objective: "binaryCrossentropy" dropout: 06 iterations: 20 objective: "binaryCrossentropy" dropout: 04 iterations: 20 objective: "binaryCrossentropy" dropout: 05 iterations: 20 objective: "binaryCrossentropy" dropout: 06 iterations: 30 objective: "binaryCrossentropy" dropout: 04 iterations: 30 objective: "binaryCrossentropy" dropout: 05 iterations: 30 objective: "binaryCrossentropy" dropout: 06 ;
Using range
The previous example can use the range
function to specify the iterations
and dropout
parameters and achieve the exact same result.
range(start, finish, step)
const range = ; const params = iterations: objective: "binaryCrossentropy" dropout: ;
Contributing
Contributions welcome! Please open an issue in the Github repository describing what changes you would like to see (or to contribute yourself).