KNN అల్గోరిథం తెలుగులో: సులభంగా నేర్చుకోండి 🤖
KNN (K-Nearest Neighbor) అల్గోరిథం గురించి తెలుగులో పూర్తి వివరణ. మీ మెషిన్ లెర్నింగ్ ప్రయాణాన్ని ప్రారంభించండి మరియు ఈ సులభమైన అల్గోరిథంతో డేటా అనాలిసిస్ చేయండి!
About this video
#KNN #knnalgorithm #machinelearningalgorithm
import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
from sklearn.datasets import load_breast_cancer
from sklearn.metrics import confusion_matrix
from sklearn.neighbors import KNeighborsClassifier
from sklearn.model_selection import train_test_split
import seaborn as sns
sns.set()
breast_cancer = load_breast_cancer()
X = pd.DataFrame(breast_cancer.data, columns=breast_cancer.feature_names)
X = X[['mean area', 'mean compactness']]
y = pd.Categorical.from_codes(breast_cancer.target, breast_cancer.target_names)
y = pd.get_dummies(y, drop_first=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=1)
y_pred = knn.predict(X_test)
sns.scatterplot(
x='mean area',
y='mean compactness',
hue='benign',
data=X_test.join(y_test, how='outer')
)
plt.scatter(
X_test['mean area'],
X_test['mean compactness'],
c=y_pred,
cmap='coolwarm',
alpha=0.7
)
confusion_matrix(y_test, y_pred)
4.7
11 user reviews
Write a Review
User Reviews
0 reviewsBe the first to comment...
Video Information
Views
56.4K
Total views since publication
Likes
1.4K
User likes and reactions
Duration
14:49
Video length
Published
Aug 17, 2020
Release date
Quality
hd
Video definition
About the Channel
Related Trending Topics
LIVE TRENDSThis video may be related to current global trending topics. Click any trend to explore more videos about what's hot right now!
THIS VIDEO IS TRENDING!
This video is currently trending in Morocco under the topic 'météo demain'.
Share This Video
SOCIAL SHAREShare this video with your friends and followers across all major social platforms including X (Twitter), Facebook, Youtube, Pinterest, VKontakte, and Odnoklassniki. Help spread the word about great content!