seeplot 0.1.0__tar.gz → 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
seeplot-0.2.0/PKG-INFO ADDED
@@ -0,0 +1,18 @@
1
+ Metadata-Version: 2.4
2
+ Name: seeplot
3
+ Version: 0.2.0
4
+ Summary: Seven ML lab pipeline notebooks with an interactive picker
5
+ Requires-Python: >=3.9
6
+ Description-Content-Type: text/markdown
7
+
8
+ # seeplot
9
+
10
+ Seven ML lab pipeline notebooks: spam classification, breast cancer ensembles, loan regression, K-Means, and three model-exam notebooks (regression, classification, K-Means, each with vs without PCA and a paired t-test).
11
+
12
+ ```bash
13
+ pip install seeplot && seeplot
14
+ ```
15
+
16
+ Pick with up/down and space, press enter (nothing selected = all 7). Notebooks are saved in the current folder.
17
+
18
+ Without the picker: `seeplot init spam loan reg` (keys: spam, cancer, loan, kmeans, reg, clf, cluster) or `seeplot init --all`.
@@ -0,0 +1,11 @@
1
+ # seeplot
2
+
3
+ Seven ML lab pipeline notebooks: spam classification, breast cancer ensembles, loan regression, K-Means, and three model-exam notebooks (regression, classification, K-Means, each with vs without PCA and a paired t-test).
4
+
5
+ ```bash
6
+ pip install seeplot && seeplot
7
+ ```
8
+
9
+ Pick with up/down and space, press enter (nothing selected = all 7). Notebooks are saved in the current folder.
10
+
11
+ Without the picker: `seeplot init spam loan reg` (keys: spam, cancer, loan, kmeans, reg, clf, cluster) or `seeplot init --all`.
@@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "seeplot"
7
- version = "0.1.0"
8
- description = "Four ML lab pipeline notebooks with an interactive picker"
7
+ version = "0.2.0"
8
+ description = "Seven ML lab pipeline notebooks with an interactive picker"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
11
11
  dependencies = []
@@ -0,0 +1 @@
1
+ __version__ = "0.2.0"
@@ -7,6 +7,9 @@ ITEMS = { # key: (notebook, description)
7
7
  "cancer": ("02_BreastCancer_Classification.ipynb", "Breast cancer: Decision Tree, Random Forest, AdaBoost, Gradient Boosting, XGBoost"),
8
8
  "loan": ("03_LoanAmount_Regression.ipynb", "Loan regression: Linear, Ridge, Lasso, ElasticNet, Random Forest"),
9
9
  "kmeans": ("04_KMeans_Clustering.ipynb", "K-Means clustering + PCA"),
10
+ "reg": ("01_Regression_PCA_vs_NoPCA.ipynb", "Model exam regression: with vs without PCA, paired t-test"),
11
+ "clf": ("02_Classification_PCA_vs_NoPCA.ipynb", "Model exam classification: with vs without PCA, paired t-test"),
12
+ "cluster": ("03_KMeans_Clustering_PCA_vs_NoPCA.ipynb", "Model exam K-Means: with vs without PCA"),
10
13
  }
11
14
 
12
15
 
@@ -18,7 +21,7 @@ def pick():
18
21
  cur, on = 0, set()
19
22
  while True:
20
23
  scr.erase()
21
- scr.addstr(0, 0, "seeplot up/down move | space select | enter download (none selected = all 4) | q quit")
24
+ scr.addstr(0, 0, "seeplot up/down move | space select | enter download (none selected = all 7) | q quit")
22
25
  for i, k in enumerate(keys):
23
26
  mark = "[x]" if k in on else "[ ]"
24
27
  line = f" {mark} {ITEMS[k][0]:<40} {ITEMS[k][1]}"
@@ -47,8 +50,8 @@ def download(keys, dest):
47
50
  def main():
48
51
  ap = argparse.ArgumentParser(prog="seeplot", description="Pick ML lab notebooks to download.")
49
52
  ap.add_argument("cmd", nargs="?", default="init", choices=["init", "list"])
50
- ap.add_argument("names", nargs="*", help="spam cancer loan kmeans (omit to pick interactively)")
51
- ap.add_argument("--all", action="store_true", help="download all 4")
53
+ ap.add_argument("names", nargs="*", help="spam cancer loan kmeans reg clf cluster (omit to pick interactively)")
54
+ ap.add_argument("--all", action="store_true", help="download all 7")
52
55
  ap.add_argument("-d", "--dest", default=".", help="target folder (default: current folder)")
53
56
  a = ap.parse_args()
54
57
  if a.cmd == "list":
@@ -58,7 +61,7 @@ def main():
58
61
  bad = [k for k in keys if k not in ITEMS]
59
62
  if bad: sys.exit(f"unknown: {bad}. choose from {list(ITEMS)}")
60
63
  if not keys:
61
- if not sys.stdin.isatty(): sys.exit("no terminal: pass names, e.g. ml-lab-prep init spam loan")
64
+ if not sys.stdin.isatty(): sys.exit("no terminal: pass names, e.g. seeplot init spam loan")
62
65
  keys = pick()
63
66
  if not keys: sys.exit("nothing selected")
64
67
  download(keys, a.dest)