Skip to content

Commit 746aae1

Browse files
committed
MNT: Redo all usecase examples after fixing ML usecase code snippets
1 parent 4382489 commit 746aae1

34 files changed

+199
-2911
lines changed

docs/usecases/_examples/HCP-12

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$ cd dataset-to-copy-to
22
$ datalad get bvals anothercopyofbvecs 130114/T1w/Diffusion/eddylogs/eddy_unwarped_images.eddy_parameters
3-
get(ok): anothercopyofbvecs (file) [from datalad...]
43
get(ok): bvals (file) [from datalad...]
4+
get(ok): anothercopyofbvecs (file) [from datalad...]
55
get(ok): 130114/T1w/Diffusion/eddylogs/eddy_unwarped_images.eddy_parameters (file) [from datalad...]
66
action summary:
77
get (ok: 3)

docs/usecases/_examples/HCP-2

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

docs/usecases/_examples/collab-106

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ $ datalad run -m "run first part of analysis workflow" \
33
--output results.txt \
44
"code/run_analysis.py"
55
[INFO] Making sure inputs are available (this may take some time)
6+
get(ok): src/forrest_structural/sub-01/anat/sub-01_T1w.nii.gz (file) [from mddatasrc...]
67
[INFO] == Command start (output follows) =====
78
[INFO] == Command exit (modification check follows) =====
8-
get(ok): src/forrest_structural/sub-01/anat/sub-01_T1w.nii.gz (file) [from mddatasrc...]
99
action summary:
1010
get (notneeded: 1, ok: 1)
1111
save (notneeded: 2)

docs/usecases/_examples/ml-102

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ $ datalad download-url \
99
[INFO] Initiating special remote datalad-archives
1010
[INFO] Finished adding /home/me/usecases/imagenette/imagenette2-160.tgz: Files processed: 13394, +annex: 13394
1111
download_url(ok): /home/me/usecases/imagenette/imagenette2-160.tgz (file)
12-
add(ok): imagenette2-160.tgz (file)
1312
save(ok): . (dataset)
1413
action summary:
1514
add (ok: 1)

docs/usecases/_examples/ml-110

Lines changed: 1 addition & 2707 deletions
Large diffs are not rendered by default.

docs/usecases/_examples/ml-115

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ $ datalad containers-run -n software \
99
/usr/local/lib/python3.7/dist-packages/sklearn/linear_model/_stochastic_gradient.py:573: ConvergenceWarning: Maximum number of iteration reached before convergence. Consider increasing max_iter to improve the fit.
1010
ConvergenceWarning)
1111
[INFO] == Command exit (modification check follows) =====
12-
add(ok): model.joblib (file)
1312
save(ok): . (dataset)
1413
action summary:
1514
add (ok: 1)

docs/usecases/_examples/ml-116

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ $ datalad containers-run -n software \
66
"python3 code/evaluate.py"
77
[INFO] Making sure inputs are available (this may take some time)
88
[INFO] == Command start (output follows) =====
9-
{'accuracy': 0.7541191381495564}
109
[INFO] == Command exit (modification check follows) =====
11-
add(ok): accuracy.json (file)
12-
add(ok): code/__pycache__/train.cpython-37.pyc (file)
10+
{'accuracy': 0.6121673003802282}
1311
save(ok): . (dataset)
1412
action summary:
1513
add (ok: 2)

docs/usecases/_examples/ml-130

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
$ datalad rerun -m "Recompute classification with more iterations" ready4analysis..SGD-100
2-
[INFO] run commit 158ff67; (Train an SGD clas...)
2+
[INFO] run commit c081642; (Train an SGD clas...)
33
[INFO] Making sure inputs are available (this may take some time)
4+
unlock(ok): model.joblib (file)
45
[INFO] == Command start (output follows) =====
5-
/usr/local/lib/python3.7/dist-packages/sklearn/linear_model/_stochastic_gradient.py:573: ConvergenceWarning: Maximum number of iteration reached before convergence. Consider increasing max_iter to improve the fit.
6-
ConvergenceWarning)
76
[INFO] == Command exit (modification check follows) =====
8-
[INFO] run commit 5ce0433; (Evaluate SGD clas...)
7+
add(ok): model.joblib (file)
8+
save(ok): . (dataset)
9+
[INFO] run commit c174771; (Evaluate SGD clas...)
910
[INFO] Making sure inputs are available (this may take some time)
1011
[INFO] == Command start (output follows) =====
11-
{'accuracy': 0.7566539923954373}
12+
{'accuracy': 0.7477820025348543}
1213
[INFO] == Command exit (modification check follows) =====
13-
[INFO] skip-or-pick commit c20502b; c20502b does not have a command; skipping or cherry picking
14-
unlock(ok): model.joblib (file)
15-
add(ok): model.joblib (file)
16-
save(ok): . (dataset)
1714
add(ok): accuracy.json (file)
1815
add(ok): code/__pycache__/train.cpython-37.pyc (file)
1916
save(ok): . (dataset)
20-
run(ok): /home/me/usecases/ml-project (dataset) [c20502b does not have a command; skipping]
17+
[INFO] skip-or-pick commit c341b43; c341b43 does not have a command; skipping or cherry picking
18+
run(ok): /home/me/usecases/ml-project (dataset) [c341b43 does not have a command; skipping]
2119
action summary:
2220
add (ok: 3)
2321
get (notneeded: 8)

docs/usecases/_examples/ml-133

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
$ datalad rerun --branch="randomforest" -m "Recompute classification with random forest classifier" ready4analysis..SGD-100
2-
[INFO] checkout commit ddc5200;
3-
[INFO] run commit 158ff67; (Train an SGD clas...)
2+
[INFO] checkout commit b92dc98;
3+
[INFO] run commit c081642; (Train an SGD clas...)
44
[INFO] Making sure inputs are available (this may take some time)
5+
unlock(ok): model.joblib (file)
56
[INFO] == Command start (output follows) =====
67
[INFO] == Command exit (modification check follows) =====
7-
[INFO] run commit 5ce0433; (Evaluate SGD clas...)
8+
add(ok): model.joblib (file)
9+
save(ok): . (dataset)
10+
[INFO] run commit c174771; (Evaluate SGD clas...)
811
[INFO] Making sure inputs are available (this may take some time)
912
[INFO] == Command start (output follows) =====
10-
{'accuracy': 0.8098859315589354}
13+
{'accuracy': 0.8086185044359949}
1114
[INFO] == Command exit (modification check follows) =====
12-
[INFO] skip-or-pick commit c20502b; c20502b does not have a command; skipping or cherry picking
13-
unlock(ok): model.joblib (file)
14-
add(ok): model.joblib (file)
15-
save(ok): . (dataset)
1615
add(ok): accuracy.json (file)
1716
add(ok): code/__pycache__/train.cpython-37.pyc (file)
1817
save(ok): . (dataset)
19-
run(ok): /home/me/usecases/ml-project (dataset) [c20502b does not have a command; skipping]
18+
[INFO] skip-or-pick commit c341b43; c341b43 does not have a command; skipping or cherry picking
19+
run(ok): /home/me/usecases/ml-project (dataset) [c341b43 does not have a command; skipping]
2020
action summary:
2121
add (ok: 3)
2222
get (notneeded: 8)

docs/usecases/_examples/ml-134

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
$ git diff master -- accuracy.json
22
diff --git a/accuracy.json b/accuracy.json
3-
index 0690de4..cdf07fd 100644
3+
index 8e62cc5..41634f2 100644
44
--- a/accuracy.json
55
+++ b/accuracy.json
66
@@ -1 +1 @@
7-
-{"accuracy": 0.7566539923954373}
7+
-{"accuracy": 0.7477820025348543}
88
\ No newline at end of file
9-
+{"accuracy": 0.8098859315589354}
9+
+{"accuracy": 0.8086185044359949}
1010
\ No newline at end of file

0 commit comments

Comments
 (0)