
Security News
Research
Destructive npm Packages Disguised as Utilities Enable Remote System Wipe
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
ml-param-grid
Advanced tools
Generate a list of possible paramaters combinations. Useful for example for hyper-paramater grid search.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Generate a list of possible paramaters combinations. Useful for example for hyper-paramater grid search..
$ npm install --save ml-param-grid
import paramGrid from 'ml-param-grid';
// paramGrid is a generator function so it returns an iterator
for(let param of paramGrid({
param1: ['x', 'y'],
param2: [4, 2],
param3: true
}) {
console.log(param);
};
// 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 array
Array.from(paramGrid({
p: [1, 2]
})); // [{p: 1}, {p: 2}]
FAQs
Generate a list of possible paramaters combinations. Useful for example for hyper-paramater grid search.
We found that ml-param-grid demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.
Research
Security News
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.