Skip to main content

SapiensKNN (K-Nearest Neighbors) is an algorithm for classification and regression that returns the result based on the Euclidean distance between the input values.

Project description

The SapiensKNN or Sapiens for K-Nearest Neighbors is a Machine Learning algorithm focused on data classification, where the response for each input is calculated based on the smallest Euclidean distance between the prediction input and the training inputs. The returned value for classification will always be one of the labels from the learning DataSet. If the value of the parameter K is greater than 1, the class that is most repeated among the nearest neighbors represented in K will be returned. Although the algorithm’s primary focus is on data classification, it can also potentially be used for regression by returning the average of the values of the selected neighbors with the parameter K.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sapiensknn-1.0.3.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

sapiensknn-1.0.3-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file sapiensknn-1.0.3.tar.gz.

File metadata

  • Download URL: sapiensknn-1.0.3.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for sapiensknn-1.0.3.tar.gz
Algorithm Hash digest
SHA256 e7de192937b8fbb901ac75ce0e1a9015db34580af9d6519a3a3a3e3f2367538f
MD5 44932663b7bdf644e696d1235326a5ac
BLAKE2b-256 8a032d31569ebdd569e483b2f211060ad4bd68a87e2afbf8ff8d846786dd46d3

See more details on using hashes here.

File details

Details for the file sapiensknn-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: sapiensknn-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for sapiensknn-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8737b20897fa9142a29cc6247cd40faf30d987c0f5541156e6ccf6bb7a123ad9
MD5 7483f38fd5df0d012cee835a0c541128
BLAKE2b-256 9d11dbd379c0989ed47f1ca94c0c1a6090b0261b4a2b792dd17cff8baad6f3f4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page