Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Segmentation fault (core dumped)
Post: Segmentation fault (core dumped)

Any idea what is wrong with this code here and gives me Segmentation fault (core dumped)??? I got the code from here: https://docs.opencv.org/3.0-beta/doc/py_...homography This is the code: import n...
hobbyist General Coding Help 1 187 Jun-07-2021, 11:27 AM
    Thread: Calculating accuracy on RNN-LSTM model
Post: Calculating accuracy on RNN-LSTM model

Hello, How can I calculate the accuracy in a RNN-LSTM neural network? Also when testing my model with either epoch = 1 , or epoch = 40 the result of the loss (0,01...) is approximately the same and I...
hobbyist General Coding Help 0 329 May-14-2021, 08:55 AM
    Thread: ValueError: x and y must have same first dimension, but have shapes (11,) and (15406,
Post: RE: ValueError: x and y must have same first dimen...

@buran: I know that and I appreciate it! Thanks!
hobbyist General Coding Help 17 1,812 Mar-22-2021, 10:27 AM
    Thread: ValueError: x and y must have same first dimension, but have shapes (11,) and (15406,
Post: RE: ValueError: x and y must have same first dimen...

Ok, I tried to use the rationale of your second example code that you have posted on post #9. And I use this command: time = mdates.drange(dt.datetime(2020, 6, 24, 0, 0, 0), dt.datetime(2020, 10, 9, ...
hobbyist General Coding Help 17 1,812 Mar-21-2021, 09:05 PM
    Thread: ValueError: x and y must have same first dimension, but have shapes (11,) and (15406,
Post: RE: ValueError: x and y must have same first dimen...

Thanks a lot for your help, I really appreciate it!! Ok, so here is what I get by using your code + xticks from this: https://stackoverflow.com/questions/1260...matplotlib link you have posted in a pr...
hobbyist General Coding Help 17 1,812 Mar-17-2021, 08:35 PM
    Thread: ValueError: x and y must have same first dimension, but have shapes (11,) and (15406,
Post: RE: ValueError: x and y must have same first dimen...

My fault! I didn't see there is an excel file attached...!
hobbyist General Coding Help 17 1,812 Mar-16-2021, 11:01 PM
    Thread: ValueError: x and y must have same first dimension, but have shapes (11,) and (15406,
Post: RE: ValueError: x and y must have same first dimen...

I ran the first (of the two) piece of code, and I got this error. Instead of df I use dataframe command. Error: return object.__getattribute__(self, name) AttributeError: 'DataFrame' object has n...
hobbyist General Coding Help 17 1,812 Mar-16-2021, 01:52 PM
    Thread: ValueError: x and y must have same first dimension, but have shapes (11,) and (15406,
Post: RE: ValueError: x and y must have same first dimen...

So, I should somehow transform the excel column of the timestamps to an array? np.array?
hobbyist General Coding Help 17 1,812 Mar-16-2021, 09:58 AM
    Thread: ValueError: x and y must have same first dimension, but have shapes (11,) and (15406,
Post: RE: ValueError: x and y must have same first dimen...

So, I tried a mix of the code you posted above + stackoverflow code from your link. This is what I am trying: time = mdates.drange(dt.datetime(2021, 3, 1, 0, 0, 0), dt.datetime(2021, 3, 3, 1, 0, 0), ...
hobbyist General Coding Help 17 1,812 Mar-15-2021, 10:43 PM
    Thread: ValueError: x and y must have same first dimension, but have shapes (11,) and (15406,
Post: RE: ValueError: x and y must have same first dimen...

Ok, so I have an excel with 15000 measurements, (1st column:timestamps, 2nd column values). I want to represent them to a plot, where on the y-axis will be the measurements (the graph) and on the x-ax...
hobbyist General Coding Help 17 1,812 Mar-15-2021, 05:19 PM
    Thread: ValueError: x and y must have same first dimension, but have shapes (11,) and (15406,
Post: ValueError: x and y must have same first dimension...

Hello, any idea how can I fix this error? Error:ValueError: x and y must have same first dimension, but have shapes (11,) and (15406, 1)I am trying to plot... I tried also to convert the x values and...
hobbyist General Coding Help 17 1,812 Mar-14-2021, 05:45 PM
    Thread: Printing x values from an csv file
Post: RE: Printing x values from an csv file

In this code: import pandas as pd import matplotlib.pyplot as plt weather_data = pd.read_csv("seattleWeather.csv") fig = plt.figure() plt.plot(weather_data['DATE'], weather_data['PRCP']) fig.autofm...
hobbyist General Coding Help 7 985 Mar-10-2021, 02:00 PM
    Thread: How to append a value to specific excel cell using openpyxl
Post: How to append a value to specific excel cell using...

So, I have a code that inserts values to cells on excel sheet. But it does not work. I have a for-loop for 100 values and stores only the 100th, in the 100th cell (columns = 1, 2, 3). I want to test t...
hobbyist General Coding Help 0 560 Mar-05-2021, 07:14 PM
    Thread: Printing x values from an csv file
Post: RE: Printing x values from an csv file

The dataset, that I use, is similar the above and is consisted of 10000 rows of those measurements. The guy in the post above inserts the data inside the code. I need to do the same as the guy in the ...
hobbyist General Coding Help 7 985 Mar-03-2021, 04:56 PM
    Thread: Printing x values from an csv file
Post: RE: Printing x values from an csv file

Ok, I need to do something like this, without the need to insert in the code the values of the excel. Just to read the excel and plot the data on x-axis, y-axis every 50 measurements...Any idea? The c...
hobbyist General Coding Help 7 985 Mar-01-2021, 04:56 PM
    Thread: Circular import dependency
Post: RE: Circular import dependency

@buran: Can you please give me a code example in order to understand it?
hobbyist General Coding Help 9 591 Feb-23-2021, 11:29 AM
    Thread: Circular import dependency
Post: RE: Circular import dependency

@Gribouillis: I haven't run correctly the code yet, I try to change every line to be consistent with not being Circular import dependent, and I go line-by-line, following this post here: https://stack...
hobbyist General Coding Help 9 591 Feb-23-2021, 11:08 AM
    Thread: Circular import dependency
Post: RE: Circular import dependency

No, my fault. One of the issues that I try to solve is this line: from PyQt5 import Qt as qtThe other lines, such as (there are many lines I try to fix, with keras or not) these: from PyQt5.QwIdgets...
hobbyist General Coding Help 9 591 Feb-23-2021, 10:42 AM
    Thread: Circular import dependency
Post: Circular import dependency

Hello, I got this message when trying to run my code: Error:ImportError: cannot import name 'convert_kernel' from partially initialized module 'keras.utils.conv_utils' (most likely due to a circular i...
hobbyist General Coding Help 9 591 Feb-23-2021, 09:45 AM
    Thread: NameError: name 'self' is not defined
Post: RE: NameError: name 'self' is not defined

Ok...
hobbyist GUI 29 2,272 Feb-16-2021, 08:21 PM

User Panel Messages

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