GithubHelp home page GithubHelp logo

lprtk / pyselection Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 413 KB

Python library for time series feature selection

License: MIT License

Python 13.72% Jupyter Notebook 86.28%
feature-selection library python numerical-features theil-metric

pyselection's Introduction

pySelection for time series feature selection

GitHub issues GitHub forks Github Stars GitHub license Code style: black

Table of contents

Overview

This is a small Python library for time series feature selection. The objective is to focus on building a "good" model. To define a "good" model, we rely on Theil's metrics (UM, US, UC, U1 or U) which allow us to conclude on the goodness of fit of the predictions made by a model. This library allows you to find the best model you need according to the criteria you want.

Content

For the moment, two class are available:

  • The Metrics class implements all the Theil metrics as they are coded in the SAS software;

  • The FeatureSelection class is the heart of the library. The fit function will allow you to estimate several combinations of sub-models and to calculate the scores (MAE, MSE, RMSE and Theil’s metrics). Then the other functions allow you to obtain the best model and its scores, all the models estimated during the iterations or to have a plot of the estimates in and out-of-sample.

Requirements

  • Python version 3.9.7
  • Install requirements.txt
$ pip install -r requirements.txt 
  • Librairies used
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from random import choice, randint
from sklearn.linear_model import LinearRegression 
from sklearn.utils.validation import check_is_fitted 

File details

  • requirements
  • This folder contains a .txt file with all the packages and versions needed to run the project.
  • pySelection
  • This folder contains a .py file with all class, functions and methods.
  • example
  • This folder contains an example notebook to better understand how to use the different class and functions, and their outputs.

Here is the project pattern:

- project 
    > pySelection
        > requirements 
            - requirements.txt
        > codefile 
            - pySelection.py
        > example 
            - pySelection.ipynb 

Features

My profil β€’ My GitHub

pyselection's People

Contributors

lprtk avatar

Stargazers

 avatar  avatar  avatar  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.