I’m new to Python and I’m currently using it for an AI project. I’ve got a dataset on an excel file and I’m trying to train a Bayesian Model in order to make some predictions on the data. I’m using pandas for the dataframe, and pgmpy for the Bayesian Model. I’m able to make the ..
Category : artificial-intelligence
After many research i haven’t find solutions to my problem, so i came here to ask if someone knows a method to group a set of points in different sized groups. For example, i have 40 points and i would like to group them in 8 groups of 6,6,4,3,7,4,5,5 The points should be group in ..
So I’m trying to create a license plate detection program and I have been following a guide for that, (https://github.com/nicknochnack/ANPRwithPython/blob/main/ANPR%20-%20Tutorial.ipynb) however I am currently running into a problem and I have found no working solution online yet. img = cv2.imread(‘image4.jpg’) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) bfilter = cv2.bilateralFilter(gray, 11, 17, 17) #Noise reduction edged = cv2.Canny(bfilter, ..
I started creating this Jarvis AI a couple days ago. I just started python programming. So, when I run the command, the AI says "Hi, how can i help?". Then in the console(or something) It says listening and immediatly exits with code 0. It doesn’t let me talk. (Again, i’m just a begginer so please ..
model = keras.models.Sequential() model.add(keras.layers.Flatten(input_shape=[28, 28])) model.add(keras.layers.Dense(300, activation = "relu")) model.add(keras.layers.Dense(100, activation = "relu")) model.add(keras.layers.Dense(10, activation = "softmax")) This is the code foe a multi class classifier. When I am running my model for the data initialized before I get the following error: ————————————————————————— AttributeError Traceback (most recent call last) <ipython-input-63-dcb0cfb9e75f> in <module> —-> 1 model ..
When I run the following code I get this from tensorflow import keras import numpy as np x = np.ones((1,2,1)) model = keras.models.Sequential() model.add(keras.layers.GRU( units = 1, activation=’tanh’, recurrent_activation=’sigmoid’, use_bias=True, kernel_initializer=’ones’, recurrent_initializer=’ones’,bias_initializer=’zeros’, return_sequences = True)) model.predict(x) I get the output => array([[[0.20482421], [0.34675306]]], dtype=float32) When I do this by hand I am getting 0.55 Assuming ..
I get this dataset which is an EEG signal in CSV format. It organized like this: the last column is a label to focus and unfocus case. (1) means focus. my question is can I convert each row that illustrates one case into an image in this form: I prefer to use Python if I ..
I am currently doing a project for school where I’m supposed to build an AI powered chatbot that reads and writes data from a MySQL Database and uses information in the database to respond to questions from users of the chatbot. Also, the chatbot should be able to store information acquired from conversations with users ..
I am about to start my FYP which is Vision based fall detection system. We are going to predict whether a person has fallen onto the ground and send alarms to the nearest health facilitator for immediate first aid (This is for elderly people who are hospitalized) so my question is where do I start ..
I am doing a project on stock market predictions using an LSTM model. For this, I have taken multiple indicators and adjusted close and close among other values as an input to the model. The main aim is to predict the adjusted close price. I have converted my data between 0 and 1 and fed ..
Recent Comments