This is for a machine learning program. I am working with a dataset that has a csv which contains an id, for a .tif image in another directory, and a label, 1 or 0. There are 220,025 rows in the csv. I have loaded this csv as a pandas dataframe. Currently in the dataframe, there are 220,025 rows, with 130,908
Tag: machine-learning
Keras my_layer.output returning KerasTensor object instead of Tensor object (in custom loss function)
I’m trying to build a custom loss function in Keras v2.4.3: (as explained in this answer) But I think it’s behaving much different than expected (perhaps because of my Keras version?), I’m getting this error: And I think that’s because encoder.get_layer(‘mean’).output is returning a KerasTensor object instead of a tf.Tensor object (as the other answer indicates). What am I doing
ValueError when using vae.fit in Keras
I am creating a vae model over the mnist dataset with hopes of plotting the loss function against the epochs. However I am experiencing some issues and was unable to find a solution online. During my imports I have the following imports (just to give some context to the code): I have also created a function called bn for my
SGDRegressor() constantly not increasing validation performance
The model fit of my SGDRegressor wont increase or decrease its performance on the validation set (test) after around 20’000 training records. Even if I try to switch penalty, early_stopping (True/False) or alpha,eta0 to extremely high or low levels, there is no change in the behavior of the “stuck” validation score test. I used StandardScaler and shuffled the data for
Why does sklearn MinMaxScaler() return an out-of-range value instead of an error?
When I use sklearn MinMaxScaler(), I noticed some interesting behavior which shown in the following code. I noticed that when I transform the test_data with fitted MinMaxScaler(), it returns values beyond the defined range (0 – 1). Now, I intentionally make the test_data to be outside the value range of “data”, to test the output of MinMaxScaler(). I thought that
ML model not loading full batch
I tried to build a machine learning model using CIFAR 10 dataset, but I am encountering a bug that my model stops training past i = 78 (looped 78 times, see code for more). Sorry, I had to post the entire code because I cannot spot the mistake I made. Moreover, since I could not make it work, I tried
Ensemble with voting in deep learning models
I am working on a multimodal deep learning classifiers with RGB-D images. i have developed two seperate models for each case. The first one is a LSTM with CNN in the begining for the RGB images with shape (3046,200,200,3) , and the second one is an LSTM for the depth images with shape (3046,200,200) . I’m trying to figure out
In an image recognition task how to deal with unexpected images [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about programming within the scope defined in the help center. Closed 2 years ago. Improve this question I’m trying to develop an image classifier with Keras, I followed the tutorial on the page: https://www.tensorflow.org/tutorials/images/classification?hl=en Still using the flower
How get the predicted label from a Convolution Neural Net in image classification
I have built a CIFAR-10 image classification model with Convolution Neural Net or CNNs. The model fully completed and has got around 59% accuracy, but my problem is that how to get the predicted label from the model. it can predict these classes(10): What I’m trying to say is that, for example we give the model a image of a
How to train my own image dataset for text recognition and create the trained model for use in OCR [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question I created image data set including 62992 images with 128x128px resolution that contains characters, numbers and symbols with four kinds