deprecation-warning

The sklearn.* module is deprecated in version 0.22 and will be removed in version 0.24

随声附和 提交于 2020-03-19 05:42:58
问题 I am migrating a piece of software from Python 2.7 to Python 3. One problem that arises is: The sklearn.neighbors.kde module is deprecated in version 0.22 and will be removed in version 0.24. The corresponding classes / functions should instead be imported from sklearn.neighbors. Anything that cannot be imported from sklearn.neighbors is now part of the private API. I am not sure which line causes this, and not sure if it is an error or a warning, and what are the implications. On python 2.7

The sklearn.* module is deprecated in version 0.22 and will be removed in version 0.24

旧城冷巷雨未停 提交于 2020-03-19 05:42:40
问题 I am migrating a piece of software from Python 2.7 to Python 3. One problem that arises is: The sklearn.neighbors.kde module is deprecated in version 0.22 and will be removed in version 0.24. The corresponding classes / functions should instead be imported from sklearn.neighbors. Anything that cannot be imported from sklearn.neighbors is now part of the private API. I am not sure which line causes this, and not sure if it is an error or a warning, and what are the implications. On python 2.7

PreferenceActivity: getFragmentManager() has been deprecated

非 Y 不嫁゛ 提交于 2020-01-20 06:54:06
问题 when testing a android.preference.PreferenceActivity, I get the following warning: warning: [deprecation] getFragmentManager() in Activity has been deprecated that is how I obtain a handle to the current PreferenceFragment : FragmentManager fm = this.mActivity.getFragmentManager(); this.currentFragment = (PreferenceFragment) fm.getFragments().get(1); using FragmentActivity.getSupportFragmentManager() is obviously not an option. found PreferenceFragmentCompat, which would replace the

PreferenceActivity: getFragmentManager() has been deprecated

故事扮演 提交于 2020-01-20 06:54:05
问题 when testing a android.preference.PreferenceActivity, I get the following warning: warning: [deprecation] getFragmentManager() in Activity has been deprecated that is how I obtain a handle to the current PreferenceFragment : FragmentManager fm = this.mActivity.getFragmentManager(); this.currentFragment = (PreferenceFragment) fm.getFragments().get(1); using FragmentActivity.getSupportFragmentManager() is obviously not an option. found PreferenceFragmentCompat, which would replace the

MySQL 8 Warning: SQL_NO_CACHE is deprecated

邮差的信 提交于 2020-01-16 14:04:07
问题 When issuing a statement to MySQL8 server: SELECT SQL_NO_CACHE * FROM <table-name>; I get this warning: Warning, 1681, 'SQL_NO_CACHE' is deprecated and will be removed in a future release. I would like to ask if there is any successor of the SQL_NO_CACHE that works or is planned to work with MySQL 8.x? Does SQL_NO_CACHE actually work with MySQL 8.x or it is omitted by the server? 来源: https://stackoverflow.com/questions/58584596/mysql-8-warning-sql-no-cache-is-deprecated

Python/matplotlib : getting rid of matplotlib.mpl warning

*爱你&永不变心* 提交于 2020-01-10 18:21:05
问题 I am using matplotlib using python 3.4. When I start my program, I have the following warning message: C:\Python34-32bits\lib\site-packages\matplotlib\cbook.py:123: MatplotlibDeprecationWarning: The matplotlib.mpl module was deprecated in version 1.3. Use import matplotlib as mpl instead. warnings.warn(message, mplDeprecation, stacklevel=1) As far as I know I do not use mpl, and all my imports concerning matplotlib are: import matplotlib.pyplot as plt import matplotlib.animation as animation

C++ Hash Deprecation Warning

谁说胖子不能爱 提交于 2019-12-30 11:18:08
问题 I am very new to C++ and programming in general and am currently working through Bjarne Stroustrup's Programming: Principles and Practices using C++. I'm consistently receiving the error below Severity Code Description Project File Line Error C2338 is deprecated and will be REMOVED. Please use . You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning. I understand that the header file std_lib_facilities.h using some sort of deprecated

Django 1.9 deprecation warnings app_label

依然范特西╮ 提交于 2019-12-28 02:39:59
问题 I've just updated to Django v1.8, and testing my local setup before updating my project and I've had a deprecation warning that I've never seen before, nor does it make any sense to me. I may be just overlooking something or misunderstanding the documentation. /Users/neilhickman/Sites/guild/ankylosguild/apps/raiding/models.py:6: RemovedInDjango19Warning: Model class ankylosguild.apps.raiding.models.Difficulty doesn't declare an explicit app_label and either isn't in an application in

Preg replace deprecated, attempting to fix

梦想的初衷 提交于 2019-12-23 02:42:06
问题 I've just upgraded to PHP 7 and have been hammering out errors associated with deprecated functions, with much success. Sadly, I've been having trouble fixing the new preg replace methodology for my "view php array in a interactive collapsable javascript thing" code. The following code: function print_r_tree($data) { // capture the output of $this->print_r_tree $out = print_r($data, true); // replace something like '[element] => <newline> (' with <a href="javascript:toggleDisplay('...');">...

Numpy/scipy deprecation warning for “rank”

若如初见. 提交于 2019-12-21 04:17:13
问题 I have some python code which uses numpy and have run this successfully for a year or more. I suddenly got the following error last week: /usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py:2507: VisibleDeprecationWarning: `rank` is deprecated; use the `ndim` attribute or function instead. To find the rank of a matrix see `numpy.linalg.matrix_rank`. VisibleDeprecationWarning) I can't find much on this online, but I found a suggestion that this was due to a bug in old versions of