Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Fix inspect getargspec python35 deprecation #632

Conversation

marscher
Copy link
Member

fixes
DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead

@franknoe
Copy link
Contributor

Hm, is this change fully backwards compatible?
Since the sklearn base class is changed - do we still retain full sklearn compatibility with it?

@marscher
Copy link
Member Author

The backported code was written within the Django project to address this problem and has been adopted by SciPy, so yes I guess clever people have written and reviewed it. However the Scikit project offered a much more complicated (and therefore more harder to maintain) solution for the same issue.
So I've chosen the simpler one...

https://github.com/scipy/scipy/pull/5248/files
vs
scikit-learn/scikit-learn#5281 2 PR, 1 introducing the change and already 1 follow up

@franknoe
Copy link
Contributor

Thanks. Since the behavior of the BaseEstimator is unchanged, we should
still be compatible with sklearn.

Am 20/11/15 um 01:55 schrieb Martin K. Scherer:

The backported code was written within the Django project to address
this problem and has been adopted by SciPy, so yes I guess clever
people has written and reviewed it. However the Scikit project offered
a much more complicated (and therefore more harder to maintain)
solution for the same issue.
So I've chosen the simpler one...

https://github.com/scipy/scipy/pull/5248/files
vs
scikit-learn/scikit-learn#5281
scikit-learn/scikit-learn#5281 2 PR, 1
introducing the change and already 1 follow up


Reply to this email directly or view it on GitHub
#632 (comment).


Prof. Dr. Frank Noe
Head of Computational Molecular Biology group
Freie Universitaet Berlin

Phone: (+49) (0)30 838 75354
Web: research.franknoe.de

Mail: Arnimallee 6, 14195 Berlin, Germany

franknoe added a commit that referenced this pull request Nov 20, 2015
…_deprecation

Fix inspect getargspec python35 deprecation
@franknoe franknoe merged commit 6ac92bc into markovmodel:devel Nov 20, 2015
@marscher marscher deleted the fix_inspect_getargspec_python35_deprecation branch November 20, 2015 13:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants