Running the L1 Visualizer - Qzrx/machine_learning_course GitHub Wiki
Requirements
R (>3.0.0)
Libraries: shiny, ggplot2 (+ dependencies)
How to install (OSX)
- Obtain & install the latest version of R from CRAN
- Open Terminal.app and run R (eg:
LM-SFO-00870996:~ radon$ R
) - Install Shiny & ggplot2 using the following commands inside of the R session you just invoked. It will likely ask you for a mirror--I usually use Switzerland, as it's home to stat.ethz.ch, the official university 'home' of R.
install.packages("shiny")
install.packages("ggplot2")
- Exit R.
q()
is the command to exit. - Clone this repository somewhere on your machine:
git clone https://github.com/Qzrx/machine_learning_course.git
Running
Use the following command to invoke the app directly from your terminal:
R -e "library(shiny); runApp('PATH_TO_L1_VISUALIZER_DIRECTORY')"
PATH_TO_L1_VISUALIZER_DIRECTORY
should be the relative path to that directory from your current wd inside of terminal. If you've just cloned the repository, this would be machine_learning_course/L1_visualizer
.
This (should) launch an instance of the L1 visualizer I whipped up for you. The port it runs on is randomized, but you can force it to use a specific one by adding a port=
argument to the runApp call. From there, fire up localhost:port#
in your browser and you should be good to go!