├── .gitignore ├── PROJECT.md ├── README.md ├── Udacity_final_project_results.pdf ├── data ├── datatran2016_atual.csv ├── datatran2017.csv └── datatran_2016-2017.csv └── notebooks ├── 00-Descriptive-insights.ipynb ├── 00.1-RFECV-check-important-features.ipynb ├── 01-Baseline.ipynb ├── 02-RandomForest.ipynb ├── 03-GaussianNB.ipynb ├── 04-LogistiRegression-undersampling.ipynb ├── 05-LogistRegression-Binary-Perspective.ipynb ├── 06-RandomForest-undersampling.ipynb ├── 07-LogistRegression-Binary-Perspective-undersampling.ipynb ├── 08-LogistiRegression-undersampling-less-variables.ipynb ├── 09-RandomForest-num-of-injuried.ipynb ├── 10-grouped-models.ipynb ├── 10.0-LogistiRegression-prevision-class0.ipynb ├── 10.1-LogistiRegression-prevision-class1.ipynb ├── 10.2-LogistiRegression-prevision-class2.ipynb ├── 11-LogistiRegression-undersampling-higher-class-0and1.ipynb ├── 12-RandomForest-Binary-Perspective-undersampling.ipynb ├── 13-GaussianNB+undersampling.ipynb ├── 14-SVM+undersampling.ipynb ├── 15-LogistiRegression-undersampling-more-features.ipynb ├── 16-RandomForest-undersampling-more-features.ipynb ├── 17-KMeans+undersampling-more-features-Copy1.ipynb ├── 17-KMeans+undersampling-more-features.ipynb ├── 18-GradientBoosting+undersampling-more-features.ipynb ├── 19-NeuralNetowork+undersampling-more-features.ipynb ├── 20-NeuralNetowork+undersampling-binary.ipynb ├── 21-GradientBoosting+undersampling-more-features-binary.ipynb ├── Clean.ipynb └── tools.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/.gitignore -------------------------------------------------------------------------------- /PROJECT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/PROJECT.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/README.md -------------------------------------------------------------------------------- /Udacity_final_project_results.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/Udacity_final_project_results.pdf -------------------------------------------------------------------------------- /data/datatran2016_atual.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/data/datatran2016_atual.csv -------------------------------------------------------------------------------- /data/datatran2017.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/data/datatran2017.csv -------------------------------------------------------------------------------- /data/datatran_2016-2017.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/data/datatran_2016-2017.csv -------------------------------------------------------------------------------- /notebooks/00-Descriptive-insights.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/00-Descriptive-insights.ipynb -------------------------------------------------------------------------------- /notebooks/00.1-RFECV-check-important-features.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/00.1-RFECV-check-important-features.ipynb -------------------------------------------------------------------------------- /notebooks/01-Baseline.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/01-Baseline.ipynb -------------------------------------------------------------------------------- /notebooks/02-RandomForest.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/02-RandomForest.ipynb -------------------------------------------------------------------------------- /notebooks/03-GaussianNB.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/03-GaussianNB.ipynb -------------------------------------------------------------------------------- /notebooks/04-LogistiRegression-undersampling.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/04-LogistiRegression-undersampling.ipynb -------------------------------------------------------------------------------- /notebooks/05-LogistRegression-Binary-Perspective.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/05-LogistRegression-Binary-Perspective.ipynb -------------------------------------------------------------------------------- /notebooks/06-RandomForest-undersampling.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/06-RandomForest-undersampling.ipynb -------------------------------------------------------------------------------- /notebooks/07-LogistRegression-Binary-Perspective-undersampling.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/07-LogistRegression-Binary-Perspective-undersampling.ipynb -------------------------------------------------------------------------------- /notebooks/08-LogistiRegression-undersampling-less-variables.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/08-LogistiRegression-undersampling-less-variables.ipynb -------------------------------------------------------------------------------- /notebooks/09-RandomForest-num-of-injuried.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/09-RandomForest-num-of-injuried.ipynb -------------------------------------------------------------------------------- /notebooks/10-grouped-models.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/10-grouped-models.ipynb -------------------------------------------------------------------------------- /notebooks/10.0-LogistiRegression-prevision-class0.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/10.0-LogistiRegression-prevision-class0.ipynb -------------------------------------------------------------------------------- /notebooks/10.1-LogistiRegression-prevision-class1.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/10.1-LogistiRegression-prevision-class1.ipynb -------------------------------------------------------------------------------- /notebooks/10.2-LogistiRegression-prevision-class2.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/10.2-LogistiRegression-prevision-class2.ipynb -------------------------------------------------------------------------------- /notebooks/11-LogistiRegression-undersampling-higher-class-0and1.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/11-LogistiRegression-undersampling-higher-class-0and1.ipynb -------------------------------------------------------------------------------- /notebooks/12-RandomForest-Binary-Perspective-undersampling.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/12-RandomForest-Binary-Perspective-undersampling.ipynb -------------------------------------------------------------------------------- /notebooks/13-GaussianNB+undersampling.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/13-GaussianNB+undersampling.ipynb -------------------------------------------------------------------------------- /notebooks/14-SVM+undersampling.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/14-SVM+undersampling.ipynb -------------------------------------------------------------------------------- /notebooks/15-LogistiRegression-undersampling-more-features.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/15-LogistiRegression-undersampling-more-features.ipynb -------------------------------------------------------------------------------- /notebooks/16-RandomForest-undersampling-more-features.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/16-RandomForest-undersampling-more-features.ipynb -------------------------------------------------------------------------------- /notebooks/17-KMeans+undersampling-more-features-Copy1.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/17-KMeans+undersampling-more-features-Copy1.ipynb -------------------------------------------------------------------------------- /notebooks/17-KMeans+undersampling-more-features.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/17-KMeans+undersampling-more-features.ipynb -------------------------------------------------------------------------------- /notebooks/18-GradientBoosting+undersampling-more-features.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/18-GradientBoosting+undersampling-more-features.ipynb -------------------------------------------------------------------------------- /notebooks/19-NeuralNetowork+undersampling-more-features.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/19-NeuralNetowork+undersampling-more-features.ipynb -------------------------------------------------------------------------------- /notebooks/20-NeuralNetowork+undersampling-binary.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/20-NeuralNetowork+undersampling-binary.ipynb -------------------------------------------------------------------------------- /notebooks/21-GradientBoosting+undersampling-more-features-binary.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/21-GradientBoosting+undersampling-more-features-binary.ipynb -------------------------------------------------------------------------------- /notebooks/Clean.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/Clean.ipynb -------------------------------------------------------------------------------- /notebooks/tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leportella/federal-road-accidents/HEAD/notebooks/tools.py --------------------------------------------------------------------------------