# -*- coding: utf-8 -*-
# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .r
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: R
#     language: R
#     name: ir
# ---

# # Estudo das _Features_
#
# &nbsp;&nbsp;Dado que, boa parte do desempenho e resultado das técnicas vistas em sala de aula são diretamente impactadas pela escolha ou tratamento do espaço de entrada (ou espaço de amostras) nessa parte de nosso projeto iremos fazer um estudo das _features_, possiveis correlações e principalmente remoção das features pouco significativas.

load_dataset <- function(filename) {
   # Load and return the content of `filename` into a DataFrame
   read.csv(filename)
}

dataset <- load_dataset("../dataset/xAPI-Edu-Data-full.csv")
head(dataset)

str(dataset)

# ### Attributes
#
# 1. Gender - student's gender (nominal: 'Male' or 'Female’)
# 2. Nationality- student's nationality (nominal:’ Kuwait’,’ Lebanon’,’ Egypt’,’ SaudiArabia’,’ USA’,’ Jordan’,’ Venezuela’,’ Iran’,’ Tunis’,’ Morocco’,’ Syria’,’ Palestine’,’ Iraq’,’ Lybia’)
# 3. Place of birth- student's Place of birth (nominal:’ Kuwait’,’ Lebanon’,’ Egypt’,’ SaudiArabia’,’ USA’,’ Jordan’,’ Venezuela’,’ Iran’,’ Tunis’,’ Morocco’,’ Syria’,’ Palestine’,’ Iraq’,’ Lybia’)
# 4. Educational Stages- educational level student belongs (nominal: ‘lowerlevel’,’MiddleSchool’,’HighSchool’)
# 5. Grade Levels- grade student belongs (nominal: ‘G-01’, ‘G-02’, ‘G-03’, ‘G-04’, ‘G-05’, ‘G-06’, ‘G-07’, ‘G-08’, ‘G-09’, ‘G-10’, ‘G-11’, ‘G-12 ‘)
# 6. Section ID- classroom student belongs (nominal:’A’,’B’,’C’)
# 7. Topic- course topic (nominal:’ English’,’ Spanish’, ‘French’,’ Arabic’,’ IT’,’ Math’,’ Chemistry’, ‘Biology’, ‘Science’,’ History’,’ Quran’,’ Geology’)
# 8. Semester- school year semester (nominal:’ First’,’ Second’)
# 9. Parent responsible for student (nominal:’mom’,’father’)
# 10. Raised hand- how many times the student raises his/her hand on classroom (numeric:0-100)
# 11. Visited resources- how many times the student visits a course content(numeric:0-100)
# 12. Viewing announcements-how many times the student checks the new announcements(numeric:0-100)
# 13. Discussion groups- how many times the student participate on discussion groups (numeric:0-100)
# 14. Parent Answering Survey- parent answered the surveys which are provided from school or not (nominal:’Yes’,’No’)
# 15. Parent School Satisfaction- the Degree of parent satisfaction from school(nominal:’Yes’,’No’)
# 16. Student Absence Days-the number of absence days for each student (nominal: above-7, under-7)

# ### Analisando agora cada uma das _features_

names(dataset)

summary(dataset)

StarcoderdataJupyterScriptsDedupFiltered