Skip to main content

weekly_1

Background

  • 파이썬 ML scikit-learn 의 sklearn.neighbors.KNeighborsClassifier 모듈을 이용한 물고기 감별기 (도미, 빙어)

Why?

  • ML 교육 과정에서 배웠던 파이썬 scikit-learn의 전반적인 내용을 이해 및 실습할 수 있다.
  • 길이와 무게를 입력하여 어떠한 어종(도미 혹은 빙어)으로 예측되는지 파악할 수 있다.
  • 길이와 무게를 입력하여 정답과 오답을 반복하면서 점진적으로 진화하는 모델을 확인할 수 있다.
  • 해당 데이터들이 어떻게 밀집되어 있는지를 그래프(산점도)를 통해 확인할 수 있다.

Install

$ pip install weekly_1
$ pip install git+https://github.com/EstherCho-7/guess_fish.git@<Branch Name>

# or for dev
$ git clone git@github.com:EstherCho-7/guess_fish.git
$ source .venv/bin/activate

# no .venv?
$ pdm venv create

Command

# 길이, 무게를 입력 받아 어종을 파악
$ guess-fish

# 입력된 데이터들이 어떻게 분포해있는지 산점도를 통해 확인
$ plot

Usage

# If you want to start with no data,
$ rm -rf *.pkl

# Prediction
$ guess-fish
# Result
$ guess-fish
물고기의 길이: 10.8
물고기의 무게: 8.7
입력하신 물고기는 빙어
맞습니까? 맞으면 T, 아니라면 F를 입력해주시기 바랍니다.: T
저는 물고기 민수입니다.
$ guess-fish
물고기의 길이: 26.8
물고기의 무게: 450
입력하신 물고기는 도미
맞습니까? 맞으면 T, 아니라면 F를 입력해주시기 바랍니다.: T
저는 물고기 민수입니다.
# Plot
$ plot

Result

image

Release files for weekly_1 0.2.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for weekly_1 0.2.7
File Size Uploaded
weekly_1-0.2.7.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for weekly_1 0.2.7
File Interpreter ABI Platform
weekly_1-0.2.7-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / weekly_1-0.2.7.tar.gz

Download URL weekly_1-0.2.7.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cd7bab2f9bb1cdaea9ba1818e92a4cafaece1210c910ce5746099408a4d3a2cb
BLAKE2b-256 checksum
How to use checksums
82dfa062e5d0e053b3d0758d9e6b3d660d5aebf5a257966d070cf31edd9ccd9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.17.3 CPython/3.12.4 Linux/5.15.153.1-microsoft-standard-WSL2

Release files / weekly_1-0.2.7-py3-none-any.whl

Download URL weekly_1-0.2.7-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f116fb6f70e5d6f390a02fc26c8004f39151ea20bd3326d6f26f93f33e468595
BLAKE2b-256 checksum
How to use checksums
2462e288e54ed00480919333e89ea1dfd357b21263fd35113ee9cd50e9b4934f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.17.3 CPython/3.12.4 Linux/5.15.153.1-microsoft-standard-WSL2

Release history Release notifications | RSS feed

This release

0.2.7 This release

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.0

2 release files

0.1.9

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page