training-data

how regroup multiple fit calls on a single epoche with keras

how regroup multiple fit calls on a single epoche with keras Question: I am training a model with kearas on Go of datas, at a point where my computer can’t handle the RAM needed. So I am trying to implement my training as 1 epoche is done with multiple model.fit calls, with somthing like : …

Total answers: 2

Creating a dataset from 2d matrices

Creating a dataset from 2d matrices Question: I have a series of 2d matrices like these two: matrix_1 = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) matrix_2 = np.array([[10, 11, 12], [13, 14, 15], [16, 17, 18]]) And Each matrix has a label like: labels = np.array([0, 1]) I want to make a …

Total answers: 2

separation of training data pyTorch

separation of training data pyTorch Question: I have a code, with it, I wanted to train a neural network and save the finished model as a file. But I am getting an error due to incorrect distribution of training and training data. Can’t understand why: `import torch import torch.nn as nn import torch.optim as optim …

Total answers: 2

target encoding train and test data set with many categorical columns

target encoding train and test data set with many categorical columns Question: I am trying to prepare a training dataset which contains many categorical columns with high cardinality to train a machine learning model. Therefore, I want to target encoding them so that I convert the categorical columns into numerical columns. Label encoding is not …

Total answers: 1

Finding training data for tweets with labels: positive, negative, neutral

Finding training data for tweets with labels: positive, negative, neutral Question: Are there any training data of tweets with labels: positive, negative, neutral as following: "tweet 1" positive "tweet 2" positive "tweet 3" neutral "tweet 4" negative Or in general are there any good site for finding training sets? Asked By: TheRi || Source Answers: …

Total answers: 2

how can i train my CNN model on dataset from a .csv file?

how can i train my CNN model on dataset from a .csv file? Question: I’m a Python beginner and I’m using google Colab to train my first CNN model. I’m blocked on the training part: I know I have to use model.fit() to train the model, but I have no idea on what goes inside …

Total answers: 1

sorting out pictures in training data to train a cnn (alexnet)

sorting out pictures in training data to train a cnn (alexnet) Question: i’m training a alexnet with footage from playing an emulated nes game (f1 racer), to further on let it play the game by itself. now while i’m capturing the training data, the background of the game is changing heavily when it comes to …

Total answers: 1

What is validation data used for in a Keras Sequential model?

What is validation data used for in a Keras Sequential model? Question: My question is simple, what is the validation data passed to model.fit in a Sequential model used for? And, does it affect how the model is trained (normally a validation set is used, for example, to choose hyper-parameters in a model, but I …

Total answers: 4