sciv 0.0.87__py3-none-any.whl → 0.0.88__py3-none-any.whl

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.
sciv/model/_core_.py CHANGED
@@ -81,6 +81,7 @@ def _check_and_run_two_step_(
81
81
  gamma: float = 0.05,
82
82
  enrichment_gamma: float = 0.05,
83
83
  p: int = 2,
84
+ n_jobs: int = -1,
84
85
  min_seed_cell_rate: float = 0.01,
85
86
  max_seed_cell_rate: float = 0.05,
86
87
  credible_threshold: float = 0,
@@ -235,6 +236,7 @@ def _check_and_run_two_step_(
235
236
  "gamma": gamma,
236
237
  "enrichment_gamma": enrichment_gamma,
237
238
  "p": p,
239
+ "n_jobs": n_jobs,
238
240
  "min_seed_cell_rate": min_seed_cell_rate,
239
241
  "max_seed_cell_rate": max_seed_cell_rate,
240
242
  "credible_threshold": credible_threshold,
@@ -383,6 +385,7 @@ def core(
383
385
  gamma: float = 0.05,
384
386
  enrichment_gamma: float = 0.05,
385
387
  p: int = 2,
388
+ n_jobs: int = -1,
386
389
  min_seed_cell_rate: float = 0.01,
387
390
  max_seed_cell_rate: float = 0.05,
388
391
  credible_threshold: float = 0,
@@ -435,6 +438,7 @@ def core(
435
438
  :param gamma: reset weight for random walk;
436
439
  :param enrichment_gamma: reset weight for random walk for enrichment;
437
440
  :param p: Distance used for loss {1: Manhattan distance, 2: Euclidean distance};
441
+ :param n_jobs: The maximum number of concurrently running jobs;
438
442
  :param min_seed_cell_rate: The minimum percentage of seed cells in all cells;
439
443
  :param max_seed_cell_rate: The maximum percentage of seed cells in all cells;
440
444
  :param credible_threshold: The threshold for determining the credibility of enriched cells in the context of
@@ -516,6 +520,7 @@ def core(
516
520
  epsilon=epsilon,
517
521
  gamma=gamma,
518
522
  p=p,
523
+ n_jobs=n_jobs,
519
524
  min_seed_cell_rate=min_seed_cell_rate,
520
525
  max_seed_cell_rate=max_seed_cell_rate,
521
526
  credible_threshold=max_seed_cell_rate,
@@ -701,6 +706,7 @@ def core(
701
706
  gamma=gamma,
702
707
  enrichment_gamma=enrichment_gamma,
703
708
  p=p,
709
+ n_jobs=n_jobs,
704
710
  min_seed_cell_rate=min_seed_cell_rate,
705
711
  max_seed_cell_rate=max_seed_cell_rate,
706
712
  credible_threshold=credible_threshold,
@@ -899,6 +905,7 @@ def core(
899
905
  gamma=gamma,
900
906
  enrichment_gamma=enrichment_gamma,
901
907
  p=p,
908
+ n_jobs=n_jobs,
902
909
  min_seed_cell_rate=min_seed_cell_rate,
903
910
  max_seed_cell_rate=max_seed_cell_rate,
904
911
  credible_threshold=credible_threshold,
@@ -1072,6 +1079,7 @@ def knock(
1072
1079
  epsilon=params["epsilon"],
1073
1080
  gamma=params["gamma"],
1074
1081
  p=params["p"],
1082
+ n_jobs=params["n_jobs"] if "n_jobs" in params else -1,
1075
1083
  min_seed_cell_rate=params["min_seed_cell_rate"],
1076
1084
  max_seed_cell_rate=params["max_seed_cell_rate"],
1077
1085
  credible_threshold=params["credible_threshold"],
@@ -1109,6 +1117,7 @@ def knock(
1109
1117
  gamma=params["gamma"],
1110
1118
  enrichment_gamma=params["enrichment_gamma"],
1111
1119
  p=params["p"],
1120
+ n_jobs=params["n_jobs"] if "n_jobs" in params else -1,
1112
1121
  min_seed_cell_rate=params["min_seed_cell_rate"],
1113
1122
  max_seed_cell_rate=params["max_seed_cell_rate"],
1114
1123
  credible_threshold=params["credible_threshold"],