Giter VIP home page Giter VIP logo

datatools's Introduction

DataTools

Note: Currently going under complete re-development, please come back later

Last Updated: 10/14/16

DataTools is a Python module which provides tools to aid in predictive modeling and machine learning development. DataTools is designed to be generic enough to be applied to any model but contains a specific set of tools I find useful in my role as a data scientist. The purpose of DataTools is to save time and effort writing code to perform the complex tasks below but is not meant to be a standalone modeling package.

Toolset (in development)

  • Model Evaluation
    • Classification
    • Regression(like)
    • Automated parameter selection
  • Feature Evaluation
    • Automated feature selection
    • Feature variance visualization
    • Interaction
  • Feature Creation
    • Time-based transaction data conversion
  • Data Manipulation
    • Fill missing values

CrossValidate - Automated feature and parameter selection

DataTools provides a CrossValidate function which evaluates a user's model over a range of different features and parameters and provides an easy to read results. Currently this is accomplished through a brute grid search but more intelligent search methods will be added later.

The CrossValidate function can be used on any predictive model but the model must be passed with a "wrapper object" which contains the methods listed in the example wrapper below.

class wrapper_template(object):

    def __init__(self):
    
        #|Set to either 'classification' or 'regression' based
        #|on model type (will determine evaluation functions)
        self.mod_type = 'classification' 
        
        self.features = ['var_a','var_b','var_c']
        
        self.parameters = {'A':[1,5,10], 'B':['dog','cat']}
        
    def fit(self, feat, param, index):
    
        return model
        
    def predict(self, feat, param, index):
    
        return prediction, actual

datatools's People

Contributors

rosspalmer avatar

Stargazers

 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.