May-23-2019, 07:10 PM
I have such a text file:
breast-cancer
I want to create a histogram and any other graph. Bu I have a problem. I wrote this:
breast-cancer
I want to create a histogram and any other graph. Bu I have a problem. I wrote this:
import matplotlib.pyplot as plt import numpy as np from sklearn.datasets import load_svmlight_file X, y = load_svmlight_file('breast-cancer.txt') plt.hist(X,y)And I get:
Error:ValueError: `bins` must increase monotonically, when an array