You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-13Lines changed: 33 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,18 +43,38 @@ All project relevant configuration values, including model hyperparameter ranges
43
43
For versioning tasks, [_git_](https://git-scm.com/) and [_dvc_](https://dvc.org/doc/use-cases/versioning-data-and-models), handled with ignore files content, are chosen. If a remote storage, like AWS S3 or Azure shall be used as future task, dvc[all] for the selected dvc version is installed via requirements.txt file as well for specific configuration. By now, only dvc 'local' remote is set.
44
44
45
45
46
-
## Environment Set up
46
+
## Environment Set Up
47
47
* Working in a command line environment is recommended for ease of use with git and dvc. Working on Windows, [WSL2 and Ubuntu (Linux)](https://ubuntu.com/tutorials/install-ubuntu-on-wsl2-on-windows-11-with-gui-support#1-overview) is chosen for this project implementation.
48
-
* We expect you have at least Python 3.10.9 installed (e.g. via conda), furthermore having forked this project repo locally and activate it in your virtual environment to work on for your own. So, in your root directory `path/to/census-project` create a new virtual environment depending on the selected OS and use the supplied _requirements.txt_ file to install the needed libraries e.g. via
* We expect you have at least Python 3.11.13 installed, furthermore having forked this project repo locally and activate it in your virtual environment to work on for your own. So, in your root directory `path/to/census-project` create a new virtual environment depending on the selected OS and use the supplied _requirements.txt_ file to install the needed libraries via the following process:
49
+
50
+
### User Process
51
+
This project uses Conda for environment management and pip-tools for dependency locking.
52
+
53
+
1.**Create and activate the Conda environment:**
54
+
```bash
55
+
conda create --name my-project-env python=3.11.13
56
+
conda activate my-project-env
57
+
```
58
+
59
+
2. **Install dependencies:**
60
+
Use the locked requirements file for a reproducible installation.
61
+
```bash
62
+
pip install -r requirements.txt
63
+
```
64
+
65
+
### Developer Workflow
66
+
If updates are needed, put them in the top-level <i>requirements.in</i> file. There the directly needed packages are listed. <i>pip-compile</i> resolves the search of necessary dependencies together with the <i>pyproject.toml</i> file and creates the final <i>requirements.txt</i> file.
67
+
68
+
1. Add or modify a package in`requirements.in`.
69
+
2. Regenerate the lock file:
70
+
```bash
71
+
pip-compile requirements.in
72
+
```
73
+
3. Install the new packages:
74
+
```bash
75
+
pip install -r requirements.txt
76
+
```
77
+
4. Commit **both**`requirements.in` and `requirements.txt` to Git.
58
78
59
79
60
80
## Project Structure
@@ -130,11 +150,11 @@ There in "__main__" it calls
Remember, this code is fordevelopment purpose,in production the reload option shall be set to False resp. not used. In other words, the start command e.g. on our render deployment web service (see below) is:<br>
135
155
uvicorn src.main:app --host 0.0.0.0 --port 8000
136
156
137
-
* So, locally we start our implemented browser web application with
157
+
* So, locally we start our implemented browser web application from project root with
0 commit comments