Giter Club home page Giter Club logo

allstate's Introduction

Allstate

In this program, we will take a look at the Allstate Kaggle competition. The script explores the data, models an xgboost model and tunes the parameters. There are two scripts included in this a python and an R script.

Getting Started

This competition can be found at the following link https://www.kaggle.com/c/allstate-claims-severity

Prerequisites

What things you need to install the software and how to install them

###Python


import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.preprocessing import LabelEncoder
from sklearn.preprocessing import OneHotEncoder
from sklearn.model_selection import train_test_split
from xgboost import XGBRegressor```

###R

library(readr)
library(rpart)
library(lattice)
library(Matrix)
library(xgboost)
library(readr)
library(stringr)
library(caret)
library(car)
library(PCAmixdata)
library(hydroGOF)
library(reshape)
library(onehot)
library(dplyr)

Deployment

Both scripts essentially accomplish the same thing. They go through and explore the data the model and tune the paramters. The Python script takes a bit more data manipulation inorder to label and one hot encode the categorical variables.

Built With

Authors

Python @Ned Hulseman

R @James Noe @Ned Hulseman

allstate's People

Contributors

nedhulseman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.