Skip to content

Commit

Permalink
Merge branch 'slearner_warning_instead_of_error' of github.com:Quantc…
Browse files Browse the repository at this point in the history
…o/metalearners into slearner_warning_instead_of_error
  • Loading branch information
kklein committed Jun 18, 2024
2 parents dc11c42 + 7417c89 commit 527ea3b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
fetch-depth: 0
- name: Run pre-commit-conda
uses: quantco/pre-commit-conda@v1

mypy-type-checks:
name: Mypy Type Checks
runs-on: ubuntu-latest
Expand All @@ -45,7 +46,7 @@ jobs:
run: mypy .

unit-tests:
name: Unit Tests - ${{ matrix.os == 'ubuntu-latest-8core' && 'Linux' || 'Windows' }} - Python ${{ matrix.python-version }}
name: Unit Tests - ${{ matrix.os == 'ubuntu-latest' && 'Linux' || 'Windows' }} - Python ${{ matrix.python-version }}
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -76,3 +77,9 @@ jobs:
with:
report-title: Unit Tests - ${{ matrix.os == 'ubuntu-latest' && 'Linux' || 'Windows' }} - Python ${{ matrix.python-version }}
custom-arguments: --cov=metalearners --cov-report=xml --cov-report term-missing --color=yes
- name: Upload coverage reports to Codecov
if: matrix.python-version == '3.12'
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Changelog
0.4.2 (2024-06-18)
------------------

* Add license file.
* Ship license file.

0.4.1 (2024-06-18)
------------------
Expand Down
25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
# metalearners

[![CI](https://github.com/Quantco/metalearners/actions/workflows/ci.yaml/badge.svg)](https://github.com/Quantco/metalearners/actions/workflows/ci.yaml)
[![Documentation Status](https://readthedocs.org/projects/metalearners/badge/?version=latest)](https://metalearners.readthedocs.io/en/latest/?badge=latest)
[![Conda-forge](https://img.shields.io/conda/vn/conda-forge/metalearners?logoColor=white&logo=conda-forge)](https://anaconda.org/conda-forge/metalearners)
[![PypiVersion](https://img.shields.io/pypi/v/metalearners.svg?logo=pypi&logoColor=white)](https://pypi.org/project/metalearners)
[![codecov.io](https://codecov.io/github/QuantCo/metalearners/coverage.svg?branch=main)](https://codecov.io/github/QuantCo/metalearners?branch=main)

MetaLearners for CATE estimation

## Installation

You can install the package in development mode using:
`metalearners` can either be installed via PyPI with

```bash
git clone https://github.com/quantco/metalearners
cd metalearners

# create and activate a fresh environment named metalearners
# see environment.yml for details
micromamba create -f environment.yml
micromamba activate metalearners

pre-commit install
pip install --no-build-isolation -e .
$ pip install metalearners
```

## Credits
or via conda-forge with

Original implementation by @FrancescMartiEscofetQC and @kklein.
```bash
$ conda install metalearners -c conda-forge
```

0 comments on commit 527ea3b

Please sign in to comment.