Skip to content

Whaoo/JS_Inge2_ESME_Khi_PCA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Script Project

Project of fourth year students in engineering school.

Project aiming at creating a dataloader which gives a set of equiprobable data, apply the Khi² / Chi² and then applying a PCA.

  • Reading CSV file and putting it into an array.
  • Creating a trainset and testset.
  • Applying the Khi² / Chi².
  • Applying PCA to a dataset.
  • Testing xo and mocha.

Authors (A to Z)

  • COULANGE Tristan
  • DURAND Thomas
  • FLAMENT Florentin
  • GIDROL Louis
  • LAURENT Louis
  • LIBERT Méline
  • MASRIERA Edouard

Supervising Professor

Maxime ROBIN (https://github.com/Waxo)

Documentations

The attached files are used to launch the different javascripts: a Chi-square application test, the PCA applied to a train and a test.

How to :

Install the modules :
npm install pca-js
npm install jquery-csv
npm install fs
npm install train-test-split
npm install ramda
Use gulp :
// Check your node, npm and npx versions
node --version
npm --version
npx --version

// Install the gulp command line utility
npm install --global gulp-cli

// Create a project directory and navigate into it
npx mkdirp projetjs
cd projetjs

// Create a package.json file
npm init

// Install the gulp package globaly 
npm install --save-dev gulp

Launch the gulpfile with the command : gulp

Use Mocha :
// Install with npm 
npm install --global mocha
npm install mocha
mkdir test
$EDITOR test/test.js # or open with your favorite editor
// Edit it, then on the terminal go 
./node_modules/mocha/bin/mocha
// Set up the test script in package.json 
// run 
npm test
Use xo :
// Install with npm 
npm install xo --save-dev
// init 
npm init xo
// run
npm test
xo 
// fix 
xo --fix 
xo --ignore=test\test.js

Libraries

Yarn (software packaging system): https://classic.yarnpkg.com/lang/en

Ramda (functional programming library in JS): https://ramdajs.com

Node and npm (runtime environment and software packaging system): https://nodejs.org/

Gulp (auto script starter): https://gulpjs.com

Mocha (auto tests) : https://mochajs.org

xo (ESLint wrapper) : https://github.com/xojs/xo

About

Javascript repository for the final project of INGE2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •