Skip to main content

A Nice and Convenient Feature Engineering Tool on Sequential Data

Project description

This project handles series data

Support Series data Feature Calculation.

Installation

You need Python installed on your system to able to use seq2ftr.

This package contains many feature extraction methods.

Support different type (continues/class) features calculation.

>>> $ pip install seq2ftr
Install Requirements
  • numpy

  • pandas

  • sklearn

Feature Calculation

Support Function

  • mean

  • max

  • min

  • freq_of_max

  • freq_of_min

  • median

  • median_mean_distance

  • percentage_below_mean

  • var

  • std

  • uniqueCount

Support Type

  • 0 - boolean

  • 1 - numericla

  • 2 - categorical

Example

To start , we load data to python

>>>
import pandas as pd
df = pd.DataFrame([[1,200,"1"],[1,500,"2"],[2,300,"2"],[2,600,"2"]],columns=['id','stock_price',"type"])
df = df.set_index("id")
>>>
from seq2ftr import SequenceTransformer
st_num = SequenceTransformer()
st_num.transformer(df['stock_price'])
# output all features

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seq2ftr-0.1.7.tar.gz (9.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page