polysolve 0.6.2__tar.gz → 0.6.3__tar.gz
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.
- {polysolve-0.6.2/src/polysolve.egg-info → polysolve-0.6.3}/PKG-INFO +1 -1
- {polysolve-0.6.2 → polysolve-0.6.3}/pyproject.toml +1 -1
- {polysolve-0.6.2 → polysolve-0.6.3}/src/polysolve/__init__.py +6 -6
- {polysolve-0.6.2 → polysolve-0.6.3/src/polysolve.egg-info}/PKG-INFO +1 -1
- {polysolve-0.6.2 → polysolve-0.6.3}/LICENSE +0 -0
- {polysolve-0.6.2 → polysolve-0.6.3}/README.md +0 -0
- {polysolve-0.6.2 → polysolve-0.6.3}/setup.cfg +0 -0
- {polysolve-0.6.2 → polysolve-0.6.3}/src/polysolve.egg-info/SOURCES.txt +0 -0
- {polysolve-0.6.2 → polysolve-0.6.3}/src/polysolve.egg-info/dependency_links.txt +0 -0
- {polysolve-0.6.2 → polysolve-0.6.3}/src/polysolve.egg-info/requires.txt +0 -0
- {polysolve-0.6.2 → polysolve-0.6.3}/src/polysolve.egg-info/top_level.txt +0 -0
- {polysolve-0.6.2 → polysolve-0.6.3}/tests/test_polysolve.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: polysolve
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.3
|
|
4
4
|
Summary: A Python library for representing, manipulating, and solving exponential functions using analytical methods and genetic algorithms, with optional CUDA acceleration.
|
|
5
5
|
Author-email: Jonathan Rampersad <jonathan@jono-rams.work>
|
|
6
6
|
License: MIT License
|
|
@@ -70,9 +70,9 @@ class GA_Options:
|
|
|
70
70
|
|
|
71
71
|
Attributes:
|
|
72
72
|
min_range (float): The minimum value for the initial random solutions.
|
|
73
|
-
Default:
|
|
73
|
+
Default: 0.0
|
|
74
74
|
max_range (float): The maximum value for the initial random solutions.
|
|
75
|
-
Default:
|
|
75
|
+
Default: 0.0
|
|
76
76
|
num_of_generations (int): The number of iterations the algorithm will run.
|
|
77
77
|
Default: 10
|
|
78
78
|
data_size (int): The total number of solutions (population size)
|
|
@@ -104,8 +104,8 @@ class GA_Options:
|
|
|
104
104
|
(e.g., 7) is more precise but may return
|
|
105
105
|
multiple near-identical roots. Default: 5
|
|
106
106
|
"""
|
|
107
|
-
min_range: float =
|
|
108
|
-
max_range: float =
|
|
107
|
+
min_range: float = 0.0
|
|
108
|
+
max_range: float = 0.0
|
|
109
109
|
num_of_generations: int = 10
|
|
110
110
|
data_size: int = 100000
|
|
111
111
|
mutation_strength: float = 0.01
|
|
@@ -360,7 +360,7 @@ class Function:
|
|
|
360
360
|
random_size = data_size - elite_size - crossover_size - mutation_size
|
|
361
361
|
|
|
362
362
|
# Check if the user is using the default, non-expert range
|
|
363
|
-
user_range_is_default = (options.min_range ==
|
|
363
|
+
user_range_is_default = (options.min_range == 0.0 and options.max_range == 0.0)
|
|
364
364
|
|
|
365
365
|
if user_range_is_default:
|
|
366
366
|
# User hasn't specified a custom range.
|
|
@@ -489,7 +489,7 @@ class Function:
|
|
|
489
489
|
d_coefficients = cupy.array(self.coefficients, dtype=cupy.float64)
|
|
490
490
|
|
|
491
491
|
# Check if the user is using the default, non-expert range
|
|
492
|
-
user_range_is_default = (options.min_range ==
|
|
492
|
+
user_range_is_default = (options.min_range == 0.0 and options.max_range == 0.0)
|
|
493
493
|
|
|
494
494
|
if user_range_is_default:
|
|
495
495
|
# User hasn't specified a custom range.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: polysolve
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.3
|
|
4
4
|
Summary: A Python library for representing, manipulating, and solving exponential functions using analytical methods and genetic algorithms, with optional CUDA acceleration.
|
|
5
5
|
Author-email: Jonathan Rampersad <jonathan@jono-rams.work>
|
|
6
6
|
License: MIT License
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|