在机器学习方面,R和MATLAB之间的优缺点是什么? [英] What are the advantages/disadvantages between R and MATLAB with respect to Machine Learning?

查看:142
本文介绍了在机器学习方面,R和MATLAB之间的优缺点是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开始对机器学习的一些研究,似乎这两个经常在该领域中使用.它们看起来非常相似,那么如何决定最好使用哪个呢?

I am beginning some studies into machine learning and it seems these two are often used in this field. They seem very similar, so how would one decide which is best to use?

推荐答案

我还要说R有更好的原因.我说这已经使用了Matlab多年,并且切换到了R,但我希望我一开始就学会了R.有一个博客放弃Matlab 列出了与之合作的许多原因Matlab有时很烦人.这里有一个要点,为什么R对我来说更有生产力:

I'd also say that R is better for a number of reasons. I say this having used Matlab for a number of years and having switched to R and I wish I had learned R in the first place. There is blog Abandon Matlab that lists a number of reasons why working with Matlab is sometimes very annoying. Here a there main points why R is more productive for me:

  • Matlab函数在工具箱内和工具箱内的语法不一致.例如如果要在R模型中更改分类器,通常只需要更改函数名称并保持调用和数据完整即可.在Matlab中,这通常涉及重新格式化数据和一个完全不同的函数调用,我必须从文档中查找这些函数.

  • Matlab functions are called with inconsistent syntax across and (within) toolboxes. e.g. if I want to change my classifier in a model in R I usually only need to change the name of the function and keep the call and data intact. In Matlab this usually involves reformatting the data and a totally different function call that I have to look up from the docs.

R具有更好的数据结构,我认为Matlab中唯一可行的结构是基本数组,并且使用除数字变量之外的其他任何方法都很麻烦,此外,您无法按名称调用列,但必须使用变量的索引(嗯,我想绘制第33列还是第34列...).您无法在R中击败data.frame!

R has better data structures I think the only workable construct in Matlab is the basic array and working with anything else than numeric variables is awkward, further you can't call the columns by name, but you have to use the index of the variable (hmm, was it column 33 or 34, that I wanted to plot ...) . You can't beat the data.frame in R!

R对于 ML 有很多有用的软件包

R has a lot of useful packages for ML

Matlab没有函数的命名参数

Matlab has no named arguments to functions

最后,如果您处理大量矩阵并发现Matlab语法更好,请使用Numpy和Scipy来检查Python. Python还有一些不错的ML库,例如 PyBrain .我不会在这里比较R和Python,因为那是一个完全不同的问题:)

Finally if you work a lot with matrices and find the Matlab syntax nicer then check out Python with Numpy and Scipy. Python also has some nice ML libraries such as PyBrain. I'm not going to compare R and Python here, because thats an entirely different question :)

这篇关于在机器学习方面,R和MATLAB之间的优缺点是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆