Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: finding point in m grid
Post: finding point in m grid

I have created mgrid and now I want to find index where the point belongs to. Note, I entertained this solution but obviously need logical and which cannot be added to divmod. I can go into double fo...
jenya56 General Coding Help 0 825 Feb-06-2022, 09:00 PM
    Thread: help creating an array
Post: help creating an array

I have a question. I have a dataframe in format ['x','y','z']. The columns have 100 values in them. I also have created a regular grid in the following manner. extent = x_min, x_max, y_min, y_max = [...
jenya56 General Coding Help 0 842 Feb-05-2022, 05:17 PM
    Thread: hyperparameters do not make a difference in prediction
Post: hyperparameters do not make a difference in predic...

I am doing SVM and I always get the accuracy of 0.84 even after tuning my hyperparameters. Even if I play with scaling of the data, it does not seem to make the difference. Any suggestions? Thanks! ...
jenya56 General Coding Help 0 978 Sep-15-2021, 12:53 PM
    Thread: Found input variables with inconsistent numbers of samples: [1000, 200]
Post: RE: Found input variables with inconsistent number...

(Sep-15-2021, 09:48 AM)ibreeden Wrote: Hi Jenya56, you are not making it easy for us to understand the problem. First: if there is an error message you should post the complete message (in error tag...
jenya56 General Coding Help 2 2,905 Sep-15-2021, 12:48 PM
    Thread: Found input variables with inconsistent numbers of samples: [1000, 200]
Post: Found input variables with inconsistent numbers of...

Hi all, I have this code that compiles all the way to the end. Once the function returns it goes though some accuracy calculations that are not set by me and hence I cannot really debug it. Though it ...
jenya56 General Coding Help 2 2,905 Sep-14-2021, 09:11 PM
    Thread: drawing random over the image
Post: drawing random over the image

I am trying to draw randomly over the image. Image can be either .jpeg file or simple black background. Once the drawing is complete I need to save the drawing as a numpy array. I have found a few sol...
jenya56 General Coding Help 0 928 Sep-02-2021, 12:45 AM
    Thread: regression line: bug
Post: regression line: bug

Hi All, I have the two array bellow. I am doing the simple regression and it gives me trouble. As soon as I add plotting line it gives me error of "SVD did not converge in Linear Least Squares". Thoug...
jenya56 General Coding Help 2 1,898 Jul-01-2020, 12:02 AM
    Thread: rotating and resizing objects
Post: RE: rotating and resizing objects

Hi, my array is 0/1 array. Ellipses are represented by 1s. So it is a bunch of 1s to shape up an ellipse. Thanks
jenya56 General Coding Help 3 2,374 Jul-25-2019, 06:55 PM
    Thread: rotating and resizing objects
Post: rotating and resizing objects

Dear all, I really need help. I have 3d array. Inside that array I have a few objects (ellipsoids) that are represented by the digit 1 (the rest are 0s). I want to rotate these objects by n degrees. A...
jenya56 General Coding Help 3 2,374 Jul-25-2019, 06:09 PM
    Thread: How do i get matplotlib event handling to work?
Post: RE: How do i get matplotlib event handling to work...

Strange. The last code has not worked for me. I am using anaconda. It does plot the figure but when I click on points it does not do anything:(
jenya56 General Coding Help 3 5,333 Apr-24-2019, 06:53 PM
    Thread: How do i get matplotlib event handling to work?
Post: non of the examples are working

I am using the user guide for event_handling and nothing works. For example, the code below (borrowed from the document) just produces the figure and when i click on points nothing happens. Bug???? ht...
jenya56 General Coding Help 3 5,333 Apr-24-2019, 05:31 PM
    Thread: How do i get matplotlib event handling to work?
Post: How do i get matplotlib event handling to work?

Dear all, it is my first time trying to do mping. It appears that code below does not do anything upon clicking on my graph (i.e. it does not go into onclick(event) funciton. Any suggestions? Eventual...
jenya56 General Coding Help 3 5,333 Apr-24-2019, 02:05 PM
    Thread: plotting inside the loop is not working
Post: RE: plotting inside the loop is not working

Hi, I do have tmp defined in one of my functions:)
jenya56 General Coding Help 4 3,094 Apr-10-2019, 01:37 PM
    Thread: plotting inside the loop is not working
Post: plotting inside the loop is not working

Dear all, I have this loop and it appears that it does not plot anything when I do that. When I take it outside of the loop, it works just fine. What gives? Thank you! import time dims = (40,40) for i...
jenya56 General Coding Help 4 3,094 Apr-09-2019, 02:08 PM
    Thread: stiching python and batch
Post: stiching python and batch

Dear all, I have found the way to communicate between python and batch file. Below is my python and batch file. As you can see it is not that pretty as I am passing variables one at the time(variable[...
jenya56 General Coding Help 1 2,532 Apr-02-2019, 02:57 PM
    Thread: subprocess.Popen
Post: RE: subprocess.Popen

Hi, thank you for your reply. I then use batch file and assign my variables which was not a problem with a single variable being passed in. Inside my batch, I did it like this: @echo off set arg1=%1 s...
jenya56 General Coding Help 3 3,381 Apr-01-2019, 05:07 PM
    Thread: subprocess.Popen
Post: subprocess.Popen

I was wondering if any of you know of the way to pass multiple parameters into subprocess.Popen. In the code below, I pass str(my_var). Is there a way to do something like str(my_var_1), str(my_var_2)...
jenya56 General Coding Help 3 3,381 Apr-01-2019, 04:35 PM
    Thread: euclidean distance
Post: RE: euclidean distance

Does cdist return a single number? Because I thought it would return a matrix? Thank you!
jenya56 General Coding Help 3 2,824 Mar-29-2019, 02:45 AM
    Thread: euclidean distance
Post: euclidean distance

Dear all, I have two 2D arrays (size nxm) and I want to calculate the Euclidean distance between them. Meaning that the distance will be a single number whereas my arrays are nxm. Is there a quick way...
jenya56 General Coding Help 3 2,824 Mar-29-2019, 01:09 AM
    Thread: removing tabs from input text
Post: removing tabs from input text

Hi, was wondering if you could help. My file f contains some tabs and I want to remove them. I have a code below that does read text line by line but does not remove tabs. I have something like: 0 0 1...
jenya56 General Coding Help 3 3,241 Mar-27-2019, 10:55 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020