Skip to main content

Weekly program no.1 - 자가 학습 KNN

프로그램 동작 방식

  • 학습된 모델이 없는 상태에서 출발
  • 사용자는 길이, 무게 데이터를 입력하고 프로그램 예측 값을 출력 (이때 프로그램은 학습 데이터가 없어 임의의 값을 예측)
  • 예측값에 대한 정답 유무 입력
  • 프로그램에 입력된 데이터(훈련데이터)와 정답(타겟) 데이터를 저장
  • 위 과정이 반복 되면서 모델을 진화 시켜 나간다.

usage

# install
## use git url
$ pip install git+https://github.com/j25ng/knn_j25ng.git
## use pypi
$ pip install knn-j25ng

# data training
$ fish
🐟 물고기의 길이를 입력하세요 (cm): 10.8
🐟 물고기의 무게를 입력하세요  (g): 8.7
🐟  물고기는 빙어입니다.
🐟 예측이 맞습니까? (y/n): y
🐟 예측 성공🥳
# data chart(use matplotlib)
$ chart
### display the figure window ###

chart window

data

$ cd ~/code/data
$ tree
.
├── data.json
└── target.json

0 directories, 2 files

Release files for knn-j25ng 2.0.3

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

Source distribution (sdist)

Source distribution for knn-j25ng 2.0.3
File Size Uploaded
knn_j25ng-2.0.3.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for knn-j25ng 2.0.3
File Interpreter ABI Platform
knn_j25ng-2.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / knn_j25ng-2.0.3.tar.gz

Download URL knn_j25ng-2.0.3.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
58707269c23adb4fbbd52f93357693430666e523496299b74eac538b65dfac80
BLAKE2b-256 checksum
How to use checksums
69d5934fe427b7312bc04513993972edbae185dcaeee86a847bff819a0b29cae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / knn_j25ng-2.0.3-py3-none-any.whl

Download URL knn_j25ng-2.0.3-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0360f6cf1f3a5afdc53abf100e583d033602b8847d3164e85b2bd57e705c0c0b
BLAKE2b-256 checksum
How to use checksums
f48eb6fb1782d30d5c259d28dd3f9e8194e60dd39778393d561cebb5bda2aa0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

2.0.3 This release

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

1 release file

1.0.1

2 release files

1.0.0

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