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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: polysolve
3
- Version: 0.6.2
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
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
  [project]
6
6
  # --- Core Metadata ---
7
7
  name = "polysolve"
8
- version = "0.6.2"
8
+ version = "0.6.3"
9
9
  authors = [
10
10
  { name="Jonathan Rampersad", email="jonathan@jono-rams.work" },
11
11
  ]
@@ -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: -100.0
73
+ Default: 0.0
74
74
  max_range (float): The maximum value for the initial random solutions.
75
- Default: 100.0
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 = -100.0
108
- max_range: float = 100.0
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 == -100.0 and options.max_range == 100.0)
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 == -100.0 and options.max_range == 100.0)
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.2
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