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.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

fishknn-0.1.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fishknn-0.1.1.tar.gz
  • Upload date:
  • Size: 2.3 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.1.tar.gz
Algorithm Hash digest
SHA256 9efbe7b6a29ce7c2802711c90cf865ac932f223322446cb89069f476129de1e1
MD5 9baeb25f030608c215134b8ef6fafc2f
BLAKE2b-256 76dba5971ca65d320dbc0c5b321926bf5af49120550b6f0b1e1fa1873bdebcb1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fishknn-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 48e03121b0d375a0d616d4947e733195da22af9e94242c67cd5f88baa45e54e8
MD5 29d69c05398be306187a7d2f306a71e1
BLAKE2b-256 eefbfb35e57f1944b838da95bb18b30adefe8b308594c11f40ae408d9ba59a9b

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