SlideShare uma empresa Scribd logo
1 de 66
Baixar para ler offline
Weka - Um framework para
Mineração de Dados




                        fé
                 GMF Café
                  22/04/2009


             Fábio de Sousa Leal   1
            GMF/DSC/CEEI/UFCG
Apresentação da palestra
•    Introdução a KDD e Data Mining

•    Weka
     • ARFF
     • Explorer
         •   Preprocess
         •   Classify
         •   Associate
         •   Visualize
     •   Experimenter
     •   Knowledge Flow
     •   Simple CLI
GMF - Café                 Fábio de Sousa Leal   2
25/04/2009                GMF/DSC/CEEI/UFCG
KDD – Knowledge Discovery in
  Databases
  •     Definição:
        • “KDD é todo o processo de transformação de dados
           puros em informação valiosa.”
                                                           Introduction to Data Mining
                                                           Tan,Steinbach, Kumar.




Input              Data          Data                                          Information
                                                       Postprocessing
Data           Preprocessing    Mining




                               Processo de KDD

  GMF - Café                     Fábio de Sousa Leal                                     3
  25/04/2009                    GMF/DSC/CEEI/UFCG
KDD – Knowledge Discovery in
Databases




GMF - Café    Fábio de Sousa Leal   4
25/04/2009   GMF/DSC/CEEI/UFCG
Data Mining
•   Data Mining é uma parte integral da KDD.
•   Data Mining != Information retrieval

•   Definições:
    • “É o processo de descoberta automática de
       informações úteis em grandes repositórios de dados.”
                                            Introduction to Data Mining
                                            Tan,Steinbach, Kumar.


    •    “Mineração de Dados é uma tecnologia capaz de descobrir
         padrões de informação ‘escondidos’ em um BD”
                                            Marcus Sampaio – Professor da
                                            disciplina de Mineração de Dados
                                            da UFCG – 2008.2


GMF - Café                Fábio de Sousa Leal                                  5
25/04/2009               GMF/DSC/CEEI/UFCG
Aplicações de Data Mining
•   Comércio e Indústria

•   Biologia

                                             …Em quase todas
•   Física
                                             as áreas da ciência
                                             podemos perceber
•   Química                                  alguma aplicação
                                             de DM.
•   Medicina

•   GMF

GMF - Café             Fábio de Sousa Leal                         6
25/04/2009            GMF/DSC/CEEI/UFCG
Data Mining

                               IA
                               Aprendizagem de
                               Máquina

                                  Reconhecimento
                     Data             de padrões
                     Mining



                      Computação
              BD’s    Paralela e
                      Distribuída




GMF - Café       Fábio de Sousa Leal               7
25/04/2009      GMF/DSC/CEEI/UFCG
Weka
•   Ferramenta para mineração de dados/aprendizagem de
    máquina escrita em Java (Multiplataforma)

•   Usada para pesquisas, educação e aplicações

•   É descrita detalhadamente no livro “Data Mining” de
    Witten & Frank.

•   Boa documentação (JavaDoc)

•   Várias versões


GMF - Café              Fábio de Sousa Leal               8
25/04/2009             GMF/DSC/CEEI/UFCG
Formatos de dados no Weka

•     Vários formatos aceitos:
      •    .arff
      •    .csv
      •    .bsi
      •    .names


•     Formato padrão: .ARFF




    GMF - Café              Fábio de Sousa Leal   9
    25/04/2009             GMF/DSC/CEEI/UFCG
ARFF

•   Exemplo de arquivo ARFF:
    @RELATION GmfExample

    #Os comentarios sao escritos assim
    @ATTRIBUTE idade numeric
    @ATTRIBUTE classe {graduando, mestrando, doutorando,professor titular, professor adjunto}
    @ATTRIBUTE sexo {masculino,feminino}
    @ATTRIBUTE remuneracao numeric
    #Comentarios podem vir em qualquer parte do ARFF.

    @DATA
    18,graduando,masculino,300
    20,graduando,feminino,450
    24,mestrando,feminino,1500
    28,doutorando,masculino,3000
    35,”professor titular”,masculino,12000


GMF - Café                           Fábio de Sousa Leal                                   10
25/04/2009                          GMF/DSC/CEEI/UFCG
Weka




  GMF - Café    Fábio de Sousa Leal   11
  25/04/2009   GMF/DSC/CEEI/UFCG
Weka – Simple CLI
•    Simple CLI: Simple Command Line Interpreter

•    Muitos parâmetros nas chamadas dos algoritmos.

•    Tudo é feito manualmente, via linha de comando.

•    Ferramenta útil, pois “adaptamos” o algoritmo para
     trabalhar da melhor maneira para cada caso.




       GMF - Café             Fábio de Sousa Leal         12
       25/04/2009            GMF/DSC/CEEI/UFCG
Weka - Explorer

•   Módulo Principal do programa.
•   Possibilidade de importar os dados via URL ou de um BD SQL
    (através do JDBC).
•   As ferramentas para pré-processamento são chamadas “filters”.

•   Filtros Disponíveis:
    • Discretização
    • Normalização
    • Seleção de atributos específicos
    • Combinação de atributos
    • Além de vários outros

        GMF - Café            Fábio de Sousa Leal           13
        25/04/2009           GMF/DSC/CEEI/UFCG
11/28/2009   University of Waikato   14
11/28/2009   University of Waikato   15
11/28/2009   University of Waikato   16
11/28/2009   University of Waikato   17
11/28/2009   University of Waikato   18
11/28/2009   University of Waikato   19
11/28/2009   University of Waikato   20
11/28/2009   University of Waikato   21
11/28/2009   University of Waikato   22
11/28/2009   University of Waikato   23
11/28/2009   University of Waikato   24
11/28/2009   University of Waikato   25
11/28/2009   University of Waikato   26
11/28/2009   University of Waikato   27
11/28/2009   University of Waikato   28
11/28/2009   University of Waikato   29
11/28/2009   University of Waikato   30
11/28/2009   University of Waikato   31
11/28/2009   University of Waikato   32
11/28/2009   University of Waikato   33
11/28/2009   University of Waikato   34
11/28/2009   University of Waikato   35
11/28/2009   University of Waikato   36
11/28/2009   University of Waikato   37
11/28/2009   University of Waikato   38
11/28/2009   University of Waikato   39
11/28/2009   University of Waikato   40
11/28/2009   University of Waikato   41
11/28/2009   University of Waikato   42
11/28/2009   University of Waikato   43
11/28/2009   University of Waikato   44
11/28/2009   University of Waikato   45
11/28/2009   University of Waikato   46
11/28/2009   University of Waikato   47
11/28/2009   University of Waikato   48
11/28/2009   University of Waikato   49
11/28/2009   University of Waikato   50
11/28/2009   University of Waikato   51
11/28/2009   University of Waikato   52
11/28/2009   University of Waikato   53
11/28/2009   University of Waikato   54
11/28/2009   University of Waikato   55
11/28/2009   University of Waikato   56
11/28/2009   University of Waikato   57
11/28/2009   University of Waikato   58
11/28/2009   University of Waikato   59
11/28/2009   University of Waikato   60
11/28/2009   University of Waikato   61
11/28/2009   University of Waikato   62
11/28/2009   University of Waikato   63
11/28/2009   University of Waikato   64
11/28/2009   University of Waikato   65
11/28/2009   University of Waikato   66

Mais conteúdo relacionado

Destaque

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Destaque (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Weka Framework

  • 1. Weka - Um framework para Mineração de Dados fé GMF Café 22/04/2009 Fábio de Sousa Leal 1 GMF/DSC/CEEI/UFCG
  • 2. Apresentação da palestra • Introdução a KDD e Data Mining • Weka • ARFF • Explorer • Preprocess • Classify • Associate • Visualize • Experimenter • Knowledge Flow • Simple CLI GMF - Café Fábio de Sousa Leal 2 25/04/2009 GMF/DSC/CEEI/UFCG
  • 3. KDD – Knowledge Discovery in Databases • Definição: • “KDD é todo o processo de transformação de dados puros em informação valiosa.” Introduction to Data Mining Tan,Steinbach, Kumar. Input Data Data Information Postprocessing Data Preprocessing Mining Processo de KDD GMF - Café Fábio de Sousa Leal 3 25/04/2009 GMF/DSC/CEEI/UFCG
  • 4. KDD – Knowledge Discovery in Databases GMF - Café Fábio de Sousa Leal 4 25/04/2009 GMF/DSC/CEEI/UFCG
  • 5. Data Mining • Data Mining é uma parte integral da KDD. • Data Mining != Information retrieval • Definições: • “É o processo de descoberta automática de informações úteis em grandes repositórios de dados.” Introduction to Data Mining Tan,Steinbach, Kumar. • “Mineração de Dados é uma tecnologia capaz de descobrir padrões de informação ‘escondidos’ em um BD” Marcus Sampaio – Professor da disciplina de Mineração de Dados da UFCG – 2008.2 GMF - Café Fábio de Sousa Leal 5 25/04/2009 GMF/DSC/CEEI/UFCG
  • 6. Aplicações de Data Mining • Comércio e Indústria • Biologia …Em quase todas • Física as áreas da ciência podemos perceber • Química alguma aplicação de DM. • Medicina • GMF GMF - Café Fábio de Sousa Leal 6 25/04/2009 GMF/DSC/CEEI/UFCG
  • 7. Data Mining IA Aprendizagem de Máquina Reconhecimento Data de padrões Mining Computação BD’s Paralela e Distribuída GMF - Café Fábio de Sousa Leal 7 25/04/2009 GMF/DSC/CEEI/UFCG
  • 8. Weka • Ferramenta para mineração de dados/aprendizagem de máquina escrita em Java (Multiplataforma) • Usada para pesquisas, educação e aplicações • É descrita detalhadamente no livro “Data Mining” de Witten & Frank. • Boa documentação (JavaDoc) • Várias versões GMF - Café Fábio de Sousa Leal 8 25/04/2009 GMF/DSC/CEEI/UFCG
  • 9. Formatos de dados no Weka • Vários formatos aceitos: • .arff • .csv • .bsi • .names • Formato padrão: .ARFF GMF - Café Fábio de Sousa Leal 9 25/04/2009 GMF/DSC/CEEI/UFCG
  • 10. ARFF • Exemplo de arquivo ARFF: @RELATION GmfExample #Os comentarios sao escritos assim @ATTRIBUTE idade numeric @ATTRIBUTE classe {graduando, mestrando, doutorando,professor titular, professor adjunto} @ATTRIBUTE sexo {masculino,feminino} @ATTRIBUTE remuneracao numeric #Comentarios podem vir em qualquer parte do ARFF. @DATA 18,graduando,masculino,300 20,graduando,feminino,450 24,mestrando,feminino,1500 28,doutorando,masculino,3000 35,”professor titular”,masculino,12000 GMF - Café Fábio de Sousa Leal 10 25/04/2009 GMF/DSC/CEEI/UFCG
  • 11. Weka GMF - Café Fábio de Sousa Leal 11 25/04/2009 GMF/DSC/CEEI/UFCG
  • 12. Weka – Simple CLI • Simple CLI: Simple Command Line Interpreter • Muitos parâmetros nas chamadas dos algoritmos. • Tudo é feito manualmente, via linha de comando. • Ferramenta útil, pois “adaptamos” o algoritmo para trabalhar da melhor maneira para cada caso. GMF - Café Fábio de Sousa Leal 12 25/04/2009 GMF/DSC/CEEI/UFCG
  • 13. Weka - Explorer • Módulo Principal do programa. • Possibilidade de importar os dados via URL ou de um BD SQL (através do JDBC). • As ferramentas para pré-processamento são chamadas “filters”. • Filtros Disponíveis: • Discretização • Normalização • Seleção de atributos específicos • Combinação de atributos • Além de vários outros GMF - Café Fábio de Sousa Leal 13 25/04/2009 GMF/DSC/CEEI/UFCG
  • 14. 11/28/2009 University of Waikato 14
  • 15. 11/28/2009 University of Waikato 15
  • 16. 11/28/2009 University of Waikato 16
  • 17. 11/28/2009 University of Waikato 17
  • 18. 11/28/2009 University of Waikato 18
  • 19. 11/28/2009 University of Waikato 19
  • 20. 11/28/2009 University of Waikato 20
  • 21. 11/28/2009 University of Waikato 21
  • 22. 11/28/2009 University of Waikato 22
  • 23. 11/28/2009 University of Waikato 23
  • 24. 11/28/2009 University of Waikato 24
  • 25. 11/28/2009 University of Waikato 25
  • 26. 11/28/2009 University of Waikato 26
  • 27. 11/28/2009 University of Waikato 27
  • 28. 11/28/2009 University of Waikato 28
  • 29. 11/28/2009 University of Waikato 29
  • 30. 11/28/2009 University of Waikato 30
  • 31. 11/28/2009 University of Waikato 31
  • 32. 11/28/2009 University of Waikato 32
  • 33. 11/28/2009 University of Waikato 33
  • 34. 11/28/2009 University of Waikato 34
  • 35. 11/28/2009 University of Waikato 35
  • 36. 11/28/2009 University of Waikato 36
  • 37. 11/28/2009 University of Waikato 37
  • 38. 11/28/2009 University of Waikato 38
  • 39. 11/28/2009 University of Waikato 39
  • 40. 11/28/2009 University of Waikato 40
  • 41. 11/28/2009 University of Waikato 41
  • 42. 11/28/2009 University of Waikato 42
  • 43. 11/28/2009 University of Waikato 43
  • 44. 11/28/2009 University of Waikato 44
  • 45. 11/28/2009 University of Waikato 45
  • 46. 11/28/2009 University of Waikato 46
  • 47. 11/28/2009 University of Waikato 47
  • 48. 11/28/2009 University of Waikato 48
  • 49. 11/28/2009 University of Waikato 49
  • 50. 11/28/2009 University of Waikato 50
  • 51. 11/28/2009 University of Waikato 51
  • 52. 11/28/2009 University of Waikato 52
  • 53. 11/28/2009 University of Waikato 53
  • 54. 11/28/2009 University of Waikato 54
  • 55. 11/28/2009 University of Waikato 55
  • 56. 11/28/2009 University of Waikato 56
  • 57. 11/28/2009 University of Waikato 57
  • 58. 11/28/2009 University of Waikato 58
  • 59. 11/28/2009 University of Waikato 59
  • 60. 11/28/2009 University of Waikato 60
  • 61. 11/28/2009 University of Waikato 61
  • 62. 11/28/2009 University of Waikato 62
  • 63. 11/28/2009 University of Waikato 63
  • 64. 11/28/2009 University of Waikato 64
  • 65. 11/28/2009 University of Waikato 65
  • 66. 11/28/2009 University of Waikato 66