This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import numpy as np | |
| import seaborn as sns | |
| import matplotlib.pyplot as plt | |
| from collections import defaultdict | |
| from gurobipy import Model, GRB | |
| from PIL import Image | |
| colors = [ | |
| '#686789', '#B77F70', '#E5E2B9', '#BEB1A8', '#A79A89', '#8A95A9', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |