Skip to content

Commit

Permalink
flake fix
Browse files Browse the repository at this point in the history
  • Loading branch information
markroxor committed Jul 20, 2018
1 parent 6cc1bd2 commit 3aca8cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions fromscratchtoml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
# Licensed under the GNU General Public License v3.0 - https://www.gnu.org/licenses/gpl-3.0.en.html

import logging
import numpy as np # noqa:F401

logging.basicConfig()
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)

import numpy as np

def use(backend):
global np
if backend == "numpy":
import numpy as np
import numpy as np # noqa:F401
logging.debug("Using numpy backend.")
elif backend == "cupy":
import cupy as np
Expand Down
3 changes: 0 additions & 3 deletions fromscratchtoml/toolbox/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ def binary_visualize(X, y=None, clf=None, coarse=50, xlabel="x", ylabel="y",
The seed value for randomising plot colors.
"""


try:
import cupy
if isinstance(y, cupy.core.core.ndarray):
Expand All @@ -83,7 +81,6 @@ def binary_visualize(X, y=None, clf=None, coarse=50, xlabel="x", ylabel="y",
except ImportError:
pass


np.random.seed(color_seed)

if len(X.shape) != 2 or X.shape[1] != 2:
Expand Down
1 change: 1 addition & 0 deletions fromscratchtoml/toolbox/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from fromscratchtoml import np
import numpy


class Distribution:
"""Objects of this class are the various distributions.
Expand Down

0 comments on commit 3aca8cf

Please sign in to comment.