Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@pipcook/datacook
Advanced tools
A JavaScript library for feature engineering on datasets, it helps you to cook trainable datus out as its name, datacook.
Install datacook via NPM:
npm install @pipcook/datacook --save
And write your first example:
import { Image } from '@pipcook/datacook';
const dog = Image.read('test/node/image/artifacts/dog.jpg');
const data = [ ...img.resize(100, 100).data ]; // the 100x100 data.
Build your own word2vec model:
import { Text } from '@pipcook/datacook';
const text = 'The king is a man who rules over a nation, he always have a woman beside him called the\
queen.\n she helps the king controls the affars of the nation.\n Perhaps, she acclaimed the position of a king\
when the king her husband is deceased.'.split('\n');
const stopWords = [ 'a', 'in', 'when', 'the', 'of', 'is', 'who' ];
const word2vec = new Text.Word2Vec(text, 5, stopWords);
// train the model
await word2vec.train();
word2vec.similarity('king', 'man'); // < 1.0
word2vec.mostSimilar('king'); // returns words and its weights.
To contribute to datacook, start from forking the repository, then clone to your local machine:
$ git clone https://github.com/imgcook/datacook.git
$ cd datacook
Install dependencies:
$ npm install
Run tests for both Node.js and browser environment:
npm run test
To run specific tests:
$ npm run test:node # Node.js
$ npm run test:browser # Browser
To build the source code to the dist folder, run:
$ npm run build
Apache 2.0
FAQs
A JavaScript library for feature engineering on datasets
The npm package @pipcook/datacook receives a total of 9 weekly downloads. As such, @pipcook/datacook popularity was classified as not popular.
We found that @pipcook/datacook demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.