Skip to content

Instantly share code, notes, and snippets.

View ohuarcaya's full-sized avatar

0scar Huarcaya ohuarcaya

View GitHub Profile
@diogojc
diogojc / ridge.py
Created December 25, 2011 21:11
Ridge Regression
#!/usr/bin/python
# -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
class RidgeRegressor(object):
"""
Linear Least Squares Regression with Tikhonov regularization.