{ "data_id": "43452", "name": "student-grade-pass-or-fail-prediction", "exact_name": "student-grade-pass-or-fail-prediction", "version": 1, "version_label": "v1.0", "description": "This dataset is based on dipam7\/student-grade-prediction\nDataset\nGeneral information\nThis data approach student achievement in secondary education of two Portuguese schools. The data attributes include student grades, demographic, social and school-related features) and it was collected by using school reports and questionnaires. Two datasets are provided regarding the performance in two distinct subjects: Mathematics (mat) and Portuguese language (por). In [Cortez and Silva, 2008], the two datasets were modeled under binary\/five-level classification and regression tasks. \nImportant note the target attribute G3 has a strong correlation with attributes G2 and G1. This occurs because G3 is the final year grade (issued at the 3rd period), while G1 and G2 correspond to the 1st and 2nd period grades. It is more difficult to predict G3 without G2 and G1, but such prediction is much more useful (see paper source for more details).\nAttribute information\nImportant note unlike the original dataset, this one converted all binary values to numerical bool values. Moreover, it doesn't have attributes Mjob, Fjob, reason, guardian\nschool - student's school (binary: 'GP' - Gabriel Pereira or 'MS' - Mousinho da Silveira) (bool: 1 if it's GP else 0)\nsex - student's sex (binary: 'F' - female or 'M' - male) (bool: 1 if it's F else 0)\nage - student's age (numeric: from 15 to 22)\naddress - student's home address type (binary: 'U' - urban or 'R' - rural) (bool: 1 if it's U else 0)\nfamsize - family size (binary: 'LE3' - less or equal to 3 or 'GT3' - greater than 3) (bool: 1 if it's LE3 else 0)\nPstatus - parent's cohabitation status (binary: 'T' - living together or 'A' - apart) (bool: 1 if it's T else 0)\nMedu - mother's education (numeric: 0 - none, 1 - primary education (4th grade), 2 5th to 9th grade, 3 secondary education or 4 higher education)\nFedu - father's education (numeric: 0 - none, 1 - primary education (4th grade), 2 5th to 9th grade, 3 secondary education or 4 higher education)\ntraveltime - home to school travel time (numeric: 1 - 1 hour)\nstudytime - weekly study time (numeric: 1 - 10 hours)\nfailures - number of past class failures (numeric: n if 1=n3, else 4)\nschoolsup - extra educational support (binary: yes or no) (bool: 1 if it's Yes else 0)\nfamsup - family educational support (binary: yes or no) (bool: 1 if it's Yes else 0)\npaid - extra paid classes within the course subject (Math or Portuguese) (binary: yes or no) (bool: 1 if it's Yes else 0)\nactivities - extra-curricular activities (binary: yes or no) (bool: 1 if it's Yes else 0)\nnursery - attended nursery school (binary: yes or no) (bool: 1 if it's Yes else 0)\nhigher - wants to take higher education (binary: yes or no) (bool: 1 if it's Yes else 0)\ninternet - Internet access at home (binary: yes or no) (bool: 1 if it's Yes else 0)\nromantic - with a romantic relationship (binary: yes or no) (bool: 1 if it's Yes else 0)\nfamrel - quality of family relationships (numeric: from 1 - very bad to 5 - excellent)\nfreetime - free time after school (numeric: from 1 - very low to 5 - very high)\ngoout- going out with friends (numeric: from 1 - very low to 5 - very high)\nDalc - workday alcohol consumption (numeric: from 1 - very low to 5 - very high)\nWalc - weekend alcohol consumption (numeric: from 1 - very low to 5 - very high)\nhealth - current health status (numeric: from 1 - very bad to 5 - very good)\nabsences - number of school absences (numeric: from 0 to 93)\nG1 - first period grade (numeric: from 0 to 20)\nG2 - second period grade (numeric: from 0 to 20)\nG3 - final grade (numeric: from 0 to 20)\npass - (bool: 1 if that student passes else 0) output target\nGenerator\nI assume you have downloaded the original dataset.\nimport pandas as pd\npd.set_option('display.max_columns', 100)\n\n Read from original dataset\ndf = pd.read_csv('student-mat.csv')\n\n Drop columns that contain nominal values\ndf = df.drop(columns=['Mjob', 'Fjob', 'reason', 'guardian'])\n\n Convert binary values to numerical values\ndf['school'] = (df['school'] == 'GP').astype('int')\ndf['sex'] = (df['sex'] == 'F').astype('int')\ndf['address'] = (df['address'] == 'U').astype('int')\ndf['famsize'] = (df['famsize'] == 'LE3').astype('int')\ndf['Pstatus'] = (df['Pstatus'] == 'T').astype('int')\ndf['schoolsup'] = (df['schoolsup'] == 'yes').astype('int')\ndf['famsup'] = (df['famsup'] == 'yes').astype('int')\ndf['paid'] = (df['paid'] == 'yes').astype('int')\ndf['activities'] = (df['activities'] == 'yes').astype('int')\ndf['nursery'] = (df['nursery'] == 'yes').astype('int')\ndf['higher'] = (df['higher'] == 'yes').astype('int')\ndf['internet'] = (df['internet'] == 'yes').astype('int')\ndf['romantic'] = (df['romantic'] == 'yes').astype('int')\n\n Add a column to indicate who fail\ndf['pass'] = (df['G3'] = 10).astype('int')\n\n Save to student-mat-pass-or-fail.csv\nwith open('student-mat-pass-or-fail.csv', 'w') as f:\n f.write(df.to_csv(index=False))\n\nTask\nWith all attributes except G3, please predict pass. \nCitation\nP. Cortez and A. Silva. Using Data Mining to Predict Secondary School Student Performance. In A. Brito and J. Teixeira Eds., Proceedings of 5th FUture BUsiness TEChnology Conference (FUBUTEC 2008) pp. 5-12, Porto, Portugal, April, 2008, EUROSIS, ISBN 978-9077381-39-7.\nWeb Link", "format": "arff", "uploader": "Dustin Carrion", "uploader_id": 30123, "visibility": "public", "creator": null, "contributor": null, "date": "2022-03-23 13:22:00", "update_comment": null, "last_update": "2022-03-23 13:22:00", "licence": "Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)", "status": "active", "error_message": null, "url": "https:\/\/www.openml.org\/data\/download\/22102277\/dataset", "default_target_attribute": "pass", "row_id_attribute": null, "ignore_attribute": null, "runs": 0, "suggest": { "input": [ "student-grade-pass-or-fail-prediction", "This dataset is based on dipam7\/student-grade-prediction Dataset General information This data approach student achievement in secondary education of two Portuguese schools. The data attributes include student grades, demographic, social and school-related features) and it was collected by using school reports and questionnaires. Two datasets are provided regarding the performance in two distinct subjects: Mathematics (mat) and Portuguese language (por). In [Cortez and Silva, 2008], the two data " ], "weight": 5 }, "qualities": { "NumberOfInstances": 395, "NumberOfFeatures": 30, "NumberOfClasses": 0, "NumberOfMissingValues": 0, "NumberOfInstancesWithMissingValues": 0, "NumberOfNumericFeatures": 30, "NumberOfSymbolicFeatures": 0, "PercentageOfBinaryFeatures": 0, "PercentageOfInstancesWithMissingValues": 0, "AutoCorrelation": 0.5532994923857868, "PercentageOfMissingValues": 0, "Dimensionality": 0.0759493670886076, "PercentageOfNumericFeatures": 100, "MajorityClassPercentage": null, "PercentageOfSymbolicFeatures": 0, "MajorityClassSize": null, "MinorityClassPercentage": null, "MinorityClassSize": null, "NumberOfBinaryFeatures": 0 }, "tags": [ { "uploader": "38960", "tag": "Machine Learning" }, { "uploader": "38960", "tag": "Medicine" } ], "features": [ { "name": "pass", "index": "29", "type": "numeric", "distinct": "2", "missing": "0", "target": "1", "min": "0", "max": "1", "mean": "1", "stdev": "0" }, { "name": "school", "index": "0", "type": "numeric", "distinct": "2", "missing": "0", "min": "0", "max": "1", "mean": "1", "stdev": "0" }, { "name": "sex", "index": "1", "type": "numeric", "distinct": "2", "missing": "0", "min": "0", "max": "1", "mean": "1", "stdev": "0" }, { "name": "age", "index": "2", "type": "numeric", "distinct": "8", "missing": "0", "min": "15", "max": "22", "mean": "17", "stdev": "1" }, { "name": "address", "index": "3", "type": "numeric", "distinct": "2", "missing": "0", "min": "0", "max": "1", "mean": "1", "stdev": "0" }, { "name": "famsize", "index": "4", "type": "numeric", "distinct": "2", "missing": "0", "min": "0", "max": "1", "mean": "0", "stdev": "0" }, { "name": "Pstatus", "index": "5", "type": "numeric", "distinct": "2", "missing": "0", "min": "0", "max": "1", "mean": "1", "stdev": "0" }, { "name": "Medu", "index": "6", "type": "numeric", "distinct": "5", "missing": "0", "min": "0", "max": "4", "mean": "3", "stdev": "1" }, { "name": "Fedu", "index": "7", "type": "numeric", "distinct": "5", "missing": "0", "min": "0", "max": "4", "mean": "3", "stdev": "1" }, { "name": "traveltime", "index": "8", "type": "numeric", "distinct": "4", "missing": "0", "min": "1", "max": "4", "mean": "1", "stdev": "1" }, { "name": "studytime", "index": "9", "type": "numeric", "distinct": "4", "missing": "0", "min": "1", "max": "4", "mean": "2", "stdev": "1" }, { "name": "failures", "index": "10", "type": "numeric", "distinct": "4", "missing": "0", "min": "0", "max": "3", "mean": "0", "stdev": "1" }, { "name": "schoolsup", "index": "11", "type": "numeric", "distinct": "2", "missing": "0", "min": "0", "max": "1", "mean": "0", "stdev": "0" }, { "name": "famsup", "index": "12", "type": "numeric", "distinct": "2", "missing": "0", "min": "0", "max": "1", "mean": "1", "stdev": "0" }, { "name": "paid", "index": "13", "type": "numeric", "distinct": "2", "missing": "0", "min": "0", "max": "1", "mean": "0", "stdev": "0" }, { "name": "activities", "index": "14", "type": "numeric", "distinct": "2", "missing": "0", "min": "0", "max": "1", "mean": "1", "stdev": "1" }, { "name": "nursery", "index": "15", "type": "numeric", "distinct": "2", "missing": "0", "min": "0", "max": "1", "mean": "1", "stdev": "0" }, { "name": "higher", "index": "16", "type": "numeric", "distinct": "2", "missing": "0", "min": "0", "max": "1", "mean": "1", "stdev": "0" }, { "name": "internet", "index": "17", "type": "numeric", "distinct": "2", "missing": "0", "min": "0", "max": "1", "mean": "1", "stdev": "0" }, { "name": "romantic", "index": "18", "type": "numeric", "distinct": "2", "missing": "0", "min": "0", "max": "1", "mean": "0", "stdev": "0" }, { "name": "famrel", "index": "19", "type": "numeric", "distinct": "5", "missing": "0", "min": "1", "max": "5", "mean": "4", "stdev": "1" }, { "name": "freetime", "index": "20", "type": "numeric", "distinct": "5", "missing": "0", "min": "1", "max": "5", "mean": "3", "stdev": "1" }, { "name": "goout", "index": "21", "type": "numeric", "distinct": "5", "missing": "0", "min": "1", "max": "5", "mean": "3", "stdev": "1" }, { "name": "Dalc", "index": "22", "type": "numeric", "distinct": "5", "missing": "0", "min": "1", "max": "5", "mean": "1", "stdev": "1" }, { "name": "Walc", "index": "23", "type": "numeric", "distinct": "5", "missing": "0", "min": "1", "max": "5", "mean": "2", "stdev": "1" }, { "name": "health", "index": "24", "type": "numeric", "distinct": "5", "missing": "0", "min": "1", "max": "5", "mean": "4", "stdev": "1" }, { "name": "absences", "index": "25", "type": "numeric", "distinct": "34", "missing": "0", "min": "0", "max": "75", "mean": "6", "stdev": "8" }, { "name": "G1", "index": "26", "type": "numeric", "distinct": "17", "missing": "0", "min": "3", "max": "19", "mean": "11", "stdev": "3" }, { "name": "G2", "index": "27", "type": "numeric", "distinct": "17", "missing": "0", "min": "0", "max": "19", "mean": "11", "stdev": "4" }, { "name": "G3", "index": "28", "type": "numeric", "distinct": "18", "missing": "0", "min": "0", "max": "20", "mean": "10", "stdev": "5" } ], "nr_of_issues": 0, "nr_of_downvotes": 0, "nr_of_likes": 0, "nr_of_downloads": 0, "total_downloads": 0, "reach": 0, "reuse": 0, "impact_of_reuse": 0, "reach_of_reuse": 0, "impact": 0 }