Skip to content

t0kk35/eng1n3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eng1n3


Description

Package that can create feature instances. At present there is one engine name EnginePandas which basically reads features from a file into a pandas dataframe and/or Numpy array. See the notebooks directory for examples.

The output of the engine can subsequently be used as input to Neural Net Models created by the m0d3ls package.

Example Usage

Pandas Engine

# Define Features
card = ft.FeatureSource('Card', ft.FEATURE_TYPE_STRING)
merchant = ft.FeatureSource('Merchant', ft.FEATURE_TYPE_STRING)

# Create TensorDefinition.
td = ft.TensorDefinition('Features', [card, merchant])

# Build a Pandas DataFrame from the TensorDefinition
with en.EnginePandas(num_threads=1) as e:
    df = e.df_from_csv(td, './file.csv', inference=False)

Requirements

PandasEngine

  • Pandas
  • Numpy
  • Numba

About

Engine to create f3atur3s that can be ingested by m0d3ls

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published