I’m currently training my first neural network on a larger dataset. I have splitted my training data to several .npy binary files, that each contain batches of 20k training samples. I’m loading the data from the npy files, apply some simple pre-processing operations, and then start to train my network by applying the partial_fit method several times in a loop:
Tag: machine-learning
how to convert generated data into pandas dataframe
after creating the data. it is tuple and after converting tuple into pandas dataframe so i got 9 features (columns) but when i try to insert 9 cols it says. ValueError: Shape of passed values is (2, 1), indices imply (2, 9) Basically i wanna generate data and convert it into pandas dataframe but could not get to it. error
Stylegan2-ada tfrecords – ValueError: axes don’t match array, images will work one run and not work the next
I’m working on training a GAN through Google Colab with a dataset of photos I scraped from Wikiart and converted to 1024×1024, but keep getting this error when creating the tfrecords: I set it to print out what files it would stall on, and began taking those out of the data set; but what it stalls on seems completely random.
How can I convert columns of string in dataset to int?
Some of the data in the dataset are in string format and I should map all of them to the numeric form. I want to convert string data in some columns in the dataset to int int to become usable in the knn method. I wrote this code but It has this error. How can I fix it? thank you
multi-threading, what is wrong with my code
I was trying to make faster my frames in opencv, it was so slow using it normal, so I decided to ask it here Make faster videocapture opencv the answer was to use multi threading to make it faster, so I code it like this it give me no errors, but compared to my other code that is on the
How to add two separate layers on the top of one layer using pytorch?
I want to add two separate layers on the top of one layer (or a pre-trained model) Is that possible for me to do using Pytorch? Answer Yes, when defining your model’s forward function, you can specify how the inputs should be passed through the layers. For example: Where forward is a member of MyNet: Training The model should be
VGG16 Network for Multiple Inputs Images
I am trying to use the VGG16 network for multiple input images. Training this model using a simple CNN with 2 inputs gave me an acc. of about 50 %, which is why I wanted to try it using an established model like VGG16. Here is what I have tried out: I get this error while calling the Model function.
tf.train.Checkpoint is restoring or not?
I am running tensorflow 2.4 on colab. I tried to save the model using tf.train.Checkpoint() since it includes model subclassing, but after restoration I saw It didn’t restored any weights of my model. Here are few snippets: When I later restored it I didn’t get any gru weights: I also tried checkpoint.restore(manager.latest_checkpoint) but nothing changed. Is there any thing wrong
Traing a CNN using Prelu activation function
I’m trying to train the model using prelu activation function, but I get the following error I’m using the below-mentioned code, kindly let me know how do I correct it. Answer Your tensor input is wrong. You need to set it up like this way Full working code
How to find the regression line for multiple independent variables?
I’m trying to understand how the Multiple Line Regression works in code for machine learning. The issue I’m having is that I don’t get how to set up my regression line properly or if my coefficients are correct. So I guess I can divide my thoughts into three questions. Is my method of finding the coefficients for the regression line