Linked Questions

12 votes
2 answers
54k views

I am working with image processing in python and I want to output a variable, right now the variable b is a numpy array with shape (200,200). When I do print b all I see is: array([[ 0., 0., 0., ......
user2275931's user avatar
15 votes
1 answer
20k views

As shown in the screenshot a 2D numpy array is truncated for printing purposes. I would like to have all elements displayed. Is there an option setting to enable that behavior?
WestCoastProjects's user avatar
0 votes
2 answers
8k views

I exported a matrix of 127x127 values as a txt, but the output appears as answer:[[ 44. 1. 0. ..., 12. 13. 2.] [ 51. 7. 0. ..., 5. 14. 4.] [ 0. 1. 4. ..., ...
user2967127's user avatar
0 votes
2 answers
3k views

I'm converting a list into a NumPy array: a = np.array(l) # Where l is the list of data return a But whenever I go to print this array: print (a) I only get a slice of the array: [-0.00750732 -0....
Phorce's user avatar
  • 4,692
0 votes
1 answer
3k views

I have a function to calculate the average vector for each name which is made of many words, this function is returning numpy.ndarray with shape of (100,). The resulting vector is as the following: [ ...
JarochoEngineer's user avatar
1 vote
0 answers
3k views

import pandas as pd # Importing the dataset dataset = pd.read_csv('Data.csv') X = dataset.iloc[:, :-1].values #it shows output X Out[3]: array([['France', 44.0, 72000.0], ['Spain', ...
amit yadav's user avatar
0 votes
2 answers
2k views

I am building a image predicting model. To get the better picture of the accuracy I am printing a confusion matrix using scikit learn. When I was using 30 classes, the confusion matrix was ...
Zaki Siddiqui's user avatar
0 votes
2 answers
1k views

I have a simple thing to do, read some vectors and write them in a file. The vectors are 1024 dimensional. for emb in src: print(len(emb[0].detach().cpu().numpy())) #--> prints 1024!...
tstseby's user avatar
  • 1,339
1 vote
0 answers
1k views

I am dealing with rather large arrays and when I debug, I need to inspect them. The problem is though that PyCharm only shows a minority of all values within the array. For instance, if I debug my ...
SmCaterpillar's user avatar
0 votes
0 answers
652 views

I have a dataframe and I want to print all unique elements of a column. So I use df.mycolumn.unique(), but I get a truncated list: [SCO, ENG, SPA, NED, ..., AUT, FRA, GER] How to print all elements ...
user12394113's user avatar
0 votes
1 answer
450 views

I have 648 variable in my train data set. Upon coding: print(train.isnull().sum()) python is spiting output for only first 30 and last 30 variables. I want to know results for all the variables.
Raghavendra S's user avatar
1 vote
1 answer
290 views

I used the following program: def show(self): output = str(self.inodes) + " " + str(self.hnodes) + " " + str(self.onodes) + " " + str(self.lr) + " " + ...
AnaCoder's user avatar
-2 votes
1 answer
187 views

The full problem: Generate a NumPy array of 10,000 random numbers (called x) and create a Variable storing the equation y=5x^2−3x+15 import numpy as np data = np.random.randint(1000, size=10000) x =...
Andrew DeNike's user avatar
0 votes
1 answer
146 views

I've been manipulating some data and I tried to plot it, with results that didn't make sense. dif_fl is an array with the dimension 4500, and dif_num is a float. derivative = dif_fl/dif_num with open(...
josha37's user avatar
  • 19
1 vote
0 answers
109 views

I'm trying to convert a large image matrix (1280,720,3) in numpy ndarray format into a single large readable string, then save this string into .txt file. When I do this, the string gets truncated and ...
John Doenut's user avatar

15 30 50 per page