numericalalgorithmsgroup / dfogn Goto Github PK
View Code? Open in Web Editor NEWDFO-GN: Derivative-Free Optimization using Gauss-Newton
Home Page: https://numericalalgorithmsgroup.github.io/dfogn/
License: GNU General Public License v3.0
DFO-GN: Derivative-Free Optimization using Gauss-Newton
Home Page: https://numericalalgorithmsgroup.github.io/dfogn/
License: GNU General Public License v3.0
Installation using pip - don't work - installs an uncorrected version that is incompatible with numpy 1.20 and higher
Commit #1 don't increase version in version.py
and setup.py
(download_url).
Workaround: Manual installation (see README.rst)
For Python 3.11, setuptools 68.0.0 and numpy 1.25.1:
python setup.py test
- completely fails;pytest
- 1 failed, 25 passed, 1 warning:________________________________ TestSumsq.runTest _________________________________
self = <test_util.TestSumsq testMethod=runTest>
def runTest(self):
n = 10
x = np.sin(np.arange(n))
normx = np.sum(x**2)
> self.assertAlmostEqual(normx, sumsq(x), 'Wrong answer')
E TypeError: 'str' object cannot be interpreted as an integer
dfogn/tests/test_util.py:41: TypeError
For Python 2.7.18, setuptools 44.0.0.post20200102 and numpy 1.16.5:
python setup.py test
- Test failed: <unittest.runner.TextTestResult run=26 errors=1 failures=0>:======================================================================
ERROR: runTest (test_util.TestSumsq)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/leo/soft/valq/Yandex-Q/fortran_magic/dfogn-up/dfogn/tests/test_util.py", line 41, in runTest
self.assertAlmostEqual(normx, sumsq(x), 'Wrong answer')
File "/Users/leo/opt/anaconda3/envs/tfm27/lib/python2.7/unittest/case.py", line 555, in assertAlmostEqual
if round(abs(second-first), places) == 0:
TypeError: 'unicode' object cannot be interpreted as an index
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.