Skip to content

Commit

Permalink
Merge branch 'main' into onnx
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescMartiEscofetQC committed Jul 15, 2024
2 parents c6b7951 + 9e00603 commit caeea27
Show file tree
Hide file tree
Showing 20 changed files with 617 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
uses: prefix-dev/[email protected]
- name: Run mypy
run: |
pixi run jupyter nbconvert --to script docs/examples/*.ipynb
pixi run jupyter nbconvert --TagRemovePreprocessor.enabled=True --TagRemovePreprocessor.remove_cell_tags no-convert --to script docs/examples/*.ipynb
for file in docs/examples/*.txt; do mv -- "$file" "${file%.txt}.py"; done
pixi run mypy docs/examples/*.py
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Package
on: [push]
on:
push:
release:
types:
- published

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -26,6 +30,10 @@ jobs:
name: Upload to PyPI
needs: [build]
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
environment: pypi
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v4
Expand Down
20 changes: 18 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,30 @@
Changelog
=========

0.6.0 (2024-06-**)
0.7.0 (2024-07-12)
------------------

**New features**

* Add optional ``adaptive_clipping`` parameter to :class:`metalearners.DRLearner`.

**Other changes**

* Change the index columns order in ``MetaLearnerGridSearch.results_``.

* Raise a custom error if only one class is present in a classification outcome.

* Raise a custom error if there are some treatment variants which have seen classification outcomes which have not appeared for some other treatment variant.


0.6.0 (2024-07-08)
------------------

**New features**

* Implement :class:`metalearners.grid_search.MetaLearnerGridSearch`.

* Add ``scoring`` parameter to :meth:`metalearners.metalearner.MetaLearner.evaluate` and
* Add a ``scoring`` parameter to :meth:`metalearners.metalearner.MetaLearner.evaluate` and
implement the abstract method for the :class:`metalearners.XLearner` and
:class:`metalearners.DRLearner`.

Expand Down
30 changes: 30 additions & 0 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/* Copied from https://github.com/executablebooks/MyST-NB/issues/453 */
div.cell.tag_scroll-output div.cell_output {
max-height: 24em;
overflow-y: auto;
max-width: 100%;
overflow-x: auto;
}

div.cell.tag_scroll-output div.cell_output::-webkit-scrollbar {
width: 0.3rem;
height: 0.3rem;
}

div.cell.tag_scroll-output div.cell_output::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 0.25rem;
}

div.cell.tag_scroll-output div.cell_output::-webkit-scrollbar-thumb:hover {
background: #a0a0a0;
}

@media print {
div.cell.tag_scroll-output div.cell_output {
max-height: unset;
overflow-y: visible;
max-width: unset;
overflow-x: visible;
}
}
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
numpydoc_show_class_members = False


html_css_files = ["custom.css"]


# Copied and adapted from
# https://github.com/pandas-dev/pandas/blob/4a14d064187367cacab3ff4652a12a0e45d0711b/doc/source/conf.py#L613-L659
# Required configuration function to use sphinx.ext.linkcode
Expand Down
Loading

0 comments on commit caeea27

Please sign in to comment.