Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slight modification for running examples #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
6 changes: 3 additions & 3 deletions modl/dict_fact.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ def _init(self, X):
order='F')
self.B_ = np.zeros((self.n_components, n_cols), order="F")

self.counter_ = np.zeros(n_cols + 1, dtype='int')
self.counter_ = np.zeros(n_cols + 1, dtype=int)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which version of Python are you using ? dtype='int' should run fine


self.n_iter_ = np.zeros(1, dtype='long')
self.n_iter_ = np.zeros(1, dtype=long)

self.code_ = np.zeros((self.n_samples_, self.n_components))

Expand Down Expand Up @@ -587,4 +587,4 @@ def _update_dict_slow(self, subset, D_range):

def _callback(self):
if self.callback is not None:
self.callback(self)
self.callback(self)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

DISTNAME = 'modl'
DESCRIPTION = "Masked Online Dictionary Learning in Python"
LONG_DESCRIPTION = open('README.rst').read()
LONG_DESCRIPTION = open('README.md').read()
MAINTAINER = 'Arthur Mensch'
MAINTAINER_EMAIL = '[email protected]'
URL = 'https://github.com/arthurmensch/modl'
Expand Down