Skip to content

run rstudio on docker and use tm + xgboost for text mining tuto

Notifications You must be signed in to change notification settings

phileas-condemine/text-mining

Repository files navigation

First install Docker Toolbox
Then create local folders

  • Create a new folder for data, we assume path is ~/Documents/data, if you followed the instructions in phileas-condemine/hackathon_nov2017 you might already have this folder
  • open cmd
  • cd Documents
  • mkdir data
  • Create a folder tm, we assume path is ~/Documents/tm
  • mkdir tm
  • cd tm
  • git clone https://github.com/phileas-condemine/text-mining.git
You just need these folder to use them as volumes for your docker container
then run a rstudio docker image from the Docker Quickstart Terminal
  • you may need to stop your current container
  • docker stop practice_hackathon
  • docker stop keras_demo
  • docker run -d -v ~/Documents/tm/:/home/rstudio/Documents -v ~/Documents/data/:/home/rstudio/data -p 8787:8787 --name text_mining rocker/rstudio
  • then install libxml2 on your container typing in the Docker Quickstart Terminal
  • docker exec -it text_mining apt-get update
  • docker exec -it text_mining apt-get install -y libxml2-dev
  • docker exec -it text_mining apt-get install zlib1g-dev
  • docker exec -it text_mining apt-get install -y gsl-bin libgsl0-dev
then move to your container following the links http://192.168.99.100:8787 or http://192.168.99.101:8787 check your ip with `docker-machine ip`
  • user : rstudio
  • password : rstudio
  • open text_mining.Rpres
  • run the chunk related to packages
  • check the preview

About

run rstudio on docker and use tm + xgboost for text mining tuto

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages