Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion tensorboard/plugins/npmi/csv_to_plugin_data_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def convert_file(file_path):
for row in csv_reader:
annotations.append(row[0])
values.append(row[1:])
values = np.array(values).astype(np.float)
values = np.array(values).astype(float)

writer = tf.summary.create_file_writer(os.path.dirname(file_path))
with writer.as_default():
Expand Down
2 changes: 1 addition & 1 deletion tensorboard/plugins/pr_curve/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def pb(

# Compute bins of true positives and false positives.
bucket_indices = np.int32(np.floor(predictions * (num_thresholds - 1)))
float_labels = labels.astype(np.float)
float_labels = labels.astype(float)
histogram_range = (0, num_thresholds - 1)
tp_buckets, _ = np.histogram(
bucket_indices,
Expand Down