New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pipcook/datacook

Package Overview
Dependencies
Maintainers
7
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pipcook/datacook

A JavaScript library for feature engineering on datasets

  • 0.1.2-beta.20
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
34
increased by277.78%
Maintainers
7
Weekly downloads
 
Created
Source

DataCook

Machine learning and data science library for Javascript / Typescript.


Getting started

Dependencies

DataCook is built for javascript environment and can run in both node.js platform and browser. DataCook relies on tensorflow.js for basic numeric computation.

Quick installation

DataCook can be installed by npm:

npm install @pipcook/datacook

or by yarn

yarn add @pipcook/datacook

Quick start: Train a simple linear-regression model

import { Model } from '@pipcook/datacook';

const { LinearRegression } = Model;

const X = [
  [4, 5],
  [2, 3],
  [1, 4],
  [3, 8],
];
const y = [10, 5.5, 6.5, 12];
// create model
const lm = new LinearRegression();
// train linear model using feature set X and label set y
await lm.fit(X, y);
// get prediction
const yPred = lm.predict(X);
yPred.print();
// [10, 6, 6, 12]

Keywords

FAQs

Package last updated on 04 Mar 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc