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

BWRedits #9

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
934ca16
changes to repo structure and readme
rogersbw Jan 6, 2025
468f3e1
updated complete case filter code
rogersbw Jan 6, 2025
22046be
Updated the readme, now using uv for environment management
rogersbw Jan 7, 2025
288e736
Made one small change to the missing data handling, the previous adju…
rogersbw Jan 7, 2025
4b88718
added some data processing functions and a test for date_block_map
rogersbw Jan 7, 2025
74aa183
added function to assign feature and target observations to blocks an…
rogersbw Jan 7, 2025
6a63634
added generator to calculate differences between blocks
rogersbw Jan 8, 2025
87d60d1
Update README.md
rogersbw Jan 16, 2025
341c0a1
Update src/jacques/jacques.py
rogersbw Jan 16, 2025
a742486
Apply suggestions from code review
rogersbw Jan 16, 2025
86a90d1
Update tests/jacques/data_processing/test_assign_blocks.py
rogersbw Jan 16, 2025
9a81354
Update tests/jacques/data_processing/test_assign_blocks.py
rogersbw Jan 16, 2025
4f8fc87
Update tests/jacques/data_processing/test_assign_blocks.py
rogersbw Jan 16, 2025
8eeea87
Update tests/jacques/data_processing/test_assign_blocks.py
rogersbw Jan 16, 2025
f252e74
Update tests/jacques/data_processing/test_assign_blocks.py
rogersbw Jan 16, 2025
1b3a593
fixed all ruff recommended changes
rogersbw Jan 16, 2025
e5bb7ba
removed test_diffs.py file
rogersbw Jan 16, 2025
31cf7fd
removed keras from the requirements
rogersbw Jan 16, 2025
bfbd62a
removed missing data mask which was causing problems
rogersbw Jan 31, 2025
2a6f905
Merge pull request #12 from reichlab/maskfix
rogersbw Jan 31, 2025
f4ecd5c
masking fails when batchsize is larger than 1
rogersbw Feb 6, 2025
cb7526b
resolving merge conflicts
rogersbw Feb 6, 2025
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
65 changes: 38 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,56 @@ Just Another Conditional Quantile Estimator

This Python module provides code to implement Jacques forecasting model.

## Setup

### Prerequisites
Before setting up this project:
- Python Version: Your machine will need to have an installed version of python that mets the `requires-pyhon` constraint in [pyproject.toml](https://github.com/reichlab/jacques/blob/BWRedits/pyproject.toml).
rogersbw marked this conversation as resolved.
Show resolved Hide resolved
- That version of Python should be set as your current Python interpreter.
- That version of Python should be set as your current Python interpreter.

### Setup
Follow the directions below to set this project up on your local machine.
## Installing the package

1. Clone this repository to your local computer and navigate to the corresponding directory.

2. Create a Python virtual environment.

```
python m venv .venv
```
## Setup for local development

3. Activate the virual environment.
The instructions below outline how to set up a development environment based
on uv tooling.

```
source .venv/bin/activate
```
**Note:** the command above is for Unix-based systems. If you're using Windows, the command is:
Prerequisites:

```
.venv\Scripts\activate
```
- [uv](https://docs.astral.sh/uv/getting-started/installation/)

4. Install the project's dependencies, which include the `jacques` dependencies:
1. Clone this repository
2. Change to the repo's root directory:

```
# if only need the dependencies necessary to run jacques
pip install -r requirements/requirements.txt && pip install -e .
```
```bash
cd jacques
```

and the dependencies required for running the [demo.ipynb](https://github.com/reichlab/jacques/blob/BWRedits/demo.ipynb):
3. Create a Python virtual environment and install dependencies. The command
below creates a virtual environment in the `.venv` directory, installs Python
if needed, installs project dependencies (including dev dependencies), and
installs the package in
[editable mode](https://setuptools.pypa.io/en/stable/userguide/development_mode.html):

```bash
uv sync
```


### Updating dependencies

Use [`uv add`](https://docs.astral.sh/uv/reference/cli/#uv-add) to include a
new dependency in the project. This command will install the new dependency
into the virtual environment, add it to `uv.lock`, and update the
`dependencies` section of [`pyproject.toml`](pyproject.toml).

```bash
uv add <package-name>
```
# if you'd like to be able to run the demo notebook
pip install -r requirements/requirements-doc.txt && pip install -e .
```

To add a dependency to a specific group (adding a dev dependency, for example),
use the `--group` flag:

```bash
uv add <package-name> --group dev
```
Loading