Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

js-datasets-iris

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-datasets-iris

Package provides the iris dataset for javascript

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

js-datasets-iris

Package provides the "Iris dataset for javascript

Install

npm install js-datasets-iris

Usage

In nodejs

var iris = require('js-datasets-iris')

// == PRITN ROW COUNT == //
console.log(iris.rowCount);

// == PRINT ALL DATA in the format of [[sepalLength, sepalWidth, petalLength, petalWidth, specisies], ...] == //
console.log(iris.data);

// == PRINT the sepalLength == //
console.log(iris.sepalLength);

// == PRINT the sepalWidth == //
console.log(iris.sepalWidth);

// == PRINT the petalLength == //
console.log(iris.petalLength);

// == PRINT the petalWidth == //
console.log(iris.petalWidth);

// == shuffle the data rows in the iris dataset == //
iris.shuffle();

In HTML

Include the "node_modules/js-datasets-iris/build/jsiris.min.js" (or "node_modules/js-datasets-iris/src/jsiris.js") in your HTML <script> tag

The sample code can be found in the example.html

Keywords

FAQs

Package last updated on 02 Jun 2017

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