0.1.9 • Published 2 years ago

@pipcook/datacook v0.1.9

Weekly downloads
9
License
Apache 2.0
Repository
github
Last release
2 years ago

datacook

A JavaScript library for feature engineering on datasets, it helps you to cook trainable datus out as its name, datacook.

Getting started

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.

Contributing

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

License

Apache 2.0

0.1.8

2 years ago

0.1.7

2 years ago

0.1.9

2 years ago

0.1.6

2 years ago

0.1.5-beta.4

2 years ago

0.1.5-beta.3

2 years ago

0.1.4-beta.2

2 years ago

0.1.4-beta.3

2 years ago

0.1.4

2 years ago

0.1.5

2 years ago

0.1.5-beta.2

2 years ago

0.1.5-beta.1

2 years ago

0.1.4-beta.0

2 years ago

0.1.4-beta.1

2 years ago

0.1.3-beta.8

2 years ago

0.1.3-beta.7

2 years ago

0.1.3-beta.6

2 years ago

0.1.3-beta.5

2 years ago

0.1.2-beta.17

2 years ago

0.1.2-beta.18

2 years ago

0.1.2-beta.19

2 years ago

0.1.2-beta.20

2 years ago

0.1.3-beta.2

2 years ago

0.1.3-beta.1

2 years ago

0.1.3-beta.4

2 years ago

0.1.3-beta.3

2 years ago

0.1.2-beta.16

2 years ago

0.1.2-beta.11

2 years ago

0.1.2-beta.12

2 years ago

0.1.2-beta.7

2 years ago

0.1.2-beta.13

2 years ago

0.1.2-beta.14

2 years ago

0.1.2-beta.10

2 years ago

0.1.2-beta.8

2 years ago

0.1.2-beta.9

2 years ago

0.1.2

2 years ago

0.1.3

2 years ago

0.1.2-beta.2

3 years ago

0.1.2-beta.3

3 years ago

0.1.2-beta.1

3 years ago

0.1.2-beta.6

3 years ago

0.1.2-beta.4

3 years ago

0.1.2-beta.5

3 years ago

0.1.2-beta.0

3 years ago

0.1.1-beta.2

3 years ago

0.1.1-beta.1

3 years ago

0.1.1-beta.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.10

3 years ago

0.0.9-beta

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7-beta15

3 years ago

0.0.7-beta0

3 years ago

0.0.7-beta26

3 years ago

0.0.7-beta25

3 years ago

0.0.7-beta5

3 years ago

0.0.6-beta.8

3 years ago

0.0.6-beta.7

3 years ago

0.0.7

3 years ago

0.0.6-beta.6

3 years ago

0.0.6-beta.5

3 years ago

0.0.6-beta.4

3 years ago

0.0.6-beta.3

3 years ago

0.0.6-beta.2

3 years ago

0.0.6-beta.1

3 years ago

0.0.6-beta.0

3 years ago

0.0.4-beta.2

3 years ago

0.0.4-beta.1

3 years ago

0.0.4-beta.4

3 years ago

0.0.4-beta.3

3 years ago

0.0.5

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago