All Questions
7 questions
4
votes
1
answer
109
views
Dataframe transformation to numpy ndarray takes ages to complete
I would like to transform my dataframe into an array of fixed-sized chunks from each unique segment. Specifically, I would like to transform the ...
3
votes
1
answer
75
views
Generating multiple new arrays using numpy
Say I have the following two different states:
state1 = [0, 1, 0, 1, 1]
state2 = [1, 1, 0, 0, 1]
And I want to generate n number of new states by only changing the ...
3
votes
2
answers
537
views
Multiplying numpy arrays
I have written a function to multiply two numpy arrays.
...
6
votes
1
answer
354
views
Applying gaussian blur on RGBA images
I designed the code and it works quite well for images of lower res. However my program takes a lot of time and ram to display higher res images (occupies 2GB RAM for 4k images and takes 20 minutes). ...
3
votes
2
answers
1k
views
3D metrics for segmentation evaluation
I am new to programming and I am trying to develop a machine learning approach for image segmentation (https://en.wikipedia.org/wiki/Image_segmentation) and here I want to evaluate the predicted (...
1
vote
1
answer
926
views
Searching for column-indices of a multi-dimensional array that match multiple conditions (one condition per row)
I have written a script that I believe works and covers all edge-cases. I am curious about ways to improve upon speed. While the given example below covers a multi-dimensional array of ...
4
votes
0
answers
223
views
Finding where column slices of elements in multi-dimensional array are equal
Skippable Intro:
I have a dataset that corresponds to an observed time-series. The dataset is organized into a dictionary - which contains an array of years, an array of months, an array of days, an ...