Data Analysis From Scratch With Python: Step By Step Guide


 Supervised & Unsupervised Learning



Download 2,79 Mb.
Pdf ko'rish
bet22/60
Sana30.05.2022
Hajmi2,79 Mb.
#620990
1   ...   18   19   20   21   22   23   24   25   ...   60
Bog'liq
Data Analysis From Scratch With Python Beginner Guide using Python, Pandas, NumPy, Scikit-Learn, IPython, TensorFlow and... (Peters Morgan) (z-lib.org)

9. Supervised & Unsupervised Learning
In many introductory courses and books about machine learning and data
science, you’ll likely encounter what Supervised & Unsupervised Learning mean
and what are their differences. That’s because these are the two general
categories of machine learning and data science tasks many professionals do.
What is Supervised Learning?
First, Supervised Learning is a lot similar to learning from examples. For
instance, we have a huge collection of images correctly labeled as either dogs or
cats. Our computer will then learn from those given examples and correct labels.
Perhaps our computer will find patterns and similarities among those images.
And finally when we introduce new images, our computer and model will
successfully identify an image whether there’s a dog or cat in it.
It’s a lot like learning with supervision. There are correct answers (e.g. cats or
dogs) and it’s the job of our model to align itself so on new data it can still
produce correct answers (in an acceptable performance level because it’s hard to
reach 100%).
For example, Linear Regression is considered under Supervised Learning.
Remember that in linear regression we’re trying to predict the value of y for a
given x. But first, we have to find patterns and “fit” a line that best describes the
relationship between x and y (and predict y values for new x inputs).
print(__doc__)


# Code source: Jaques Grobler
# License: BSD 3 clause
import matplotlib.pyplot as plt
import numpy as np
from sklearn import datasets, linear_model
from sklearn.metrics import mean_squared_error, r2_score
# Load the diabetes dataset
diabetes = datasets.load_diabetes()
# Use only one feature

Download 2,79 Mb.

Do'stlaringiz bilan baham:
1   ...   18   19   20   21   22   23   24   25   ...   60




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish