pyerualjetwork 1.2.3__py3-none-any.whl → 1.2.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.
plan/plan.py CHANGED
@@ -728,7 +728,7 @@ def SavePLAN(ModelName,
728
728
  'SAVE DATE': datetime.now(),
729
729
  'WEIGHTS TYPE': WeightsType,
730
730
  'WEIGHTS FORMAT': WeightsFormat,
731
- 'SAVE PATH': ModelPath
731
+ 'MODEL PATH': ModelPath
732
732
  }
733
733
  try:
734
734
 
@@ -823,7 +823,7 @@ def SavePLAN(ModelName,
823
823
 
824
824
 
825
825
  def LoadPLAN(ModelName,
826
- LoadPath,
826
+ ModelPath,
827
827
  LogType,
828
828
  ):
829
829
  infoLoadPLAN = """
@@ -831,7 +831,7 @@ def LoadPLAN(ModelName,
831
831
 
832
832
  Arguments:
833
833
  ModelName (str): Name of the model.
834
- LoadPath (str): Path where the model is saved.
834
+ ModelPath (str): Path where the model is saved.
835
835
  LogType (str): Type of log to load (options: 'csv', 'txt', 'hdf5').
836
836
 
837
837
  Returns:
@@ -846,15 +846,15 @@ def LoadPLAN(ModelName,
846
846
  try:
847
847
 
848
848
  if LogType == 'csv':
849
- df = pd.read_csv(LoadPath + ModelName + '.' + LogType)
849
+ df = pd.read_csv(ModelPath + ModelName + '.' + LogType)
850
850
 
851
851
 
852
852
  if LogType == 'txt':
853
- df = pd.read_csv(LoadPath + ModelName + '.' + LogType, delimiter='\t')
853
+ df = pd.read_csv(ModelPath + ModelName + '.' + LogType, delimiter='\t')
854
854
 
855
855
 
856
856
  if LogType == 'hdf5':
857
- df = pd.read_hdf(LoadPath + ModelName + '.' + LogType)
857
+ df = pd.read_hdf(ModelPath + ModelName + '.' + LogType)
858
858
  except:
859
859
  print(Fore.RED + "ERROR: Model Path error. Accaptable form: 'C:/Users/hasancanbeydili/Desktop/denemePLAN/' from: LoadPLAN" + infoLoadPLAN + Style.RESET_ALL)
860
860
 
@@ -878,13 +878,13 @@ def LoadPLAN(ModelName,
878
878
 
879
879
  if WeightType == 'txt':
880
880
  for i in range(LayerCount):
881
- W[i] = np.loadtxt(LoadPath + ModelName + str(i+1) + 'w.txt')
881
+ W[i] = np.loadtxt(ModelPath + ModelName + str(i+1) + 'w.txt')
882
882
  elif WeightType == 'npy':
883
883
  for i in range(LayerCount):
884
- W[i] = np.load(LoadPath + ModelName + str(i+1) + 'w.npy')
884
+ W[i] = np.load(ModelPath + ModelName + str(i+1) + 'w.npy')
885
885
  elif WeightType == 'mat':
886
886
  for i in range(LayerCount):
887
- W[i] = sio.loadmat(LoadPath + ModelName + str(i+1) + 'w.mat')
887
+ W[i] = sio.loadmat(ModelPath + ModelName + str(i+1) + 'w.mat')
888
888
  else:
889
889
  raise ValueError(Fore.RED + "Incorrect weight type value. Value must be 'txt', 'npy' or 'mat' from: LoadPLAN." + infoLoadPLAN + Style.RESET_ALL)
890
890
  print(Fore.GREEN + "Model loaded succesfully" + Style.RESET_ALL)
@@ -1049,5 +1049,5 @@ def GetAcc():
1049
1049
 
1050
1050
  def GetAllFromLoad():
1051
1051
 
1052
- return 0,1,2,3,4,5
1052
+ return [0, 1, 2, 3, 4, 5]
1053
1053
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyerualjetwork
3
- Version: 1.2.3
3
+ Version: 1.2.5
4
4
  Summary: Advanced python deep learning library.UPDATED TO 1.2.2 NEW FEATURES: GetWeights() func for TrainPLAN, TestPLAN and LoadPLAN, GetPreds() and GetAcc() funcs for TrainPLAN and TestPLAN, GetAllFromLoad() func for LoadPLAN, GetDf() for LoadPLAN (Documentation in desc. Examples in GİTHUB: HCB06)
5
5
  Author: Hasan Can Beydili
6
6
  Author-email: tchasancan@gmail.com
@@ -0,0 +1,6 @@
1
+ plan/__init__.py,sha256=_jNJho5JbgO70TN4ixL13C5XbdeLmsZapy97_yu-GB0,368
2
+ plan/plan.py,sha256=hnJ6qoYC1hOcOu7m8viFwpeCJ8mKq0uY74MYKgXXIJw,40176
3
+ pyerualjetwork-1.2.5.dist-info/METADATA,sha256=GJ5eHOhbxyN3qhx0ZU2DGwxzd_muUjF95mfnZL8bqf4,513
4
+ pyerualjetwork-1.2.5.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
5
+ pyerualjetwork-1.2.5.dist-info/top_level.txt,sha256=G0Al3HuNJ88434XneyDtRKAIUaLCizOFYFYNhd7e2OM,5
6
+ pyerualjetwork-1.2.5.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- plan/__init__.py,sha256=_jNJho5JbgO70TN4ixL13C5XbdeLmsZapy97_yu-GB0,368
2
- plan/plan.py,sha256=M69vG4FqkZUqfKb2G1nnE_SVFbkCV5K1HDiy3CLaQg0,40159
3
- pyerualjetwork-1.2.3.dist-info/METADATA,sha256=S3A-CkWiy7Cr0-urVvxRO4I_DexqjXAi-qOjevc5OUg,513
4
- pyerualjetwork-1.2.3.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
5
- pyerualjetwork-1.2.3.dist-info/top_level.txt,sha256=G0Al3HuNJ88434XneyDtRKAIUaLCizOFYFYNhd7e2OM,5
6
- pyerualjetwork-1.2.3.dist-info/RECORD,,