The
If you want to try p-adic calculations in Python, please import our p_adic.py script first.
This work is a part of the published paper in Neurocomputing and supported by the Scientific and Technological Research Council of Türkiye (TÜBİTAK) [grant number 123E293].
Let
where
The
where
For more examples, please see p_adic_examples.pdf and p_adic_examples.py.
The
where
The p-adic distance function defined here can be integrated into the k-Nearest Neighbor algorithm (such as sklearn.neighbors.KNeighborsClassifier()) with the help of a user-defined function.