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
+45-34
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,44 @@
1
-
# llm_regression
1
+
# Regression using LLMs
2
2
3
-
This is the repository for the llm_regression Python package.
3
+
The llm_regression package demonstrates how LLMs can be used to solve classical regression problems, and exposes these capabilities for you to experiment with. Example:
Checkout the [basic_demo notebook](https://github.com/AlexIoannides/llm-regression/tree/main/examples/basic_demo.ipynb).
4
31
5
32
## Developer Setup
6
33
34
+
If you want to modify or extend the work in this repo, then the information in this section is for you.
35
+
36
+
### Install Developer Tools
37
+
7
38
Install the package as an [editable dependency](https://setuptools.pypa.io/en/latest/userguide/development_mode.html), together with all the developer tools required to format code, check types and run tests:
8
39
9
40
```text
10
-
$ pip install -e ".[dev]"
41
+
pip install -e ".[dev]"
11
42
```
12
43
13
44
### Developer Task Execution with Nox
@@ -19,11 +50,11 @@ $ nox --list
19
50
20
51
Sessions defined in /Users/.../noxfile.py:
21
52
22
-
* run_tests-3.10 -> Run unit tests.
23
-
- format_code-3.10 -> Lint code and re-format where necessary.
24
-
* check_code_formatting-3.10 -> Check code for formatting errors.
25
-
* check_types-3.10 -> Run static type checking.
26
-
- build_and_deploy-3.10 -> Build wheel and deploy to PyPI.
53
+
* run_tests-3.12 -> Run unit tests.
54
+
- format_code-3.12 -> Lint code and re-format where necessary.
55
+
* check_code_formatting-3.12 -> Check code for formatting errors.
56
+
* check_types-3.12 -> Run static type checking.
57
+
- build_and_deploy-3.12 -> Build wheel and deploy to PyPI.
27
58
28
59
sessions marked with * are selected, sessions marked with - are skipped.
29
60
```
@@ -33,48 +64,28 @@ Single tasks can be executed easily - e.g.,
33
64
```text
34
65
$ nox -s run_tests
35
66
36
-
nox > Running session run_tests-3.10
37
-
nox > Creating virtual environment (virtualenv) using python3.10 in .nox/run_tests-3-10
67
+
nox > Running session run_tests-3.12
68
+
nox > Creating virtual environment (virtualenv) using python3.12 in .nox/run_tests-3-10
38
69
nox > python -m pip install '.[dev]'
39
70
nox > pytest
40
71
======================================== test session starts ========================================
41
-
platform darwin -- Python 3.10.2, pytest-7.4.2, pluggy-1.3.0
72
+
platform darwin -- Python 3.12.2, pytest-7.4.2, pluggy-1.3.0
42
73
rootdir: /Users/.../llm_regression
43
74
configfile: pyproject.toml
44
75
testpaths: tests
45
76
collected 1 item
46
77
47
-
tests/test_hello_world.py . [100%]
78
+
tests/test_hello_world.py [100%]
48
79
49
80
========================================== 1 passed in 0.00s =========================================
50
-
nox > Session run_tests-3.10 was successful.
51
-
```
52
-
53
-
### Building Packages and Deploying to PyPI
54
-
55
-
This is automated via the `nox -s build_and_deploy` command. In order to use this, the following environment variables will need to be made available to Python:
56
-
57
-
```text
58
-
PYPI_USR # PyPI username
59
-
PYPI_PWD # PyPI password
81
+
nox > Session run_tests-3.12 was successful.
60
82
```
61
83
62
-
These may be specified in a `.env` file from which they will be loaded automatically - e.g.,
63
-
64
-
```text
65
-
PYPI_USR=XXXX
66
-
PYPI_PWD=XXXX
67
-
```
68
-
69
-
Note: `.gitignore` will ensure that `.env`is not tracked by Git.
70
-
71
-
## CI/CD
84
+
### CI/CD
72
85
73
86
This repo comes configured to run two [GitHub Actions](https://docs.github.com/en/actions) workflows:
74
87
75
88
-**Test Python Package (CI)**, defined in `.github/workflows/python-package-ci.yml`
76
89
-**Deploy Python Package (CD)**, defined in `.github/workflows/python-package-cd.yml`
77
90
78
91
The CI workflow has been configured to run whenever a pull request to the `main` branch is created. The CD workflow has been configured to run whenever a [release](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository) is created on GitHub.
79
-
80
-
Note, the CD workflow will require `PYPI_USR` and `PYPI_PWD` to be added as [repository secrets](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions).
0 commit comments