Skip to content

Commit 428931a

Browse files
authored
Merge pull request #220 from datakind/develop
Release 0.3.4
2 parents dfa4dd7 + 50fffb8 commit 428931a

31 files changed

+1720
-320
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 0.3.4 (2025-06)
4+
- Update features table (PR #218)
5+
- Add features table to top shap feature output table (PR #217)
6+
37
## 0.3.3 (2025-06)
48
- Added unit test for PDP features table (PR 202)
59

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ Note: Since `student_success_tool` is a "library" (in Python packaging parlance)
7575
### releases
7676

7777
1. Ensure that all changes (features, bug fixes, etc.) to be included in the release have been merged into the `develop` branch.
78-
2. Create a new feature branch based off `develop` that includes two release-specific changes:
78+
2. Create a new feature branch based off `develop` that includes three release-specific changes:
7979
- bump the `project.version` attribute in the package's `pyproject.toml` file to the desired version; follow [SemVer conventions](https://semver.org)
8080
- add an entry in `CHANGELOG.md` for the specified version, with a manually-curated summary of the changes included in the release, optionally including call-outs to specific PRs for reference
81+
- update the version in the templates and pipelines
8182
3. Merge the above PR into `develop`, then open a new PR to merge all changes in `develop` into the `main` branch; merge it. Check that main is ahead by 0 from develop. If it is ahead of dev, then merge the main branch back into develop.
8283
4. Go to the GitHub repo's [Releases](https://github.com/datakind/student-success-tool/releases) page, then click the "draft a new release" button
8384
- choose a tag; it should be formatted as "v[VERSION]", for example "v0.2.0"

pipelines/institution_id/00-data-assessment-TEMPLATE.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
# install dependencies, of which most/all should come through our 1st-party SST package
2727

28-
# %pip install "student-success-tool == 0.3.3"
28+
# %pip install "student-success-tool == 0.3.4"
2929

3030
# COMMAND ----------
3131

pipelines/institution_id/01-preprocess-data-TEMPLATE.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
# install dependencies, of which most/all should come through our 1st-party SST package
2626

27-
# %pip install "student-success-tool == 0.3.3"
27+
# %pip install "student-success-tool == 0.3.4"
2828

2929
# COMMAND ----------
3030

pipelines/institution_id/02-train-model-TEMPLATE.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# we need to manually install a certain version of pandas and scikit-learn in order
2929
# for our models to load and run properly.
3030

31-
# %pip install "student-success-tool==0.3.3"
31+
# %pip install "student-success-tool==0.3.4"
3232
# %pip install "pandas==1.5.3"
3333
# %pip install "scikit-learn==1.3.0"
3434

pipelines/institution_id/03-make-predictions-TEMPLATE.py

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# we need to manually install a certain version of pandas and scikit-learn in order
2727
# for our models to load and run properly.
2828

29-
# %pip install "student-success-tool==0.3.3"
29+
# %pip install "student-success-tool==0.3.4"
3030
# %pip install "pandas==1.5.3"
3131
# %pip install "scikit-learn==1.3.0"
3232

@@ -46,7 +46,7 @@
4646
from pyspark.sql.types import FloatType, StringType, StructField, StructType
4747

4848
from student_success_tool import configs, dataio, modeling
49-
from student_success_tool.modeling import inference
49+
from student_success_tool.modeling import inference, evaluation
5050

5151
# COMMAND ----------
5252

@@ -261,3 +261,25 @@
261261
dataio.write.to_delta_table(
262262
result, cfg.datasets.gold.advisor_output.table_path, spark_session=spark
263263
)
264+
265+
# COMMAND ----------
266+
267+
# MAGIC %md
268+
# MAGIC ## Log Front-End Tables
269+
270+
# COMMAND ----------
271+
272+
# Log MLFlow confusion matrix & roc table figures in silver schema
273+
274+
with mlflow.start_run() as run:
275+
confusion_matrix = evaluation.log_confusion_matrix(
276+
institution_id=cfg.institution_id,
277+
automl_run_id=cfg.model.run_id,
278+
)
279+
280+
# Log roc curve table for front-end
281+
roc_logs = evaluation.log_roc_table(
282+
institution_id=cfg.institution_id,
283+
automl_run_id=cfg.model.run_id,
284+
modeling_dataset_name=cfg.datasets.silver.modeling.table_path,
285+
)

pipelines/institution_id/04-register-model-create-card-TEMPLATE.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# we need to manually install a certain version of pandas and scikit-learn in order
2222
# for our models to load and run properly.
2323

24-
# %pip install "student-success-tool==0.3.3"
24+
# %pip install "student-success-tool==0.3.4"
2525
# %pip install "pandas==1.5.3"
2626
# %pip install "scikit-learn==1.3.0"
2727

@@ -109,7 +109,9 @@
109109
# COMMAND ----------
110110

111111
# Initialize card
112-
card = PDPModelCard(config=cfg, catalog=catalog, model_name=model_name)
112+
card = PDPModelCard(
113+
config=cfg, catalog=catalog, model_name=model_name, mlflow_client=client
114+
)
113115

114116
# COMMAND ----------
115117

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "student-success-tool"
3-
version = "0.3.3"
3+
version = "0.3.4"
44
description = "School-agnostic lib for implementing Student Success Tool workflows."
55
readme = "README.md"
66
requires-python = ">=3.10,<3.13"

src/student_success_tool/assets/pdp/features_table.toml

Lines changed: 116 additions & 122 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)