Skip to content

Instantly share code, notes, and snippets.

View TienPhuocNguyen's full-sized avatar

Tien Nguyen TienPhuocNguyen

  • Automation Lab
  • Suwon, South of Korea
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