<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/bouncer-0-1-2-automated-feature-selection/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://www.statworx.com/de/blog/data-science/bouncer-0-1-2-automated-feature-selection/"> r-bloggers – STATWORX</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<h2>New Features</h2>
<p>As promised, we kept on working on our <code>bounceR</code> package. For once, we changed the interface: users now do not have to choose a number of tuning parameters, that – thanks to my somewhat cryptic documentation – sound more complicated than they are. Inspired by <a rel="nofollow" href="http://h2o-release.s3.amazonaws.com/h2o/master/3888/docs-website/h2o-docs/automl.html" target="_blank">H2o.ai</a> feature to let the user set the time he or she wants to wait, instead of a number of cryptic tuning parameters, we added a similar function.</p>
<p><img alt="bounceR logo" src="https://i1.wp.com/www.statworx.com/wp-content/uploads/bounceR.png?w=450&ssl=1" class="wp-image-13965" data-recalc-dims="1"></p>
<p>Further, we changed the source code quite a bit. Henrik Bengtsson gave a very inspiring talk on parallization using the genius <code>future</code> package at this year's eRum conference. A couple days later, Davis Vaughan released <code>furrr</code>. An incredibly smart – kudos – wrapper on-top of the no-less genius <code>purrr</code> package. Davis' package combines <code>purrr</code>'s maping functions with <code>future</code>'s parallization madness. As you can tell, I am a big fan of all these three packages. Thus, inspired by these new inventions, we wanted to make use of them in our package. So, the entire parallization setup of <code>bounceR</code> is now leveraging <code>furrr</code>. This way, the parallization is so much smarter, faster and works seemingless on different operating systems.</p>
<h2>Practical Example</h2>
<p>Thus, lets see how you can use it now. Let's start by downloading the package.</p>
<pre><code># you need devtools, cause we are just about to get it to CRAN, though we are not that far
library(devtools)

# now you are good to go
devtools::install_github(&quot;STATWORX/bounceR&quot;)

# now you can source it like every normal package
library(bounceR)
</code></pre>
<p>To show how the feature selection works, we now need some data, so lets simulate some with our <code>sim_data()</code> function. </p>
<pre><code># simulate some data
data &lt;- sim_data(n = 100,
                 modelvars = 10,
                 noisevars = 300)
</code></pre>
<p>Now you guys can all imagine that with 310 features on 100 observations, building models could be a little challenging. In order to be able to model the target no less, you need to reduce your feature space. There are numerous ways to do so. In my last <a rel="nofollow" href="https://www.statworx.com/blog/data-science/automated-feature-selection-using-bouncer/" target="_blank">Blog Post</a> I described our solution. Let's see how to use our algorithm.</p>
<pre><code># run our algorithm
selected_features &lt;- featureSelection(data = data,
                                      target = &quot;y&quot;,
                                      max_time = &quot;30 mins&quot;,
                                      bootstrap = &quot;regular&quot;,
                                      early_stopping = TRUE,
                                      parallel = TRUE)
</code></pre>
<p>What can you expect to get out of it? Well, we return a list with of course the optimal formula calculated by our algorithm. Further, you get a stability matrix with it, where you can see a ranking of the features by importance. Additionally we built in some convenient S4 methods, so you can easily access all the information you need.</p>
<h2>Outlook</h2>
<p>I hope I could teaser you a little to check out the package and help us further improve it. Currently, we are developing two new algorithms for feature selection. Thus, in the next iteration we will implement those two as well. I am looking forward to your comments, issues and thoughts on the package. </p>
<p>Cheers Guys!</p>
<div>
<h6>Über den Autor</h6>
<p><img src="https://i0.wp.com/www.statworx.com/wp-content/uploads/statworx-avatar-male-300x300.png?resize=180%2C180&ssl=1" width="180" alt="Lukas Strömsdörfer" class="wp-user-avatar wp-user-avatar-180" data-recalc-dims="1" height="180"></p>
<div>
<h4>Lukas Strömsdörfer</h4>
<p>Lukas ist im Data Science Team und promoviert gerade extern an der Uni Göttingen. In seiner Freizeit fährt er leidenschaftlich gerne Fahrrad und schaut Serien.</p>
</div>
</div>
<p>Der Beitrag <a rel="nofollow" href="https://www.statworx.com/de/blog/data-science/bouncer-0-1-2-automated-feature-selection/" target="_blank">bounceR 0.1.2: Automated Feature Selection</a> erschien zuerst auf <a rel="nofollow" href="https://www.statworx.com/de/" target="_blank">STATWORX</a>.</p>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://www.statworx.com/de/blog/data-science/bouncer-0-1-2-automated-feature-selection/"> r-bloggers – STATWORX</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/GkNPDFnI52w" height="1"></a></div>