eRum 2020: Appsilon Presentations On xspliner,, and Writing Production-Ready R Code

Estimated time:

As you may already know, the <a href="">2020 European R Users Meeting</a> will be a virtual event. This year, <a href="">Appsilon</a> engineers Krystian Igras, Marcin Dubel, and Jędrzej Świeżewski will be giving virtual presentations on <strong>Friday, June 19th</strong>. Tune in to learn about xspliner, making production-ready R code, and using R for Machine Learning projects with You can view all talks at the eRum 2020 Hopin event <a href="">here</a> (make sure to bookmark this link for Friday). <img class="wp-image-4691 size-full" src="" alt="Appsilon Presentation Schedule" width="2000" height="1125" /> <em>All times are in CEST</em> The presentations are all on <b data-stringify-type="bold">Friday, June 19th. </b>Yes, two will happen in parallel – so you'll have to choose! <ul><li><b data-stringify-type="bold">10:15 CEST:</b> Krystian Igras: <em>Explaining Black-Box Models with Xspliner to Make Deliberate Business Decisions</em></li><li><b data-stringify-type="bold">11:50 CEST:</b> Marcin Dubel: <em>Tools and Patterns for Making Clean &amp; Production-Ready R Code</em></li><li><b data-stringify-type="bold">11:50 CEST: </b>Jędrzej Świeżewski, PhD: <em> in R: Preserving Wildlife with Computer Vision</em></li></ul> We hope to see you there! Please find abstracts for each talk below: <img class="aligncenter size-full wp-image-4697" src="" alt="" width="2000" height="1125" /> <h3>Krystian Igras: <em>Explaining black-box models with xspliner to make deliberate business decisions </em></h3> A vast majority of the state of the art ML algorithms are black boxes, meaning it is difficult to understand their inner workings. The more that algorithms are used as decision support systems in everyday life, the greater the necessity of understanding the underlying decision rules. This is important for many reasons, including regulatory issues as well as making sure that the model learned sensible features. You can achieve all that with the xspliner R package that I have created. One of the most promising methods to explain models is building surrogate models. This can be achieved by inferring Partial Dependence Plot (PDP) curves from the black box model and building Generalized Linear Models based on these curves. The advantage of this approach is that it is model agnostic, which means you can use it regardless of what methods you used to create your model. From this presentation, you will learn what PDP curves and GLMs are and how you can calculate them based on black box models. We will take a look at an interesting business use case in which we'll find out whether the original black box model or the surrogate one is a better decision system for our needs. Finally, we will see an example of how you can explain your models using this approach with the xspliner package for R (available on CRAN!). <img class="aligncenter size-full wp-image-4698" src="" alt="" width="2000" height="1125" /> <h3>Marcin Dubel: <em>Tools and Patterns for Making Clean &amp; Production-Ready R Code</em></h3> In this talk you’ll learn the tools and best practices for making clean, reproducible R code in a working environment ready to be shared and productionized. Save your team’s time for maintenance, adjusting, and struggling with packages.  R is a great tool for fast data analysis. Its simplicity in setup combined with powerful features and community support makes it a perfect language for many subject matter experts e.g. in finance or bioinformatics. Nevertheless what is often the case is that while the code is providing a great solution, the application or model is not easily distributed to other team members or outside the team.  Both Appsilon and I personally have taken part in many R projects for which the goal was to clean and organize the code as well as the project structure. Data science teams working for our clients have all the expert knowledge and skills required to deliver the value, but they are missing the programming experience required to provide mature, reproducible and production quality code. We would like to share our approach, best practices and useful tools to share code shamelessly. During the presentation I will show:  <ul><li style="font-weight: 400;">setting up the development environment with **packrat**, **renv** and **docker**,</li><li style="font-weight: 400;">organizing the project structure,</li><li style="font-weight: 400;">the best practices in writing R code, automated with **linter**,</li><li style="font-weight: 400;">sharing the code using git,</li><li style="font-weight: 400;">organizing workflow with **drake**,</li><li style="font-weight: 400;">optimizing the Shiny apps and data loading with **plumber** and **database**,</li><li style="font-weight: 400;">preparing the tests and continuous integration **circle CI**.</li></ul> <img class="aligncenter size-full wp-image-4700" src="" alt="" width="2000" height="1125" /> <h3>Jędrzej Świeżewski, PhD: <em> in R: Preserving Wildlife with Computer Vision</em></h3> In this presentation, we will discuss using the latest techniques in computer vision as an important part of “AI for Good” efforts, namely, enhancing wildlife preservation. We will present how to make use of the latest technical advancements in an R setup even if they are originally implemented in Python. A topic rightfully receiving growing attention among Machine Learning researchers and practitioners is how to make good use of the power obtained with the advancement of the tools. One of the avenues in these efforts is assisting wildlife conservation by employing computer vision in making observations of wildlife much more effective. We will discuss several of such efforts during the talk. One of the very promising frameworks for computer vision developed recently is the wrapper of PyTorch, a Python framework used for computer vision among other things. While it incorporates the latest theoretical developments in the field (such as one cycle policy training) it provides an easy to use framework allowing a much wider audience to benefit from the tools, such as AI for Good initiatives run by people who are not formally trained in Machine Learning. During the presentation we will show how to make use of a model trained using the Python’s fastai library within an R workflow with the use of the reticulate package. We will focus on use cases concerning classifying species of African wildlife based on images from camera traps. <h2>Learn More</h2> If you’re looking for some R tutorials, try these out: <ul><li><a href="">RStudio Shortcuts and Tips</a></li><li><a href="">Video Tutorial: Create and Customize a Simple Shiny Dashboard</a></li><li><a href="">Tutorial: How I Built a Video Game in R Shiny</a></li><li><a href="">Tutorial: How to Use CSS to Style Your R Shiny Dashboards</a></li></ul>

Contact us!
Damian's Avatar
Iwona Matyjaszek
Head of Sales
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Have questions or insights?
Engage with experts, share ideas and take your data journey to the next level!
Join Slack
Explore Possibilities

Take Your Business Further with Custom Data Solutions

Unlock the full potential of your enterprise with our data services, tailored to the unique needs of Fortune 500 companies. Elevate your strategy -connect with us today!

Talk to our Experts