pyerualjetwork 4.0.5__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.
- pyerualjetwork/__init__.py +71 -0
- pyerualjetwork/activation_functions.py +367 -0
- pyerualjetwork/activation_functions_cuda.py +363 -0
- pyerualjetwork/data_operations.py +439 -0
- pyerualjetwork/data_operations_cuda.py +463 -0
- pyerualjetwork/help.py +16 -0
- pyerualjetwork/loss_functions.py +21 -0
- pyerualjetwork/loss_functions_cuda.py +21 -0
- pyerualjetwork/metrics.py +190 -0
- pyerualjetwork/metrics_cuda.py +165 -0
- pyerualjetwork/model_operations.py +408 -0
- pyerualjetwork/model_operations_cuda.py +414 -0
- pyerualjetwork/plan.py +681 -0
- pyerualjetwork/plan_cuda.py +677 -0
- pyerualjetwork/planeat.py +734 -0
- pyerualjetwork/planeat_cuda.py +736 -0
- pyerualjetwork/ui.py +22 -0
- pyerualjetwork/visualizations.py +799 -0
- pyerualjetwork/visualizations_cuda.py +799 -0
- pyerualjetwork-4.0.5.dist-info/METADATA +95 -0
- pyerualjetwork-4.0.5.dist-info/RECORD +23 -0
- pyerualjetwork-4.0.5.dist-info/WHEEL +5 -0
- pyerualjetwork-4.0.5.dist-info/top_level.txt +1 -0
pyerualjetwork/ui.py
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
from tqdm import tqdm
|
2
|
+
|
3
|
+
def loading_bars():
|
4
|
+
|
5
|
+
GREEN = "\033[92m"
|
6
|
+
RESET = "\033[0m"
|
7
|
+
|
8
|
+
bar_format_normal = f"{GREEN}{{bar}}{GREEN} {RESET} {{l_bar}} {{remaining}} {{postfix}}"
|
9
|
+
bar_format_learner = f"{GREEN}{{bar}}{GREEN} {RESET} {{remaining}} {{postfix}}"
|
10
|
+
|
11
|
+
return bar_format_normal, bar_format_learner
|
12
|
+
|
13
|
+
|
14
|
+
def initialize_loading_bar(total, desc, ncols, bar_format, leave=True):
|
15
|
+
return tqdm(
|
16
|
+
total=total,
|
17
|
+
leave=leave,
|
18
|
+
desc=desc,
|
19
|
+
ascii="▱▰",
|
20
|
+
bar_format=bar_format,
|
21
|
+
ncols=ncols,
|
22
|
+
)
|