Machine Learning systems have achieved outstanding performance in different domains. In this paper machine learning methods have been applied to classification task to classify music genre. The code shows how to extract features from audio files and classify them using supervised learning into 2 genres namely classical and metal. Algorithms used are LogisticRegression, SVC using different kernals (linear, sigmoid, rbf and poly), KNeighborsClassifier , RandomForestClassifier, DecisionTreeClassifier and GaussianNB.
翻译:机器学习系统已在不同领域取得了卓越的性能。本文应用机器学习方法对音乐类型进行分类任务。代码展示了如何从音频文件中提取特征,并通过监督学习将其分为古典乐和金属乐两类。使用的算法包括逻辑回归、基于不同核函数(线性、sigmoid、rbf和poly)的支持向量分类器、K近邻分类器、随机森林分类器、决策树分类器以及高斯朴素贝叶斯分类器。