Skip to main content

Fish predictor with KNN

Project description

fishknn

Usage - bash

예측 및 데이터 저장

$ t_cmd

시각화

$ scat_plot

Result

Figure_1

Usage - python

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

Data Plot

from fishknn.what_fish_name import watch_data
watch_data()

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.4.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

fishknn-0.1.4-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

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