pyerualjetwork 4.1.3__tar.gz → 4.1.4__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/PKG-INFO +1 -1
  2. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork/__init__.py +1 -1
  3. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork/model_operations_cuda.py +8 -5
  4. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork/plan_cuda.py +1 -1
  5. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork.egg-info/PKG-INFO +1 -1
  6. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/setup.py +1 -1
  7. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/README.md +0 -0
  8. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork/activation_functions.py +0 -0
  9. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork/activation_functions_cuda.py +0 -0
  10. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork/data_operations.py +0 -0
  11. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork/data_operations_cuda.py +0 -0
  12. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork/help.py +0 -0
  13. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork/loss_functions.py +0 -0
  14. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork/loss_functions_cuda.py +0 -0
  15. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork/metrics.py +0 -0
  16. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork/metrics_cuda.py +0 -0
  17. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork/model_operations.py +0 -0
  18. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork/plan.py +0 -0
  19. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork/planeat.py +0 -0
  20. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork/planeat_cuda.py +0 -0
  21. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork/ui.py +0 -0
  22. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork/visualizations.py +0 -0
  23. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork/visualizations_cuda.py +0 -0
  24. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork.egg-info/SOURCES.txt +0 -0
  25. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork.egg-info/dependency_links.txt +0 -0
  26. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/pyerualjetwork.egg-info/top_level.txt +0 -0
  27. {pyerualjetwork-4.1.3 → pyerualjetwork-4.1.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyerualjetwork
3
- Version: 4.1.3
3
+ Version: 4.1.4
4
4
  Summary: PyerualJetwork is a machine learning library written in Python for professionals, incorporating advanced, unique, new, and modern techniques.
5
5
  Author: Hasan Can Beydili
6
6
  Author-email: tchasancan@gmail.com
@@ -47,7 +47,7 @@ for package_name in package_names:
47
47
 
48
48
  print(f"PyerualJetwork is ready to use with {err} errors")
49
49
 
50
- __version__ = "4.1.3"
50
+ __version__ = "4.1.4"
51
51
  __update__ = "* Note: CUDA modules need cupy. Enter this command in your terminal: 'pip install cupy-cuda12x' or your cuda version.\n* Changes: https://github.com/HCB06/PyerualJetwork/blob/main/CHANGES\n* PyerualJetwork document: https://github.com/HCB06/Anaplan/blob/main/Welcome_to_PyerualJetwork/PYERUALJETWORK_USER_MANUEL_AND_LEGAL_INFORMATION(EN).pdf\n* YouTube tutorials: https://www.youtube.com/@HasanCanBeydili"
52
52
 
53
53
  def print_version(__version__):
@@ -6,7 +6,7 @@ import pickle
6
6
  from scipy import io
7
7
  import scipy.io as sio
8
8
  import pandas as pd
9
-
9
+ import gc
10
10
 
11
11
  def save_model(model_name,
12
12
  W,
@@ -207,14 +207,17 @@ def load_model(model_name,
207
207
  activation_potentiation = [x for x in activation_potentiation if not (isinstance(x, float) and cp.isnan(x))]
208
208
  activation_potentiation = [item for item in activation_potentiation if item != '']
209
209
 
210
- scaler_params = df['STANDARD SCALER'].tolist()
210
+ scaler_params_cpu = df['STANDARD SCALER'].tolist()
211
211
 
212
212
  try:
213
- if scaler_params[0] == None:
214
- scaler_params = scaler_params[0]
213
+ if scaler_params_cpu[0] == None: # model not scaled
214
+ scaler_params = scaler_params_cpu[0]
215
215
 
216
216
  except:
217
- scaler_params = [item for item in scaler_params if isinstance(item, cp.ndarray)]
217
+ scaler_params = cp.array(scaler_params_cpu)
218
+ del scaler_params_cpu
219
+ gc.collect()
220
+ scaler_params = [item for item in scaler_params if isinstance(item, cp.ndarray)] # model scaled
218
221
 
219
222
 
220
223
  model_name = str(df['MODEL NAME'].iloc[0])
@@ -299,7 +299,7 @@ def learner(x_train, y_train, x_test=None, y_test=None, strategy='accuracy', bat
299
299
  x_test_batch, y_test_batch = batcher(x_test, y_test, batch_size=batch_size)
300
300
  W = fit(x_train, y_train, activation_potentiation=best_activations, train_bar=False, auto_normalization=auto_normalization, dtype=dtype)
301
301
  model = evaluate(x_test_batch, y_test_batch, W=W, loading_bar_status=False, activation_potentiation=activations, dtype=dtype)
302
-
302
+
303
303
  if loss == 'categorical_crossentropy':
304
304
  test_loss = categorical_crossentropy(y_true_batch=y_test_batch, y_pred_batch=model[get_preds_softmax()])
305
305
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyerualjetwork
3
- Version: 4.1.3
3
+ Version: 4.1.4
4
4
  Summary: PyerualJetwork is a machine learning library written in Python for professionals, incorporating advanced, unique, new, and modern techniques.
5
5
  Author: Hasan Can Beydili
6
6
  Author-email: tchasancan@gmail.com
@@ -6,7 +6,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
6
6
  # Setting Up
7
7
  setup(
8
8
  name="pyerualjetwork",
9
- version="4.1.3",
9
+ version="4.1.4",
10
10
  author="Hasan Can Beydili",
11
11
  author_email="tchasancan@gmail.com",
12
12
  description=(
File without changes
File without changes