Giter Club home page Giter Club logo

interpretable_ml-rsuite's Introduction

interpretable_ml-rsuite

ebook built with rsuite. How is this different

This ebook was created with bookdown. It is different in the way it has been built, and can be rebuilt, even from the bare metal.

I have used rsuite to make it fully reproducible. This ebook is, in some way, difficult to match or keep all the dependencies. Unfortunately, not all good things last forever. After a package upgrade the ebook may stop building. These are all the packages required to build this ebook:

  logging,
  bookdown,
  ggplot2,
  mlbench,
  dplyr,
  tidyr,
  data.table,
  mlr,
  rpart,
  party,
  partykit,
  randomForest,
  gridExtra,
  grid,
  jpeg,
  caret,
  e1071,
  tm,
  svglite,
  mmpf,
  numDeriv,
  DT,
  xgboost,
  lubridate,
  pre,
  shiny,
  roxygen2,
  memoise, 
  gridExtra,
  OneR, 
  RWeka,
  sbrl,
  iml,
  jtools,
  mgcv,
  devtools,
  readr, 
  Cairo,
  viridis,
  interactions

How is it done

So, what I did is creating an isolated master project for the book, one where all the packages are spelled out in advance so the ebook can be rebuilt after: (i) an R re-installation, (ii) a new R version, or (iii) a full package upgrade. The book will be able to be regenerated to the CRAN snapshot at the time it was first built.

Because rsuite allows a supervising project on top of other projects or packages, you can control:

  1. the date of the snapshot;
  2. the R version under you want the book to be built;
  3. the names of all the packages that satisfy the dependencies for the book to work;
  4. define a place for the source code of the package if the package is not in CRAN;
  5. a master project and a master package that takes care of reproducing the whole book, again and again, even after changing the operating system.
  6. a master environment with its own scripts and configuration files on top of projects and packages.

How to reproduce this ebook yourself

  • Download and install the RSuite client. Available for Linux, Mac and Windows.
  • Install the rsuite package with rsuite install
  • Clone or download this repository.
  • Change to this repo folder and install the dependencies on its own isolated reproducible environment. Use rsuite proj depsinst
  • Build the project with rsuite proj build
  • Go to the folder /work/book, or where the bookdown lives, and open the .Rproj project.
  • Click on the RStudio Build Book button.
  • Enjoy

Publishing this book in Github pages

To publish this book in Github pages, push the folder ./work/book/public as a branch gh-pages with this git command:

git subtree push --prefix work/book/public https://github.com/f0nzie/interopretable_ml-rsuite.git gh-pages

If you are building this in your own machine and own repository, change my username f0nzie by your own. This example assumes you are using https instead of ssh. Do not forget to activate gh-pages in Settings, GitHub Pages.

References

interpretable_ml-rsuite's People

Contributors

f0nzie avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.