User Profile

Collapse

Profile Sidebar

Collapse
JupyterPS1
JupyterPS1
Last Activity: Jan 7 '21, 08:40 PM
Joined: Jan 7 '21
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • It's not in line 7 - BUT when you run the code you get the following message:

    -> 1555 if Z.ndim != 2:
    1556 raise ValueError("Arg ument Z must be 2-dimensional.")
    1557 if np.any(np.isnan (Z)):
    See more | Go to post

    Leave a comment:


  • In line 7 - 'list' object has no attribute 'ndim'

    import numpy as np
    from numpy import arange
    from mpl_toolkits.mp lot3d.axes3d import Axes3D
    import matplotlib.pypl ot as plt

    def map2(fn, A, B):
    """Map fn to corresponding elements of 2D arrays A and B."""
    return[list(map(fn, Arow, Brow)) for (Arow, Brow) in zip(A, B)]

    def score(A, B):
    """Compute the outcome of the race for...
    See more | Go to post
No activity results to display
Show More
Working...