Skip to content

Instantly share code, notes, and snippets.

View xixizxx's full-sized avatar

Zhou Xixi xixizxx

  • Zhejiang University
  • Hangzhou, China
View GitHub Profile
#!/usr/bin/python
#-*- coding: latin-1 -*-
"""This module contains pure Python implementations of the
Levenberg-Marquardt algorithm for data fitting.
"""
import numpy
from numpy import inner, max, diag, eye, Inf, dot
from numpy.linalg import norm, solve