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

修改了writer里面所有注释numpy.ndarray变为np.ndarray #877

Merged
merged 1 commit into from
Dec 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions visualdl/writer/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def add_image(self, tag, img, step, walltime=None, dataformats="HWC"):

Args:
tag (string): Data identifier
img (numpy.ndarray): Image represented by a numpy.array
img (np.ndarray): Image represented by a numpy.array
step (int): Step of image
walltime (int): Wall time of image
dataformats (string): Format of image
Expand Down Expand Up @@ -266,7 +266,7 @@ def add_audio(self,

Args:
tag (string): Data identifier
audio (numpy.ndarray or list): audio represented by a numpy.array
audio (np.ndarray or list): audio represented by a numpy.array
step (int): Step of audio
sample_rate (int): Sample rate of audio
walltime (int): Wall time of audio
Expand Down Expand Up @@ -312,7 +312,7 @@ def add_histogram(self,

Args:
tag (string): Data identifier
value (numpy.ndarray or list): value represented by a numpy.array or list
value (np.ndarray or list): value represented by a numpy.array or list
step (int): Step of histogram
walltime (int): Wall time of audio
buckets (int): Number of buckets, default is 10
Expand Down Expand Up @@ -349,8 +349,8 @@ def add_pr_curve(self,

Args:
tag (string): Data identifier
labels (numpy.ndarray or list): Binary labels for each element.
predictions (numpy.ndarray or list): The probability that an element
labels (np.ndarray or list): Binary labels for each element.
predictions (np.ndarray or list): The probability that an element
be classified as true.
step (int): Step of pr curve.
weights (float): Multiple of data to display on the curve.
Expand Down