Wprowadzenie do programu RapidMiner, część 3 Michał Bereta

Podobne dokumenty
Wprowadzenie do programu RapidMiner, część 3 Michał Bereta

Wprowadzenie do programu RapidMiner Studio 7.6, część 9 Modele liniowe Michał Bereta

Hard-Margin Support Vector Machines

Rozpoznawanie twarzy metodą PCA Michał Bereta 1. Testowanie statystycznej istotności różnic między jakością klasyfikatorów

Wprowadzenie do programu RapidMiner, część 2 Michał Bereta 1. Wykorzystanie wykresu ROC do porównania modeli klasyfikatorów

Linear Classification and Logistic Regression. Pascal Fua IC-CVLab

Wprowadzenie do programu RapidMiner, część 5 Michał Bereta

Machine Learning for Data Science (CS4786) Lecture11. Random Projections & Canonical Correlation Analysis

KORELACJA 1. Wykres rozrzutu ocena związku między zmiennymi X i Y. 2. Współczynnik korelacji Pearsona

Wprowadzenie do programu RapidMiner, część 4 Michał Bereta

TTIC 31210: Advanced Natural Language Processing. Kevin Gimpel Spring Lecture 8: Structured PredicCon 2

TTIC 31210: Advanced Natural Language Processing. Kevin Gimpel Spring Lecture 9: Inference in Structured Prediction

Proposal of thesis topic for mgr in. (MSE) programme in Telecommunications and Computer Science

Machine Learning for Data Science (CS4786) Lecture 24. Differential Privacy and Re-useable Holdout

tum.de/fall2018/ in2357

Zarządzanie sieciami telekomunikacyjnymi

Reguły asocjacyjne w programie RapidMiner Michał Bereta

Tychy, plan miasta: Skala 1: (Polish Edition)

Knovel Math: Jakość produktu

Wojewodztwo Koszalinskie: Obiekty i walory krajoznawcze (Inwentaryzacja krajoznawcza Polski) (Polish Edition)

OpenPoland.net API Documentation

Wprowadzenie do programu RapidMiner Studio 7.6, część 4 Michał Bereta

deep learning for NLP (5 lectures)

Stargard Szczecinski i okolice (Polish Edition)

Wojewodztwo Koszalinskie: Obiekty i walory krajoznawcze (Inwentaryzacja krajoznawcza Polski) (Polish Edition)

SSW1.1, HFW Fry #20, Zeno #25 Benchmark: Qtr.1. Fry #65, Zeno #67. like

MaPlan Sp. z O.O. Click here if your download doesn"t start automatically

EXAMPLES OF CABRI GEOMETRE II APPLICATION IN GEOMETRIC SCIENTIFIC RESEARCH

Wybór / ocena atrybutów na podstawie oceny jakości działania wybranego klasyfikatora.

Convolution semigroups with linear Jacobi parameters

Zmiany techniczne wprowadzone w wersji Comarch ERP Altum

Revenue Maximization. Sept. 25, 2018

Karpacz, plan miasta 1:10 000: Panorama Karkonoszy, mapa szlakow turystycznych (Polish Edition)

Emilka szuka swojej gwiazdy / Emily Climbs (Emily, #2)

POLITYKA PRYWATNOŚCI / PRIVACY POLICY

Zakopane, plan miasta: Skala ok. 1: = City map (Polish Edition)

ARKUSZ PRÓBNEJ MATURY Z OPERONEM

Rolki i arkusze stosowane w handlu Commercial rolls and sheets. ko-box.pl

ERASMUS + : Trail of extinct and active volcanoes, earthquakes through Europe. SURVEY TO STUDENTS.

Previously on CSCI 4622

Neural Networks (The Machine-Learning Kind) BCS 247 March 2019


EGZAMIN MATURALNY Z JĘZYKA ANGIELSKIEGO POZIOM ROZSZERZONY MAJ 2010 CZĘŚĆ I. Czas pracy: 120 minut. Liczba punktów do uzyskania: 23 WPISUJE ZDAJĄCY

Dealing with continuous-valued attributes

Few-fermion thermometry

Helena Boguta, klasa 8W, rok szkolny 2018/2019

Weronika Mysliwiec, klasa 8W, rok szkolny 2018/2019

Testy jednostkowe - zastosowanie oprogramowania JUNIT 4.0 Zofia Kruczkiewicz

y = The Chain Rule Show all work. No calculator unless otherwise stated. If asked to Explain your answer, write in complete sentences.


Agnostic Learning and VC dimension

SubVersion. Piotr Mikulski. SubVersion. P. Mikulski. Co to jest subversion? Zalety SubVersion. Wady SubVersion. Inne różnice SubVersion i CVS

A Zadanie

Analysis of Movie Profitability STAT 469 IN CLASS ANALYSIS #2

Camspot 4.4 Camspot 4.5

Dolny Slask 1: , mapa turystycznosamochodowa: Plan Wroclawia (Polish Edition)

Wroclaw, plan nowy: Nowe ulice, 1:22500, sygnalizacja swietlna, wysokosc wiaduktow : Debica = City plan (Polish Edition)

DUAL SIMILARITY OF VOLTAGE TO CURRENT AND CURRENT TO VOLTAGE TRANSFER FUNCTION OF HYBRID ACTIVE TWO- PORTS WITH CONVERSION

Pielgrzymka do Ojczyzny: Przemowienia i homilie Ojca Swietego Jana Pawla II (Jan Pawel II-- pierwszy Polak na Stolicy Piotrowej) (Polish Edition)

Realizacja systemów wbudowanych (embeded systems) w strukturach PSoC (Programmable System on Chip)

Boosting. Sewoong Oh. CSE/STAT 416 University of Washington

OSI Data Link Layer. Network Fundamentals Chapter 7. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

Katowice, plan miasta: Skala 1: = City map = Stadtplan (Polish Edition)

ARNOLD. EDUKACJA KULTURYSTY (POLSKA WERSJA JEZYKOWA) BY DOUGLAS KENT HALL

Metodyki projektowania i modelowania systemów Cyganek & Kasperek & Rajda 2013 Katedra Elektroniki AGH

Inverse problems - Introduction - Probabilistic approach

Dolny Slask 1: , mapa turystycznosamochodowa: Plan Wroclawia (Polish Edition)

General Certificate of Education Ordinary Level ADDITIONAL MATHEMATICS 4037/12

GRY EDUKACYJNE I ICH MOŻLIWOŚCI DZIĘKI INTERNETOWI DZIŚ I JUTRO. Internet Rzeczy w wyobraźni gracza komputerowego


Multiklasyfikatory z funkcją kompetencji

17-18 września 2016 Spółka Limited w UK. Jako Wehikuł Inwestycyjny. Marek Niedźwiedź. InvestCamp 2016 PL

POLITECHNIKA ŚLĄSKA INSTYTUT AUTOMATYKI ZAKŁAD SYSTEMÓW POMIAROWYCH

Miedzy legenda a historia: Szlakiem piastowskim z Poznania do Gniezna (Biblioteka Kroniki Wielkopolski) (Polish Edition)

HAPPY ANIMALS L01 HAPPY ANIMALS L03 HAPPY ANIMALS L05 HAPPY ANIMALS L07

Wojewodztwo Koszalinskie: Obiekty i walory krajoznawcze (Inwentaryzacja krajoznawcza Polski) (Polish Edition)

HAPPY ANIMALS L02 HAPPY ANIMALS L04 HAPPY ANIMALS L06 HAPPY ANIMALS L08

Wykaz linii kolejowych, które są wyposażone w urządzenia systemu ETCS

PLSH1 (JUN14PLSH101) General Certificate of Education Advanced Subsidiary Examination June Reading and Writing TOTAL

Jak zasada Pareto może pomóc Ci w nauce języków obcych?

Wykaz linii kolejowych, które są wyposażone w urzadzenia systemu ETCS

EGZAMIN MATURALNY Z JĘZYKA ANGIELSKIEGO POZIOM ROZSZERZONY MAJ 2010 CZĘŚĆ I. Czas pracy: 120 minut. Liczba punktów do uzyskania: 23 WPISUJE ZDAJĄCY

Typ VFR. Circular flow adjustment dampers for the adjustment of volume flow rates and pressures in supply air and extract air systems

Domy inaczej pomyślane A different type of housing CEZARY SANKOWSKI

Test sprawdzający znajomość języka angielskiego

Typ VFR. Circular flow adjustment dampers for the adjustment of volume flow rates and pressures in supply air and extract air systems

Strategic planning. Jolanta Żyśko University of Physical Education in Warsaw

STATISTICAL METHODS IN BIOLOGY

Effective Governance of Education at the Local Level

Surname. Other Names. For Examiner s Use Centre Number. Candidate Number. Candidate Signature

Dominika Janik-Hornik (Uniwersytet Ekonomiczny w Katowicach) Kornelia Kamińska (ESN Akademia Górniczo-Hutnicza) Dorota Rytwińska (FRSE)

Karpacz, plan miasta 1:10 000: Panorama Karkonoszy, mapa szlakow turystycznych (Polish Edition)

ABOUT NEW EASTERN EUROPE BESTmQUARTERLYmJOURNAL

Fig 5 Spectrograms of the original signal (top) extracted shaft-related GAD components (middle) and

SNP SNP Business Partner Data Checker. Prezentacja produktu

Wyk lad 8: Leniwe metody klasyfikacji

OSI Network Layer. Network Fundamentals Chapter 5. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

ZDANIA ANGIELSKIE W PARAFRAZIE

Rev Źródło:

ITIL 4 Certification

Transkrypt:

Wprowadzenie do programu RapidMiner, część 3 Michał Bereta www.michalbereta.pl 1. W programie RapidMiner mamy do dyspozycji kilka dyskryminacyjnych modeli liniowych jako operatory: a. LDA Linear Discriminant Analysis b. QDA Quadratic Linear Analysis c. RDA Regularized Discriminant Analysis d. Classification by Regression (może użyd dowolny model regresyjny jako subproces) e. Perceptron Z Dokumentacji RM: Linear Discriminant Analysis (RapidMiner Core) This operator performs linear discriminant analysis (LDA). This method tries to find the linear combination of features which best separate two or more classes of examples. The resulting combination is then used as a linear classifier. Discriminant analysis is used to determine which variables discriminate between two or more naturally occurring groups, it may have a descriptive or a predictive objective. Quadratic Discriminant Analysis (RapidMiner Core) This operator performs a quadratic discriminant analysis (QDA). QDA is closely related to linear discriminant analysis (LDA), where it is assumed that the measurements are normally distributed. Unlike LDA however, in QDA there is no assumption that the covariance of each of the classes is identical. To estimate the parameters required in quadratic discrimination more computation and data is required 1

than in the case of linear discrimination. If there is not a great difference in the group covariance matrices, then the latter will perform as well as quadratic discrimination. Quadratic Discrimination is the general form of Bayesian discrimination. Regularized Discriminant Analysis (RapidMiner Core) The regularized discriminant analysis (RDA) is a generalization of the linear discriminant analysis (LDA) and the quadratic discreminant analysis (QDA). Both algorithms are special cases of this algorithm. If the alpha parameter is set to 1, this operator performs LDA. Similarly if the alpha parameter is set to 0, this operator performs QDA. Classification by Regression (RapidMiner Core) This operator builds a polynominal classification model through the given regression learner. The Classification by Regression operator is a nested operator i.e. it has a subprocess. The subprocess must have a regression learner i.e. an operator that generates a regression model. This operator builds a classification model using the regression learner provided in its subprocess. Here is an explanation of how a classification model is built from a regression learner. For each class i of the given ExampleSet, a regression model is trained after setting the label to +1 if the label is i and to -1 if it is not. Then the regression models are combined into a classification model. This model can be applied using the Apply Model operator. In order to determine the prediction for an unlabeled example, all regression models are applied and the class belonging to the regression model which predicts the greatest value is chosen. Perceptron (RapidMiner Core) This operator learns a linear classifier called Single Perceptron which finds separating hyperplane (if existent). This operator cannot handle polynominal attributes. The perceptron is a type of artificial neural network invented in 1957 by Frank Rosenblatt. It can be seen as the simplest kind of feed-forward neural network: a linear classifier. Beside all biological analogies, the single layer perceptron is simply a linear classifier which is efficiently trained by a simple update rule: for all wrongly classified data points, the weight vector is either increased or decreased by the corresponding example values. 2

Zadanie: Porównajmy działanie tych modeli liniowych na danych pima-indians-diabetes.csv. Użyjemy prostego Split Validation Validation LDA: 3

Validation QDA: Validation RDA: Validation regression: Operator Classification by Regression posiada jako podproces regresję liniową (operator Linear Regression ), która będzie zastosowana do każdej klasy z osobna: 4

Validation perceptron: Przykładowe wyniki: LDA QDA 5

RDA Regresja liniowa Perceptron Jakie będą wyniki, jeśli zmienią się parametry operatorów? Np. lub 6

Zadanie: Wykonaj powyższe porównanie dla problemu klasyfikacji szkła (zmieo nazwę pliku glass.data na glass.csv przed zaimportowaniem do RM): http://archive.ics.uci.edu/ml/machine-learning-databases/glass/ Baza glass posiada 7 klas jak to wpływa na możliwośd wykorzystania powyższych operatorów? 7

2. Bagging zastosowanie próbkowania bootstrap do generowania klasyfikatora opartego na głosowaniu większościowym prostych klasyfikatorów. Z dokumentacji RM: Bagging Bootstrap aggregating (bagging) is a machine learning ensemble meta-algorithm to improve classification and regression models in terms of stability and classification accuracy. It also reduces variance and helps to avoid overfitting. Although it is usually applied to decision tree models, it can be used with any type of model. The Bagging operator is a nested operator i.e. it has a subprocess. The subprocess must have a learner i.e. an operator that expects an ExampleSet and generates a model. This operator tries to build a better model using the learner provided in its subprocess. Empirically, ensembles tend to yield better results when there is a significant diversity among the models. Many ensemble methods, therefore, seek to promote diversity among the models they combine. Although perhaps non-intuitive, more random algorithms (like random decision trees) can be used to produce a stronger ensemble than very deliberate algorithms (like entropy-reducing decision trees). Using a variety of strong learning algorithms, however, has been shown to be more effective than using techniques that attempt to dumb-down the models in order to promote diversity. Wykorzystując Split Validation : 8

Iterations liczba bazowych klasyfikatorów=iteracji generowania pseudoprób uczących. Jako podstawowy klasyfikator w metodzie bagging ustawiamy DecisionTree : 9

Zadanie: a. Prównaj czy / o ile bagging poprawia działanie w stosunku do pojedynczego drzewa? Porównaj dla bazy Pima, Sonar oraz Glass. Wypróbuj różne ustawienia parametrów drzewa decyzyjnego (również w operatorze bagging), np. wyłącz prepruning. b. Czy zwiększanie liczby podstawowych klasyfikatorów w metodzie bagging przynosi poprawę? Jeśli tak, to czy dla pewnej liczby następuje nasycenie tej tendencji? c. Jak działa bagging dla klasyfikatorów liniowych z poprzedniego zadania jako podstawowych klasyfikatorów? Porównaj np. Perceptron z Bagging opartym na perceptronach. Przykładowe wyniki dla porównania Perceptrona z Bagging + Perceptron dla baz Indian Pima: Dla Perceptron : Dla Bagging + Perceptron : Co można powiedzied o wynikach? Zwród uwagę nie tylko na accuracy. 10