p-adic distance and k-Nearest Neighbor classification

被引:0
|
作者
Kartal, Elif [1 ]
Caliskan, Fatma [2 ]
Eskisehirli, Beyaz Basak [3 ]
Ozen, Zeki [1 ]
机构
[1] Istanbul Univ, Fac Econ, Dept Management Informat Syst, Istanbul, Turkiye
[2] Istanbul Univ, Fac Sci, Dept Math, Algebra & Number Theory Div, Istanbul, Turkiye
[3] Istanbul Univ, Dept Math, Anal & Theory Funct Div, Istanbul, Turkiye
关键词
Classification; Metric; k-NN; Thep-adic distance; Machine learning;
D O I
10.1016/j.neucom.2024.127400
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
The k-Nearest Neighbor (k-NN) is a well-known supervised learning algorithm. The effect of the distance used in the analysis on the k-NN performance is very important. According to Ostrowski's theorem, there are only two nontrivial absolute values on the field of rational numbers, Q, which are the usual absolute value and the p-adic absolute value for a prime p. In view of this theorem, the p-adic absolute value motivates us to calculate the p-adic distance between two samples for the k-NN algorithm. In this study, the p-adic distance on Q was coupled with the k-NN algorithm and was applied to 10 well-known public datasets containing categorical, numerical, and mixed (both categorical and numerical) type predictive attributes. Moreover, the p-adic distance performance was compared with Euclidean, Manhattan, Chebyshev, and Cosine distances. It was seen that the average accuracy obtained from the p-adic distance ranks first in 5 out of 10 datasets. Especially, in mixed datasets, the p-adic distance gave better results than other distances. For r = 1, 2, 3, the effect of the r -decimal values of the number for the p-adic calculation was examined on numerical and mixed datasets. In addition, the p parameter of the p-adic distance was tested with prime numbers less than 29, and it was found that the average accuracy obtained for each p was very close to each other, especially in categorical and mixed datasets. Also, it can be concluded that k-NN with the p-adic distance may be more suitable for binary classification than multi-class classification.
引用
收藏
页数:7
相关论文
共 50 条
  • [1] Improved k-nearest neighbor classification
    Wu, YQ
    Ianakiev, K
    Govindaraju, V
    [J]. PATTERN RECOGNITION, 2002, 35 (10) : 2311 - 2318
  • [2] Analysis of the k-nearest neighbor classification
    Li, Jing
    Cheng, Ming
    [J]. INFORMATION SCIENCE AND MANAGEMENT ENGINEERING, VOLS 1-3, 2014, 46 : 1911 - 1917
  • [3] The distance function effect on k-nearest neighbor classification for medical datasets
    Hu, Li-Yu
    Huang, Min-Wei
    Ke, Shih-Wen
    Tsai, Chih-Fong
    [J]. SPRINGERPLUS, 2016, 5
  • [4] Quantum K-nearest neighbor classification algorithm based on Hamming distance
    Jing Li
    Song Lin
    Kai Yu
    Gongde Guo
    [J]. Quantum Information Processing, 2022, 21
  • [5] A REEXAMINATION OF THE DISTANCE-WEIGHTED K-NEAREST NEIGHBOR CLASSIFICATION RULE
    MACLEOD, JES
    LUK, A
    TITTERINGTON, DM
    [J]. IEEE TRANSACTIONS ON SYSTEMS MAN AND CYBERNETICS, 1987, 17 (04): : 689 - 696
  • [6] Quantum K-nearest neighbor classification algorithm based on Hamming distance
    Li, Jing
    Lin, Song
    Yu, Kai
    Guo, Gongde
    [J]. QUANTUM INFORMATION PROCESSING, 2022, 21 (01)
  • [7] Comparative Analysis of K-Nearest Neighbor and Modified K-Nearest Neighbor Algorithm for Data Classification
    Okfalisa
    Mustakim
    Gazalba, Ikbal
    Reza, Nurul Gayatri Indah
    [J]. 2017 2ND INTERNATIONAL CONFERENCES ON INFORMATION TECHNOLOGY, INFORMATION SYSTEMS AND ELECTRICAL ENGINEERING (ICITISEE): OPPORTUNITIES AND CHALLENGES ON BIG DATA FUTURE INNOVATION, 2017, : 294 - 298
  • [8] Joint Evidential K-Nearest Neighbor Classification
    Gong, Chaoyu
    Li, Yongbin
    Liu, Yong
    Wang, Pei-hong
    You, Yang
    [J]. 2022 IEEE 38TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING (ICDE 2022), 2022, : 2113 - 2126
  • [10] An Enhanced Quantum K-Nearest Neighbor Classification Algorithm Based on Polar Distance
    Feng, Congcong
    Zhao, Bo
    Zhou, Xin
    Ding, Xiaodong
    Shan, Zheng
    [J]. ENTROPY, 2023, 25 (01)