pyerualjetwork 2.4.2__py3-none-any.whl → 2.4.3__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_bi/plan_bi.py +26 -0
- {pyerualjetwork-2.4.2.dist-info → pyerualjetwork-2.4.3.dist-info}/METADATA +1 -1
- pyerualjetwork-2.4.3.dist-info/RECORD +8 -0
- pyerualjetwork-2.4.2.dist-info/RECORD +0 -8
- {pyerualjetwork-2.4.2.dist-info → pyerualjetwork-2.4.3.dist-info}/WHEEL +0 -0
- {pyerualjetwork-2.4.2.dist-info → pyerualjetwork-2.4.3.dist-info}/top_level.txt +0 -0
plan_bi/plan_bi.py
CHANGED
@@ -204,6 +204,32 @@ def weight_normalization(
|
|
204
204
|
|
205
205
|
# FUNCTIONS -----
|
206
206
|
|
207
|
+
def prime_factors(n):
|
208
|
+
factors = []
|
209
|
+
divisor = 2
|
210
|
+
|
211
|
+
while divisor <= n:
|
212
|
+
if n % divisor == 0:
|
213
|
+
factors.append(divisor)
|
214
|
+
n //= divisor
|
215
|
+
else:
|
216
|
+
divisor += 1
|
217
|
+
|
218
|
+
return factors
|
219
|
+
|
220
|
+
def find_factors(n):
|
221
|
+
factors = prime_factors(n)
|
222
|
+
|
223
|
+
if len(factors) < 2:
|
224
|
+
return None, None
|
225
|
+
|
226
|
+
a = factors[0]
|
227
|
+
b = 1
|
228
|
+
for factor in factors[1:]:
|
229
|
+
b *= factor
|
230
|
+
|
231
|
+
return a, b
|
232
|
+
|
207
233
|
def weight_identification(
|
208
234
|
layer_count, # int: Number of layers in the neural network.
|
209
235
|
class_count, # int: Number of classes in the classification task.
|
@@ -0,0 +1,8 @@
|
|
1
|
+
plan_bi/__init__.py,sha256=kHnuGDOKyMHQqeX49ToUUsdZckh9RPuyADhYw0SrmIo,514
|
2
|
+
plan_bi/plan_bi.py,sha256=GJilBGENKFA1S_3QBAoFS5IaDu1UHGgiC1VPJmY4wGc,53069
|
3
|
+
plan_di/__init__.py,sha256=DJzUsYj-tgbeewoGz-K9nfGsKqrRFUxIr_z-NgqySBk,505
|
4
|
+
plan_di/plan_di.py,sha256=izbP2BuixM2bUumACPXYE66Wj6LnVbuiH3NXLMrN2EY,50514
|
5
|
+
pyerualjetwork-2.4.3.dist-info/METADATA,sha256=ZoBtjCTB1E_6NRXZXY4d8u5VZve_jmyrtzHiirG8J1w,309
|
6
|
+
pyerualjetwork-2.4.3.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
7
|
+
pyerualjetwork-2.4.3.dist-info/top_level.txt,sha256=aaXSOcnD62fbXG1x7tw4nV50Qxx9g9zDNLK7OD4BdPE,16
|
8
|
+
pyerualjetwork-2.4.3.dist-info/RECORD,,
|
@@ -1,8 +0,0 @@
|
|
1
|
-
plan_bi/__init__.py,sha256=kHnuGDOKyMHQqeX49ToUUsdZckh9RPuyADhYw0SrmIo,514
|
2
|
-
plan_bi/plan_bi.py,sha256=31YsVfHNxIwnn7q6tAA4v2nyfSanfxBM7Wt7Z2ptyhI,52589
|
3
|
-
plan_di/__init__.py,sha256=DJzUsYj-tgbeewoGz-K9nfGsKqrRFUxIr_z-NgqySBk,505
|
4
|
-
plan_di/plan_di.py,sha256=izbP2BuixM2bUumACPXYE66Wj6LnVbuiH3NXLMrN2EY,50514
|
5
|
-
pyerualjetwork-2.4.2.dist-info/METADATA,sha256=Ege0t_siyKePfxhYLb3vhdic5wjxkD3QriA2XbttbiY,309
|
6
|
-
pyerualjetwork-2.4.2.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
7
|
-
pyerualjetwork-2.4.2.dist-info/top_level.txt,sha256=aaXSOcnD62fbXG1x7tw4nV50Qxx9g9zDNLK7OD4BdPE,16
|
8
|
-
pyerualjetwork-2.4.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|