Opened 19 years ago
Closed 18 years ago
#8 closed enhancement (fixed)
Least squares memory issue (A vs AtA)
Reported by: | ole | Owned by: | duncan |
---|---|---|---|
Priority: | high | Milestone: | least_squares module finished |
Component: | Efficiency and optimisation | Version: | |
Severity: | normal | Keywords: | |
Cc: | ole |
Description
memory issue: !
If LS is used for fitting
compute self.Atz and self AtA directly and avoid self.A. need alpha
If LS is to be used for interpolation
compute self.A no alpha needed
Rethink design and API so that this is addressed without duplicating code.
Change History (8)
comment:1 Changed 19 years ago by ole
- Priority changed from normal to high
comment:2 Changed 19 years ago by ole
- Component changed from pyvolution to least_squares
comment:3 Changed 19 years ago by anonymous
comment:4 Changed 19 years ago by anonymous
ran same test as 29 sept. Same results, longer time (160 hrs). meemory usage 399,708 K, cpu at 100%. What was to screen when I stopped it: I:\inundation\pyvolution>test_data_manager.py Reading from karratha_100m.sww Reading quantity depth Reducing quantity depth Creating grid Building mesh Building interpolation matrix Number of datapoints: 12061352 Number of basis functions: 65227 Doing 0 of 12061352
Therefore not a memory problem, but a slow algorithm problem.
comment:5 Changed 19 years ago by duncan
- Severity changed from normal to enhancement
comment:6 Changed 19 years ago by ole
- Component changed from Testing and validation to Efficiency and optimisation
comment:7 Changed 19 years ago by duncan
- Status changed from new to assigned
comment:8 Changed 18 years ago by duncan
- Resolution set to fixed
- Status changed from assigned to closed
done changes, unchecked in, to least squares. after 20 hrs on the test_data_management test it is at this stage; N:\inundation\pyvolution>python test_data_manager.py Reading from karratha_100m.sww Reading quantity depth Reducing quantity depth Creating grid Building mesh Building interpolation matrix Number of datapoints: 12061352 Number of basis functions: 65227 Doing 0 of 12061352 Traceback (most recent call last):
tion_matrix_A
s_of_vertices
KeyboardInterrupt?
Note, it was not using all of the availabe memory. Seems like a slow algorithm issue