Package Exports
- js-datasets-iris
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (js-datasets-iris) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
js-datasets-iris
Package provides the "Iris dataset for javascript
Install
npm install js-datasets-irisUsage
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