TaylorFit is a multivariate polynomial regression application that fits data to a predictive model consisting of a polynomial function, such as
f(x, y) = a*x + b*y + c*xy + d*x*y^2
where x, y, and xy are terms selected by the user, and a, b, and c
are coefficients determined using least squares regression.
The application works entirely client-side in your browser, so there's no need to download or install anything and no need to create an account. In order to be reasonably efficient, TaylorFit utilizes specific JavaScript primitives and browser capabilities that emulate native execution.
- KnockoutJS
- CoffeeScript
- PugJS
- Stylus
- Ensure npm is installed
- If
npm --versionprints version info, you're good - Else, install it at nodejs.org
- If
- Ensure yarn is installed
- If
yarn --versionprints version info, you're good - Else, run
npm install yarnto install
- If
git cloneor download a zip of the repo- Open the directory in a terminal
- Run
npm install - Run the server (by default hosted at
http://localhost:8080/)- Run
npm run debugto start the development server (includes hot reloading) - Run
npm startto start the production server
- Run
- Run
npm run testto run the test suite
- Run
npm run build - Copy the build directory (
cp -r build/ ../build/) - Run
git checkout gh-pages- If git won't let you checkout, use
git statusto see if you have any unsaved changes on the current branch
- If git won't let you checkout, use
- Paste the build directory files into the main directory (
rm -r resources/ && mv ../build/* . && rm -r ../build/[be careful you don't have anotherbuilddirectory in one level up from your clone])- The first command deletes the old
resourcesfolder (sincemvdoesn't allow merges) - The second command actually puts in the new build files
- The third command cleans up the copy of the build directory
- The first command deletes the old
- Push up the code (
git add -A && git commit -m "..." && git push) - Run
git checkout masterto return to the working branch