Skip to content

Commit

Permalink
add group index, fix activeonly button
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufuyanik1 committed Dec 15, 2023
1 parent 7beb4e8 commit fb7c3c2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/pdstools/adm/ADMDatamart.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ def _available_columns(
"BinResponseCount",
"Type",
"Contents",
"GroupIndex",
} # NOTE: these default names are already capitalized properly, with py/px/pz removed.

rename = {i: "Name" for i in df.columns if i.lower() == "modelname"}
Expand Down
1 change: 1 addition & 0 deletions python/pdstools/reports/ModelReport.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ if len(kwargs) > 0:
datamart = ADMDatamart(
**kwargs, include_cols="pyFeatureImportance", query=pl.col("ModelID") == modelid
).fillMissing()
predictordetails_activeonly = kwargs["predictordetails_activeonly"]
elif len(datafolder) > 0 or len(modelfilename) > 0 or len(predictorfilename) > 0:
# command line call
datamart = ADMDatamart(
Expand Down
18 changes: 18 additions & 0 deletions testing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import pdstools
from pdstools import ADMDatamart

import polars as pl


datamart = ADMDatamart(
"/Users/uyany/Library/CloudStorage/OneDrive-SharedLibraries-PegasystemsInc/AI Chapter Data Sets - Documents/Customers/T-Mobile US/20231215/datamart",
extract_keys=True,
)


datamart.predictorData.collect()


datamart.combinedData.collect().filter(pl.col("Name") == "HINTHomeInternet").filter(
pl.col("Channel") == "CallCenter"
).sort("GroupIndex")

0 comments on commit fb7c3c2

Please sign in to comment.