Skip to content

Instantly share code, notes, and snippets.

View mitliagkas's full-sized avatar

Ioannis Mitliagkas mitliagkas

View GitHub Profile
@mblondel
mblondel / nmf_cd.py
Last active June 12, 2019 20:00
NMF by coordinate descent
"""
NMF by coordinate descent, designed for sparse data (without missing values)
"""
# Author: Mathieu Blondel <[email protected]>
# License: BSD 3 clause
import numpy as np
import scipy.sparse as sp
import numba
@enakai00
enakai00 / isingmodel.py
Last active January 4, 2023 08:35
Gibbs Sampling Emulation of 2D Ising Model
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from pandas import Series, DataFrame
from numpy.random import randint, randn, rand
Size = 50
J = 1
H = 0.0
Temp = 0