Goto

Collaborating Authors

 ggplot


Explaining Predictions: Random Forest Post-hoc Analysis (randomForestExplainer package)

#artificialintelligence

We can further evaluate the variable interactions by plotting the probability of a prediction against the variables making up the interaction. The interaction of these two variables are the most frequent interaction as seen in plot_min_depth_interactions. We plot the forest prediction against interactive variables with plot_predict_interaction. However, there is an error when the input supplied is a model created with parsnip. There is no error when the model is created directly from the randomForest package.


R NLP & Machine Learning: Lyric Analysis

#artificialintelligence

This is part one of a three-part tutorial series in which you will use R to perform a variety of analytic tasks on a case study of musical lyrics by the legendary artist, Prince. Musical lyrics may represent an artist's perspective, but popular songs reveal what society wants to hear. Lyric analysis is no easy task. Because it is often structured so differently than prose, it requires caution with assumptions and a uniquely discriminant choice of analytic techniques. Musical lyrics permeate our lives and influence our thoughts with subtle ubiquity. The concept of Predictive Lyrics is beginning to buzz and is more prevalent as a subject of research papers and graduate theses. This case study will just touch on a few pieces of this emerging subject. To celebrate the inspiring and diverse body of work left behind by Prince, you will explore the sometimes obvious, but often hidden, messages in his lyrics. However, you don't have to like Prince's music to appreciate the influence he had on the development of many genres globally. Rolling Stone magazine listed Prince as the 18th best songwriter of all time, just behind the likes of Bob Dylan, John Lennon, Paul Simon, Joni Mitchell and Stevie Wonder. Lyric analysis is slowly finding its way into data science communities as the possibility of predicting "Hit Songs" approaches reality. Prince was a man bursting with music - a wildly prolific songwriter, a virtuoso on guitars, keyboards and drums and a master architect of funk, rock, R&B and pop, even as his music defied genres. In this tutorial, Part One of the series, you'll utilize text mining techniques on a set of lyrics using the tidy text framework.


R

#artificialintelligence

If only love were so simple – How to graph a heart using R from a fun site called Date By Number. I highly recommend checking it out. If only love were so simple – How to graph a heart using R from a fun site called Date By Number. I highly recommend checking it out.


R NLP & Machine Learning: Lyric Analysis

#artificialintelligence

This is part one of a three-part tutorial series in which you will use R to perform a variety of analytic tasks on a case study of musical lyrics by the legendary artist, Prince. Musical lyrics may represent an artist's perspective, but popular songs reveal what society wants to hear. Lyric analysis is no easy task. Because it is often structured so differently than prose, it requires caution with assumptions and a uniquely discriminant choice of analytic techniques. Musical lyrics permeate our lives and influence our thoughts with subtle ubiquity. The concept of Predictive Lyrics is beginning to buzz and is more prevalent as a subject of research papers and graduate theses. This case study will just touch on a few pieces of this emerging subject. To celebrate the inspiring and diverse body of work left behind by Prince, you will explore the sometimes obvious, but often hidden, messages in his lyrics. However, you don't have to like Prince's music to appreciate the influence he had on the development of many genres globally. Rolling Stone magazine listed Prince as the 18th best songwriter of all time, just behind the likes of Bob Dylan, John Lennon, Paul Simon, Joni Mitchell and Stevie Wonder. Lyric analysis is slowly finding its way into data science communities as the possibility of predicting "Hit Songs" approaches reality. Prince was a man bursting with music - a wildly prolific songwriter, a virtuoso on guitars, keyboards and drums and a master architect of funk, rock, R&B and pop, even as his music defied genres. In this tutorial, Part One of the series, you'll utilize text mining techniques on a set of lyrics using the tidy text framework.


Simulating data to combat illegal fishing in R

@machinelearnbot

Illegal, Unreported and Unregulated (IUU) fishing is becoming a major issue around the world . In general, IUU fishing is a broad term encapsulating many different scenarios (i.e. For the purposes of this blog, we'll just limit out discussion to Illegal fishing – i.e. fishing uses practices that are against the law, fishing in areas where it is not allowed, or taking animals which are not allowed to be taken. In this blog, I'm simply going to present some code demonstrating the simulation of a training dataset. The training dataset consists of 3000 fictional ships that engage in fishing activities. First, let's load up the libraries and set variables with our base categories Create names for our 3000 ships here.


Visualising Residuals • blogR

#artificialintelligence

Now there's something to get you out of bed in the morning! Still, they're an essential element and means for identifying potential problems of any statistical model. For example, the residuals from a linear regression model should be homoscedastic. If not, this indicates an issue with the model such as non-linearity in the data. This post will cover various methods for visualising residuals from regression-based models.


Introduction to ggplot2 -- the grammar

@machinelearnbot

Description: With themes it is possible to control non-data elements on the graph. With this component we don't change a type of graph, scaling definition or used aesthetics. Instead of that, we are changing things like fonts, ticks, panel strips and background colors.


Simulating data to combat illegal fishing in R

@machinelearnbot

Illegal, Unreported and Unregulated (IUU) fishing is becoming a major issue around the world . In general, IUU fishing is a broad term encapsulating many different scenarios (i.e. For the purposes of this blog, we'll just limit out discussion to Illegal fishing – i.e. fishing uses practices that are against the law, fishing in areas where it is not allowed, or taking animals which are not allowed to be taken. In this blog, I'm simply going to present some code demonstrating the simulation of a training dataset. The training dataset consists of 3000 fictional ships that engage in fishing activities. First, let's load up the libraries and set variables with our base categories Create names for our 3000 ships here.