My sklearn (python)

Summary for myself Updated from time to time Describe the command you used and examined ** I just need to know myself, so the terms may be wrong in some places **

!! View

#command
    #Argument option description

Module loading

import sklearn

k_nearest neighbor method

import sklearn.neighbors import KNeighborsClassifier

#Instantiation of the KNeighborsClassifier class
knn = KNeighborsClassifier(n_neighbors=x)
    n_neighbors = #How many points are approximate points for judgment

#Give training data to the algorithm
knn.fit(X,y)
    X #data
    y #label

#

Recommended Posts

My sklearn (python)
My Numpy (Python)
My pyproj (python)
My pandas (python)
My str (python)
My pyautogui (python)
My PySide (Python)
My urllib (python)
My pyperclip (python)
[My memo] python
My ConfigParser (Python)
My Webdriver (Python)
My arcpy (python)
My win32gui (Python)
My os (python)
My python environment memo
My Beautiful Soup (Python)
[My memo] python -v / python -V
Python Tips (my memo)
My python data analysis container
Python
My python data analytics environment
I made my own Python library
[Python] My stock price forecast [HFT]
My favorite boto3 (Python) API sample
Python My Number verification module released
kafka python
Python basics ⑤
python + lottery 6
Python Summary
Built-in python
Python comprehension
Studying python
Python 2.7 Countdown
Python memorandum
Python FlowFishMaster
Python service
python tips
Python memo
Python comprehension
Python Singleton
Python basics ④
Python Memorandum 2
Python increment
atCoder 173 Python
[Python] function
Python installation
python tips
Installing Python 3.4.3.
Try python
Python memo
Python iterative
Python algorithm
Python2 + word2vec
[Python] Variables
Python functions
Python sys.intern ()
Python tutorial
Python decimals
python underscore
Python summary