Skip to content
This repository has been archived by the owner on Apr 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from teobucci/refactor-class
Browse files Browse the repository at this point in the history
Refactor the library to work with classes
  • Loading branch information
teobucci authored Feb 27, 2024
2 parents 406febd + 5ebe4b4 commit be4722a
Show file tree
Hide file tree
Showing 13 changed files with 643 additions and 700 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Python Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[dev]"
- name: Run pytest
run: |
pytest
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

This repository implements a causal feature selection algorithm based on transfer entropy. The algorithm is described in: Bonetti, P., Metelli, A. M., & Restelli, M. (2023, October 17). Causal Feature Selection via Transfer Entropy. (https://arxiv.org/abs/2310.11059).

Requires Python 3.9 or later.

## Installation

The package can be installed using pip:
Expand Down
114 changes: 50 additions & 64 deletions docs/source/notebooks/usage.ipynb

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions src/tefs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from .core import fs
from .plotting import plot_te_results
from .utils import select_features, select_n_features
from .core import TEFS

__version__ = "0.1.0"
Loading

0 comments on commit be4722a

Please sign in to comment.