Skip main navigation

Using R to run a classifier

Eibe Frank shows how to use Weka's MLR classifier, which includes many of the learning algorithms that are available in the R environment.

Weka’s MLR classifier includes many of the learning algorithms that are available in the R environment. Choosing the MLRClassifier in the Explorer’s Classify panel gives access to 75 classification methods and 60 regression methods. Behind the scenes, Weka transfers the data into the R environment, builds the classifier or regressor there, feeds in the test data, and extracts the predictions from the R environment and returns them to Weka. In the video Eibe runs R’s rpart method, which builds a classification tree; and rferns, which generates an ensemble of ferns – a restricted form of decision tree. Detailed instructions are given in the accompanying download (these slides do not appear in the video itself).

This article is from the free online

Advanced Data Mining with Weka

Created by
FutureLearn - Learning For Life

Reach your personal and professional goals

Unlock access to hundreds of expert online courses and degrees from top universities and educators to gain accredited qualifications and professional CV-building certificates.

Join over 18 million learners to launch, switch or build upon your career, all at your own pace, across a wide range of topic areas.

Start Learning now