arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2106.11828cs.LGcs.AI
收藏

使用Numba加速OPFython

Speeding Up OPFython with Numba

São Paulo State University(圣保罗州立大学)

Gustavo H. de Rosa, João Paulo Papa

摘要:

一个图形启发的分类器,被称为最优路径森林(OPF),已被证明是一个国家的最先进的算法相比,逻辑回归,支持向量机在各种各样的任务。最近,它的基于Python的版本,表示为OPFython,已被提出提供一个更友好的框架和更快的原型环境。然而,基于Python的算法比基于C的算法要慢,在面对大量数据时会影响它们的性能。因此,本文提出了一种使用Numba包的简单而高效的加速方法,它加速了基于Numpy的计算并尝试提高算法的整体性能。实验结果表明,该方法比简单的基于Python的最优潮流算法取得了更好的效果,并加快了其距离测量计算速度。

英文摘要:

A graph-inspired classifier, known as Optimum-Path Forest (OPF), has proven to be a state-of-the-art algorithm comparable to Logistic Regressors, Support Vector Machines in a wide variety of tasks. Recently, its Python-based version, denoted as OPFython, has been proposed to provide a more friendly framework and a faster prototyping environment. Nevertheless, Python-based algorithms are slower than their counterpart C-based algorithms, impacting their performance when confronted with large amounts of data. Therefore, this paper proposed a simple yet highly efficient speed up using the Numba package, which accelerates Numpy-based calculations and attempts to increase the algorithm's overall performance. Experimental results showed that the proposed approach achieved better results than the naïve Python-based OPF and speeded up its distance measurement calculation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑