UBE Machine Learning. Kaya Oguz

Benzer belgeler
Unlike analytical solutions, numerical methods have an error range. In addition to this

Do not open the exam until you are told that you may begin.

1 I S L U Y G U L A M A L I İ K T İ S A T _ U Y G U L A M A ( 5 ) _ 3 0 K a s ı m

WEEK 11 CME323 NUMERIC ANALYSIS. Lect. Yasin ORTAKCI.

CHAPTER 7: DISTRIBUTION OF SAMPLE STATISTICS. Sampling from a Population

Hafta 09 -Topluluk Yöntemleri - Boyut Azaltma - Anomali Tespiti

Do not open the exam until you are told that you may begin.

Learn how to get started with Dropbox: Take your stuff anywhere. Send large files. Keep your files safe. Work on files together. Welcome to Dropbox!

Helping you to live more independently. Insanlari ve bagimsiz yasami destekleme. Daha bagimsiz yasamak için size yardim ediyor

AB surecinde Turkiyede Ozel Guvenlik Hizmetleri Yapisi ve Uyum Sorunlari (Turkish Edition)

Multiplication/division

ATILIM UNIVERSITY Department of Computer Engineering

Exercise 2 Dialogue(Diyalog)

Immigration Studying. Studying - University. Stating that you want to enroll. Stating that you want to apply for a course.

BBM Discrete Structures: Midterm 2 Date: , Time: 16:00-17:30. Question: Total Points: Score:

Bu durumda ya cozum yoktur veya sonsuz cozum vardir. KIsaca cozum tek degildir. Veya cozumler birbirine lineer bagimlidir.

WEEK 4 BLM323 NUMERIC ANALYSIS. Okt. Yasin ORTAKCI.

4. HAFTA BLM323 SAYISAL ANALİZ. Okt. Yasin ORTAKCI.

g Na2HPO4.12H2O alınır, 500mL lik balonjojede hacim tamamlanır.

%100 Zeytinyağı ÜRÜN KATALOĞU / PRODUCT CATALOGUE.

Optimizasyon Teknikleri

Mantik (Dergah Yayinlari) (Turkish Edition)

DOKUZ EYLÜL ÜNİVERSİTESİ MÜHENDİSLİK FAKÜLTESİ DEKANLIĞI DERS/MODÜL/BLOK TANITIM FORMU. Dersin Orjinal Adı: CALCULUS II. Dersin Kodu: MAT 1002

BBC English in Daily Life

NATURAL LANGUAGE PROCESSING

Yüz Tanımaya Dayalı Uygulamalar. (Özet)

Engineering Mechanics: Statics in SI Units, 12e. Equilibrium of a Particle

GAZİ İLKÖĞRETİM OKULU EĞİTİM-ÖĞRETİM YILI YETİŞTİRME KURSU İNGİLİZCE DERSİ 6. SINIF KURSU YILLIK PLANI

BBM Discrete Structures: Final Exam Date: , Time: 15:00-17:00

MM103 E COMPUTER AIDED ENGINEERING DRAWING I

ESKİŞEHİR OSMANGAZİ ÜNİVERSİTESİ

Present continous tense

D-Link DSL 500G için ayarları

HOW TO MAKE A SNAPSHOT Snapshot Nasil Yapilir. JEFF GOERTZEN / Art director, USA TODAY

Argumentative Essay Nasıl Yazılır?

a, ı ı o, u u e, i i ö, ü ü

8. SINIF KAZANIM TESTLERİ 1.SAYI. Ar-Ge Birimi Çalışmasıdır ŞANLIURFA İL MİLLİ EĞİTİM MÜDÜRLÜĞÜ DİZGİ & TASARIM İBRAHİM CANBEK MEHMET BOZKURT

Grade 8 / SBS PRACTICE TEST Test Number 9 SBS PRACTICE TEST 9

Clear omegle ban on puffin

MATEMATİK BÖLÜMÜ BÖLÜM KODU:3201

Neyzen olabilmek için en önemli özellik; sabretmeyi bilmektir. In order to be a neyzen the most important thing is to be patient.

Esenklik PART I INTRODUCTION TO ECONOMICS. Prepared by: Fernando & Yvonn Quijano

DOKUZ EYLÜL ÜNİVERSİTESİ MÜHENDİSLİK FAKÜLTESİ DEKANLIĞI DERS/MODÜL/BLOK TANITIM FORMU. Dersin Orjinal Adı: CALCULUS I. Dersin Kodu: MAT 1001

IDENTITY MANAGEMENT FOR EXTERNAL USERS

First Stage of an Automated Content-Based Citation Analysis Study: Detection of Citation Sentences

TEOG 1. MERKEZİ ORTAK SINAVLAR İNGİLİZCE DERSİ BENZER SORULARI

Virtualmin'e Yeni Web Sitesi Host Etmek - Domain Eklemek

Y KUŞAĞI ARAŞTIRMASI. TÜRKİYE BULGULARI: 17 Ocak 2014

Hukuk ve Hukukçular için İngilizce/ English for Law and Lawyers

Konforun Üç Bilinmeyenli Denklemi 2016

CS 553 INTELLIGENT DATA ANALYSIS PROJECT WORKSHOP ORHUN ALP ORAL

CmpE 320 Spring 2008 Project #2 Evaluation Criteria

EGE UNIVERSITY ELECTRICAL AND ELECTRONICS ENGINEERING COMMUNICATION SYSTEM LABORATORY

Eco 338 Economic Policy Week 4 Fiscal Policy- I. Prof. Dr. Murat Yulek Istanbul Ticaret University

THE IMPACT OF AUTONOMOUS LEARNING ON GRADUATE STUDENTS PROFICIENCY LEVEL IN FOREIGN LANGUAGE LEARNING ABSTRACT

NEY METODU SAYFA 082 NEY METHOD PAGE 082. well.

Delta Pulse 3 Montaj ve Çalıstırma Kılavuzu.


Dünya Bankası İşletme Araştırması. Örneklem Yönetimi

CALUM SAILS AWAY. Written and illustrated by Sarah Sweeney

LEARNING GOALS Human Rights Lessons

Ardunio ve Bluetooth ile RC araba kontrolü

Korelasyon ve Regresyon

BBM Discrete Structures: Final Exam - ANSWERS Date: , Time: 15:00-17:00


Islington da Pratisyen Hekimliğinizi ziyaret ettiğinizde bir tercüman istemek. Getting an interpreter when you visit your GP practice in Islington

FIHI MA-FIH - NE VARSA ONUN ICINDE VAR BY MEVLANA CELALEDDIN RUMI

WILLIAM SHAKESPEARE BY TERRY EAGLETON DOWNLOAD EBOOK : WILLIAM SHAKESPEARE BY TERRY EAGLETON PDF

Korelasyon ve Regresyon

.. ÜNİVERSİTESİ UNIVERSITY ÖĞRENCİ NİHAİ RAPORU STUDENT FINAL REPORT

A UNIFIED APPROACH IN GPS ACCURACY DETERMINATION STUDIES

Matematik Mühendisliği - Mesleki İngilizce

PRİZ KOLYE Clamp Saddles

K12NET ÖĞRENCİ-VELİ PORTALI KULLANIMI USE OF K12NET STUDENT-PARENT PORTAL

BBS 514 YAPISAL PROGRAMLAMA (STRUCTURED PROGRAMMING)

BBC English in Daily Life

1. Superlative lerden sonra gelen fiil infinitive olur. ( the latest species to join the

«Merhaba demek ve selamlaşmak»

Regresyon. Regresyon korelasyon ile yakından ilişkilidir

ingilizce.com-müşterilerle En çok kullanılan Kelime ve Deyimler-Top words and phrases to use with customers

Yaz okulunda (2014 3) açılacak olan (Calculus of Fun. of Sev. Var.) dersine kayıtlar aşağıdaki kurallara göre yapılacaktır:

Çoklu Kordinat Sistemi

Numune Kodu ve parti no

SEVİYE 1 GÜZ DÖNEMİ 2.ÇEYREK - TEKRAR KURU (8 hafta ders saati)

How many sides has the polygon?

PROFESSIONAL DEVELOPMENT POLICY OPTIONS

KÜP YAPIMI. Küp 6 kenarı eşit uzunlukta olan üç boyutlu bir şekildir. Küp. PROJE GÖREVİ mm boyutlarında bir küp tasarlamak

Mart 31, Google News Kaydı. by

: Shower Unit (Flat) : Kompakt Duș Ünitesi (Flat)

Lesson 66: Indirect questions. Ders 66: Dolaylı sorular

Sample Questions for Mid-Term Exam of Physics Lab 1 Class

From the Sabiha Gokçen Airport to the Zubeydehanim Ogretmenevi, there are two means of transportation.

İngilizce de selamlaşma maksatlı kullanılabilecek pek çok yapı vardır. Bunlar Türkçeleri ile beraber aşağıda verilmektedir:

Bilgisayar Bilimcileri Haklıymış

Zest. : Shower Unit (Flat) Kompakt Duş Ünitesi (Flat) Description Tan m. : 90x90. Size / Ebat (cm) : 2.5. Depth / Derinlik (cm) Weight / A rl k (kg)

MEH535 Örüntü Tanıma. 6. Boyut Azaltımı (Dimensionality Reduction)

SATURN RAF TEKNOLOJİSİNDE YENİ DEVRİM

AKDENİZ ÜNİVERSİTESİ MÜHENDİSLİK FAKÜLTESİ ÇEVRE MÜHENDİSLİĞİ BÖLÜMÜ ÇEV181 TEKNİK İNGİLİZCE I

Mart Ayı Değerler Eğitimi. Samimiyet

Sürekli-Zaman Sinyallerinin Matematiksel Tanımlanması

Transkript:

UBE 521 - Machine Learning Kaya Oguz

Support Vector Machines How to divide up the space with decision boundaries? 1990s - new compared to other methods. How to make the decision rule to use with this boundary? Image reference: Neural Networks and Learning Machines, Haykin, p298

Support Vector Machines Imagine we have a vector w 0, of any length we like, constrained to be perpendicular to the decision boundary. Consider an unknown point x: what we are interested in is whether or not x is on the right side of the boundary, or on the left side. We project its vector to w 0, so that we have a distance in the direction of w 0. Image reference: Neural Networks and Learning Machines, Haykin, p299

Support Vector Machines Decision rule for positive samples: We don t know what constant (b) to use, or w to use Right now there is not enough constraint to compute these values. So we add more constraints.

Support Vector Machines Define function y as +1 for positive samples, and -1 for negative samples, and the two equations become one: And for the ones in the gutter, this value is 0.

Support Vector Machines To maximize the width of the gutter, we have to minimize w. For a positive sample x p and a negative sample x n the width of gutter is If we write x es in terms of w s, using the previous equations, we get 2 / w. Therefore, to maximize the gutter, we have to minimize w. For mathematical convenience, it is also good to minimize ( w / 2) 2.

Support Vector Machines If we want to find the extremum of a function with constraints, we need to use Lagrange multipliers, which will give us a new expression which we can maximize or minimize without thinking about the constraints.

Support Vector Machines What if they can t be separated linearly? We apply a transformation to x; called phi of x. We add another dimension. Actually we don t need to know the transformation; we just need to know the dot product in the upper dimension. This is done with the kernel trick, using kernel functions. Let s see how it works on MATLAB.

Principal Component Analysis Önce istatistik Mean (ortalama) Standard deviation of a data set is a measure of how spread out the data is. Dağılımdaki her noktanın ortalama değere olan uzaklığının ortalaması

Principal Component Analysis Variance: sigma ^ 2 Covariance: İki boyut arasındaki ilişkiyi, birbirlerine göre boyutlarının nasıl değiştiğini gösterir.

Principal Component Analysis Covariance değeri pozitif ise: iki boyut benzerlik gösteriyor (beraber artıyorlar, ya da azalıyorlar). Negatif ise: bir boyut artarken, diğeri azalıyor. Sıfır ise: iki boyut birbirinden bağımsız. Eğer birden fazla boyut varsa, x, y, z gibi, cov(x,y), cov(x,z) ve cov(y,z) hesaplamalıyız.

Eigenvectors Transformation matrix (3,4) vektörünü saat yönünde 53 derece döndürürsek? Image reference: https://en.wikipedia.org/wiki/file:2d_affine_transformation_matrix.svg

Eigenvectors Soldaki [2 3; 2 1] matrisini dönüşüm matrisi olarak düşünebiliriz? Bu durumda [6;4] vektörü kendi üzerine geri dönmüş oldu, sadece boyu 4 kat büyüdü? Burada [6;4], ya da unit olarak [0.8321; 0.5547], soldaki matrisin Özvektörüdür.

Eigenvectors Sağda, Matlab yardımı ile özvektör ve özdeğerleri görüyoruz. Şimdi daha resmi olarak tanımlarına bakalım.

Eigenvectors In linear algebra, an eigenvector or characteristic vector of a linear transformation is a non-zero vector that does not change its direction when that linear transformation is applied to it (from Wikipedia). Yalnızca kare matrislerin özleri var, ve her kare matrisin de yok. Her boyuta bir özvektör ve bir özdeğer düşüyor. Eğer 3x3 bir matrisimiz varsa, 3 adet özdeğer ve özvektör var. Matlab? V deki her kolon bir eigenvektör. Unit size. Eigenvektörler birbirlerine dik (orthogonal).

Principal Component Analysis PCA is a way of identifying patterns in data, and expressing the data in such a way as to highlight their similarities and differences. Since the patterns in data can be hard to find in data of high dimension, where the luxury of graphical representation is not available, PCA is a powerful tool for analysing data. The other advantage is that once you find the patterns in the data, you compress the data by reducing the number of dimensions, without much loss of information.

PCA

Subtract the mean Subtract the mean from each of the data dimensions. data2(:,1) = data(:,1) - mean(data(:,1)); data2(:,2) = data(:,2) - mean(data(:,2));

PCA Calculate the covariance matrix. Matlab? Calculate the eigenvectors and eigenvalues of the covariance matrix. Matlab?

PCA

PCA The eigenvector with the highest eigenvalue is the principal component of the data set. Once eigenvectors are found, the next step is to order them by eigenvalue, highest to lowest, which gives us the components in order of significance. We can ignore the components of lesser significance, if we want to. We lose information by doing so, but if the eigenvalues are small, we don t lose much. The selected eigenvectors form a feature vector. In this particular example, we only choose the [0.6779;0.7352].

PCA In the final step, we take the transpose of the feature vector, and multiply it with the original transposed data set. FinalData = RowFeatureVector X RowDataAdjust

Eigenfaces The best application of PCA is to eigenfaces. http://www.cl.cam.ac.uk/research/dtg/attarchive/facedatabase.html

Final Project Derste öğrendiğiniz yöntemleri kullanarak müzik parçalarını aşağıdaki özelliklere göre tanıyacak bir uygulama hazırlayınız. Tür (Rock, Metal, Pop, Rap, Klasik, Arabesk, vb ) Yıllar (50 ler, 60 lar,... ) En az 2 adet öğrenme metodu denenmeli ve karşılaştırılmalıdır. http://ube.ege.edu.tr/~oguz/dosyalar/music.zip (~306MB)