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 --version
prints version info, you're good - Else, install it at nodejs.org
- If
- Ensure yarn is installed
- If
yarn --version
prints version info, you're good - Else, run
npm install yarn
to install
- If
git clone
or 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 debug
to start the development server (includes hot reloading) - Run
npm start
to start the production server
- Run
- Run
npm run test
to 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 status
to 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 anotherbuild
directory in one level up from your clone])- The first command deletes the old
resources
folder (sincemv
doesn'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 master
to return to the working branch