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

[FIX] Fix varius deprecation (and other) warnings #1774

Merged
merged 19 commits into from
Nov 25, 2016

Commits on Nov 22, 2016

  1. Fix deprecation warnings for numpy.random.random_integers

    Replace random_integers with randint
    ales-erjavec committed Nov 22, 2016
    Configuration menu
    Copy the full SHA
    efbb621 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0c875ae View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2016

  1. Pass arrays to sklearn as 2d arrays

    Fix a 'DeprecationWarning: Passing 1d arrays as data is deprecated in
    0.17 and will raise ValueError in 0.19. Reshape your data either using
    X.reshape(-1, 1) if your data has a single feature or X.reshape(1, -1)
    if it contains a single sample.' from scikit-learn
    ales-erjavec committed Nov 24, 2016
    Configuration menu
    Copy the full SHA
    55e8f9c View commit details
    Browse the repository at this point in the history
  2. Cast indices/sizes to int

    Fix a 'VisibleDeprecationWarning: using a non-integer number instead of
    an integer will result in an error in the future'
    ales-erjavec committed Nov 24, 2016
    Configuration menu
    Copy the full SHA
    d3ddf38 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0a085a7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1b1b920 View commit details
    Browse the repository at this point in the history
  5. Explicitly handle StopIteration exeception in generators

    Fix FutureDeprecationWarnings due to PEP 479
    ales-erjavec committed Nov 24, 2016
    Configuration menu
    Copy the full SHA
    9158dff View commit details
    Browse the repository at this point in the history
  6. Use correct widget index

    A OWWidget can be constructed only with only a mainArea (no controlArea,
    e.g. 'OWDistanceMatrix') in which case the constant index was incorect.
    
    Fixes a warning 'QSplitter::setCollapsible: Index 1 out of range' from
    Qt
    ales-erjavec committed Nov 24, 2016
    Configuration menu
    Copy the full SHA
    7febe17 View commit details
    Browse the repository at this point in the history
  7. Specify dtype for numpy.full where appropriate

    Suppress a "FutureWarning: in the future, full(...) will return an
    array of dtype('int64')"
    ales-erjavec committed Nov 24, 2016
    Configuration menu
    Copy the full SHA
    36f5dff View commit details
    Browse the repository at this point in the history
  8. Fix outline pen color

    Was broken since 2329179
    ales-erjavec committed Nov 24, 2016
    Configuration menu
    Copy the full SHA
    75f45c7 View commit details
    Browse the repository at this point in the history
  9. Pass y_score to roc_auc_class with dtype=float

    Suppress a 'DeprecationWarning: numpy boolean subtract, the `-` operator,
    is deprecated, use the bitwise_xor, the `^` operator, or the logical_xor
    function instead'
    ales-erjavec committed Nov 24, 2016
    Configuration menu
    Copy the full SHA
    9f6ebcd View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b535452 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    ee6478b View commit details
    Browse the repository at this point in the history
  12. Remove second item insertion in the QGraphicsScene

    Suppress a warning from Qt ('QGraphicsScene::addItem: item has already
    been added to this scene')
    ales-erjavec committed Nov 24, 2016
    Configuration menu
    Copy the full SHA
    5ba0cf5 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    8eba817 View commit details
    Browse the repository at this point in the history
  14. distribution: Fix an AttributeError using numpy 1.12b

    In numpy 1.12b passing the distribution.Continuous instance as the
    weight parameter to np.average triggers a:
    
        File "..numpy/lib/function_base.py", line 1138, in average
            if (scl == 0.0).any():
        AttributeError: 'bool' object has no attribute 'any'
    ales-erjavec committed Nov 24, 2016
    Configuration menu
    Copy the full SHA
    3cf1bf4 View commit details
    Browse the repository at this point in the history
  15. Fix a FutureWarning from numpy.average (numpy 1.12b)

    Passing a ndarray subclass to numpy.average triggers a:
    
        FutureWarning: np.average currently does not preserve subclasses, but
        will do so in the future to match the behavior of most other numpy
        functions such as np.mean. In particular, this means calls which
        returned a scalar may return a 0-d subclass object instead.
    
    In this case this is not what we want.
    ales-erjavec committed Nov 24, 2016
    Configuration menu
    Copy the full SHA
    6ab098a View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2016

  1. Configuration menu
    Copy the full SHA
    448253e View commit details
    Browse the repository at this point in the history
  2. Fix NaN couting in bincount when weights are supplied

    Compute a 'weighted count' of NaNs if weights vector is supplied
    ales-erjavec committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    6067f6d View commit details
    Browse the repository at this point in the history