Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add addon HypEx (Hypotheses and Experiments) #104

Merged
merged 2 commits into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions examples/demo14.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import pandas as pd

from lightautoml.addons.hypex import Matcher


df = pd.read_csv("data/sampled_matching.csv").drop(["Unnamed: 0"], axis=1)

print(df.shape)
print(df.columns)

target = "created_variable"
treatment = "is_tb_pilot"


matcher = Matcher(df, target, treatment, is_feature_select=False, quality_check=True)

matcher.estimate()

print(matcher.matcher.ATE)
print(matcher.matcher.quality_dict)
619 changes: 619 additions & 0 deletions examples/tutorials/Tutorial_12_Matching.ipynb

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions lightautoml/addons/hypex/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# HypEx: Hypotheses and Experiments

[![Telegram](https://img.shields.io/badge/chat-on%20Telegram-2ba2d9.svg)](https://t.me/lamamatcher)

<a name="installation"></a>
# Usage
You can see the examples of usages this addons [here](https://github.com/sb-ai-lab/LightAutoML/blob/master/examples/tutorials/Tutorial_12_Matching.ipynb)
4 changes: 4 additions & 0 deletions lightautoml/addons/hypex/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from .matcher import Matcher


__all__ = ["Matcher"]
Loading
Loading