Skip to main content

Fish predictor with KNN

Project description

fishknn

Usage

from fishknn.what_fish_name import fish_pred

fish_pred(<length>, <weight>, <fish_class>)
# fish_class = 0 : Bream, 1 : Smelt

result

데이터가 아예 없을때

# result
학습용 데이터가 없으므로 데이터를 저장합니다. 정답 : Bream

충분한 데이터가 없을 때

fish_pred(15, 150, 0)

# result
학습용 데이터가 부족하므로 데이터를 추가합니다. 현재 데이터의  : 5

데이터가 충분하다면?

fish_pred(6.7, 9.3, 1)

# result
오답입니다. 정답은 Smelt입니다.
예측값 : Bream

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

fishknn-0.1.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

fishknn-0.1.2-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file fishknn-0.1.2.tar.gz.

File metadata

  • Download URL: fishknn-0.1.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.18.1 CPython/3.11.9 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for fishknn-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bbb300f36cd98a91f0d52dfde29ed7a3c8b7841a32393cf01186dc8edc7855d4
MD5 a28ec37e363bc52f38d0266d91864e98
BLAKE2b-256 a4103944605929a67433d6e444fa4f464b98f1f099b2d8f661fef6d987bb619d

See more details on using hashes here.

File details

Details for the file fishknn-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: fishknn-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.18.1 CPython/3.11.9 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for fishknn-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 61e408acff0733fa0e35ce823fc4e4f4a359ce1190b47e99dfc82912068a1b4d
MD5 f74bee5514902ec339503b2f550bfffe
BLAKE2b-256 0e91169137a3bde8195a9922222ad6fbec45f455e22881e42288163fa3eac819

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