def returnThresholdedDataValues(data, weight = 0):
ThresholdData = np.copy(data)
low_values_indices = ThresholdData < weight # Where values are low
ThresholdData[low_values_indices] = 0
return nx.from_numpy_matrix(ThresholdData)
评论列表
文章目录