Skip to main content

BuildStatus Documentation Status Coverage Code Style License

Foreshadow is an automatic pipeline generation tool that makes creating, iterating, and evaluating machine learning pipelines a fast and intuitive experience allowing data scientists to spend more time on data science and less time on code.

Installing Foreshadow

$ pip install foreshadow

Read the documentation to set up the project from source.

Getting Started

To get started with foreshadow, install the package using pip install. This will also install the dependencies. Now create a simple python script that uses all the defaults with Foreshadow.

First import foreshadow

import foreshadow as fs

Also import sklearn, pandas, and numpy for the demo

import pandas as pd

from sklearn.datasets import boston_housing
from sklearn.model_selection import train_test_split

Now load in the boston housing dataset from sklearn into pandas dataframes. This is a common dataset for testing machine learning models and comes built in to scikit-learn.

boston = load_boston()
bostonX_df = pd.DataFrame(boston.data, columns=boston.feature_names)
bostony_df = pd.DataFrame(boston.target, columns=['target'])

Next, exactly as if working with an sklearn estimator, perform a train test split on the data and pass the train data into the fit function of a new Foreshadow object

X_train, X_test, y_train, y_test = train_test_split(bostonX_df,
   bostony_df, test_size=0.2)
shadow = fs.Foreshadow()
shadow.fit(X_train, y_train)

Now fs is a fit Foreshadow object for which all feature engineering has been performed and the estimator has been trained and optimized. It is now possible to utilize this exactly as a fit sklearn estimator to make predictions.

shadow.score(X_test, y_test)

Great, you now have a working Foreshaow installation! Keep reading to learn how to export, modify and construct pipelines of your own.

Key Features

  • Automatic Feature Engineering

  • Automatic Model Selection

  • Rapid Pipeline Development / Iteration

  • Automatic Parameter Optimization

  • Ease of Extensibility

  • Scikit-Learn Compatible

Foreshadow supports python 3.6+

Documentation

Read the docs!

Metadata

Release files for foreshadow 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for foreshadow 0.2.1
File Size Uploaded
foreshadow-0.2.1.tar.gz 171.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for foreshadow 0.2.1
File Interpreter ABI Platform
foreshadow-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 402.5 kB

Release files / foreshadow-0.2.1.tar.gz

Download URL foreshadow-0.2.1.tar.gz
Size 171.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5fc78cc29fcacf7853942ee4640bd2e2060cf98a65cead66645856f53c140509
BLAKE2b-256 checksum
How to use checksums
65fc5647e9f8e67927449724d5049f7785457e5d19146dafa841f1fd130c4e8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.15 CPython/3.6.8 Darwin/17.7.0

Release files / foreshadow-0.2.1-py3-none-any.whl

Download URL foreshadow-0.2.1-py3-none-any.whl
Size 231.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f04383ef0bac6a351967edb81cc73cf45fcc99df4c468eac1910326ec1f7b5c6
BLAKE2b-256 checksum
How to use checksums
3f93704d2bcd7702d90e659f3b73b30ba2c7756adddadda324c231df1dbed364
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.15 CPython/3.6.8 Darwin/17.7.0

Release history Release notifications | RSS feed

1.0.1

2 release files

1.0.0

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.0

2 release files

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page