Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plot_toy_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import numpy as np
import matplotlib.pyplot as plt
from sklearn.linear_model import Lasso
from pyowl import OwlRegressor
from pyowl.pyowl import OwlRegressor

n_samples = 10
n_features = 100
Expand Down
Empty file added pyowl/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pyowl.py → pyowl/pyowl.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from sklearn.isotonic import isotonic_regression
from sklearn.preprocessing import LabelBinarizer

from fista import fista
from loss import get_loss
from pyowl.fista import fista
from pyowl.loss import get_loss


def prox_owl(v, w):
Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
matplotlib==2.2.3
numpy==1.15.1
scikit-learn==0.19.2
scipy==1.1.0
14 changes: 14 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from setuptools import find_packages
from setuptools import setup

setup(name='pyowl',
version='0.1',
description='pyowl: Ordered Weighted L1 Regularization in Python',
long_description=open('README.md').read(),
url='https://github.com/vene/pyowl',
packages=find_packages(),
install_requires=[
"numpy==1.15.1",
"scikit-learn==0.19.2",
"scipy==1.1.0"
])
2 changes: 1 addition & 1 deletion test_pyowl.py → tests/test_pyowl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import numpy as np
from numpy.testing import assert_array_almost_equal
from pyowl import prox_owl
from pyowl.pyowl import prox_owl

rng = np.random.RandomState(0)

Expand Down