Skip to main content

Questions tagged [neural-network]

Artificial neural networks (ANN), are composed of 'neurons' - programming constructs that mimic the properties of biological neurons. A set of weighted connections between the neurons allows information to propagate through the network to solve artificial intelligence problems without the network designer having had a model of a real system.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

Multiple kernel SVM is equal to one ANN - Is Kernel SVM better that one ANN?

I'm comparing multiple Kernel SVM with one neural network, e.g one ANN with one hidden layer. I have succesfully trained a neural network by using multiple Kernel ...
euraad's user avatar
  • 115
0 votes
1 answer
166 views

Basic neural network to solve ordinary differential equation

There is a related question in the forum: Solving an ODE using neural networks (via Tensorflow) But I am trying an idea to solve ODE by considering that the solution would be a polynomial and the ...
MSKB's user avatar
  • 101
0 votes
1 answer
35 views

Learning the gradient descent stepsize with RL [closed]

Problem statement: I've been working on a project to accelerate the convergence of gradient descent using reinforcement learning (RL). I want to learn a policy that can map the current state of ...
CodeGuy's user avatar
0 votes
1 answer
41 views

Where can I get 5000+ classified images of zoo animals? [closed]

please help! We are college students doing this for a project. The project is using neural networks and want to build a model that takes in an input of a colored image of an animal and outputs the ...
user90061's user avatar
1 vote
1 answer
58 views

How to balance labeled datas and then carry out execution with a certain ratio?

I'm building a binary classification model using a neural network, with python and the libraries tensorflow and keras. For that I have an unequal amount of labeled data: Around 2'000'000 labeled with <...
user155518's user avatar
0 votes
0 answers
867 views

How to recognize if a model is overfitting?

I'm trying to develop a real-time YOLOv8 model for detecting falls in a home environment. The dataset I used consists of approximately 1100 images labeled as "fall" and "nofall," ...
Melissa Proietti's user avatar
0 votes
0 answers
8 views

How to label a dataset of text pairs to use it as a universal one for calculating the precision@k metric for different models?

I am facing a semantic search problem. I am fine tuning different NLU models and i want to use precision@k as my main metric. Is it possible to label a dataset of text pairs to use it as a universal ...
Ir8_mind's user avatar
  • 183
0 votes
2 answers
297 views

How can I use a model trained with batches to make predictions with single sample?

I'm training a PyTorch model with batches of 128 images, and after going through multiple convolutions, they're flattened (with .flatten) before being passed to a ...
Jake's user avatar
  • 1
1 vote
2 answers
568 views

Why not using segmentation architectures for object detection?

Current object detection architectures like Faster-RCNN and YOLO seem to be overcomplicated in comparsion with segmentation architectures like Unet. So, why can't we just draw some rectangles around ...
Eugene's user avatar
  • 13
0 votes
0 answers
50 views

In MLP, multiple classes, using batches, For update weights, Would I have to calculate the accumulated error(of all samples) of each output neuron?

In Multilayer Perceptron neural networks, I know that there are two types of training: online training, and batch training, which consists of dividing the samples and updating the weights using the ...
will The J's user avatar
0 votes
0 answers
229 views

Empty Confusion Matrix and Zero Precision/F-score

Could you please say why I'm getting this warning while doing a binary classification using Artificial Neural Networks? The data are colored images. ...
Totoro's user avatar
  • 101
2 votes
1 answer
63 views

What does it mean if a neural networks starts overfitting more after applying regularisation techniques

Background I am building a CNN to categorize cytometric cell data into healthy and diseased groups. The architecture looks as follows: 3 Convolutional layers followed by average pooling followed by 3 ...
Viktor VN's user avatar
  • 121
0 votes
0 answers
15 views

How to find distance between class representation's decision boundaries for a neural network?

I have a 5 layer DNN with data containing 10 classes. To study how the model works, one thing among many I am looking at is the class wise representations. I can extract the representations of each ...
user17420392's user avatar
1 vote
1 answer
291 views

Whats the advantage of single target neural network over multi target neural network?

So right now I have made 2 neural networks to predict x and y coordinates separately. One for x, and one for y. I'm looking for a reason to backup my assignment. I have search for this and most of the ...
Secondary Juggernaut's user avatar
0 votes
0 answers
178 views

Runtime Error: one of the variables needed for gradient computation has been modified by an inplace operation:

I have the following code for a reinforcement learning using proximal policy optimization. It gives the following run time error. ...
heyula's user avatar
  • 37
0 votes
1 answer
46 views

Implementing Dropout in Keras

I think I am not conceptually understanding "Dropout" in neural networks. I was under the assumption that a keep rate of 0.8 would set 20% of all the neurons to 0 for each training example. ...
Yash Mali's user avatar
0 votes
1 answer
53 views

Why the training accuracy stays high but validation accuracy does not change?

I have a binary classification problem. I get ROI mammogram images and then apply a decomposition algorithm and as output I get 5 images which summation of them results in the original image. Now, ...
Nmgh's user avatar
  • 1
0 votes
2 answers
507 views

Best model for regression in this case?

I am doing some modeling to predict a variable of interest given a big set of features (500) for which I expect a considerable amount of interactions happening at least among some of them. I first ...
Mirko's user avatar
  • 111
0 votes
2 answers
113 views

Is improving a Neural Network really just "trial and error"?

After asking on StackOverflow, I was redirected here, so I'm reposting this question. I am a PhD student in Computational Physics and I've started to study a bit of Neural Networks, and decided to try ...
Mauro Giliberti's user avatar
1 vote
1 answer
83 views

Minimizing error in cosine similarity

Presume I have a vector space, and I am attempting to compress it into a latent vector space, while minimizing error in cosine similarity between entries. Suppose that I know the actual cosine ...
Krystal Fox's user avatar
0 votes
0 answers
22 views

Why isn't the validation data loss close to the test data loss?

First I set aside about 15% of my data as test data. Then, I used tensorflow.keras to create a relatively simple neural net model. Then I set the model.fit() parameter validation_split=0.2, so 20% of ...
Alex's user avatar
  • 1
0 votes
0 answers
25 views

Is there a Tensorflow built-in function to create a matrix from a single-layered feedforward neural network without activation functions?

In Tensorflow, I implemented a simple single-layer feedforward neural network with N inputs and N outputs without activation functions and biases. Simply, it is just a N-by-N matrix. Question: is ...
H.C.'s user avatar
  • 1
2 votes
1 answer
133 views

Why the test accuracy showing some odd behaviour in comparison to train accuracy?

I am currently training an ANN using Sequential(a class from Keras API within tensorflow), and I am optimizing the model's architecture and came across something I have not seen before. The graph of ...
Aach_copro's user avatar
1 vote
1 answer
241 views

Holding batch size constant, will a bigger dataset consume more GPU memory?

If you hold (mini) batch size constant (as well as everything else) but increase the number of examples (and therefore the number of training iterations), should you expect a (significant) increase in ...
ubadub's user avatar
  • 111
1 vote
1 answer
111 views

Neural Net not able to learn simple analytical equation

I am currently making my first attempts with Pytorch. I am trying to solve a simple equation with a neural net. Analytically solved, the result of my neural net shall look like this: $$ y = \frac{x_5}{...
Ripleys's user avatar
  • 11
1 vote
1 answer
220 views

activation=tf.keras.activations.relu vs activation='relu'

Both models are for binary classification problems Model 1 ...
Justin Jonany's user avatar
0 votes
1 answer
101 views

Confusion with tensorflow's Sequential Dense Layers

I'm working on a regression probem using Tensorflow, and have created two models with slight differences in their first Dense layer. The Models ...
Justin Jonany's user avatar
0 votes
1 answer
115 views

Neural Network for binary classification not working

I have made a neural network that was working correctly as a multi-class classifier, but after changing the loss and the activation function, plus the output layer to just 1 neuron, it is not working ...
alex martinez's user avatar
0 votes
0 answers
36 views

Should non-trainable functions be part of a nn model?

Some explanation for the somewhat obscure title: I want to train a model which can produce images given some input data. However, actually I want the model to learn some abstract representation which ...
Roland Deschain's user avatar
0 votes
1 answer
49 views

Reinforcement learning

I am working on a sentiment analysis project. I used BERT model for training but lack of data it gives huge overfitting. So after i moved LLM approach to do that. Using LLM finally i got good results....
Sandun Tharaka's user avatar
1 vote
0 answers
32 views

Determining the start and stop of vehicle movement by GPS

There is a large fleet, slightly more than a million vehicles, which is constantly growing. Each vehicle sends GPS coordinates to the server, as well as events (ignition is on, door is open, parking ...
Abraham Lincoln's user avatar
1 vote
0 answers
24 views

What is a proper activation function with simulated-annealing trainer for neural network?

I'm developing a gpu-accelerated simulated annealing based neural network trainer library. Currently its stuck on how to converge on "array sorting by neural network 3:10:20:10:3 topology". ...
huseyin tugrul buyukisik's user avatar
1 vote
0 answers
36 views

ML paper reproducibility

How can I reproduce results in an ML paper if I don't have the identical resources to train the models as in the paper ? (in my case I only have a laptop spec NVidia gpu and in most of the papers I ...
okm02's user avatar
  • 11
1 vote
1 answer
49 views

LSTM Training Interpretation

I have an LSTM and have the following chart showing training validation performance by epoch: Could someone explain? How can my validation performance be better than my training performance in ...
Windstorm1981's user avatar
0 votes
0 answers
49 views

Using Embedding For Regularization

Is using embeddings for regularization a valid practice? My reasoning for that is that encoding training/tests datasets into smaller vectors would allow a smaller network with fewer parameters and ...
Adenilson Arcanjo's user avatar
0 votes
0 answers
68 views

How to handle different sequence sizes during training and production use?

My training data consists of sequences that are mode of tokens. The objective of my model is to predict score for each token in the input sequence. This score depends on the particular token itself, ...
Druudik's user avatar
  • 101
1 vote
0 answers
21 views

Are "textbook backpropagation" still relevant?

The above backpropagation algorithm is taken from Shalev Shwartz and Ben-David's textbook: Understanding Machine Learning. This algorithm is described in the same way as the one in Mostafa's textbook, ...
Fraïssé's user avatar
  • 119
1 vote
0 answers
35 views

Convolutional networks: remove useless features?

I'm new to convolutional neural networks and have two related questions: If all the filters would have the same weights initially, they would all detect the very same feature - so it would be useless ...
D.R.'s user avatar
  • 111
1 vote
0 answers
125 views

Can we show only results of some epochs in tqdm?

I am training a NN and use tqdm for showing the results. However, the bad thing is that it shows the results for every epoch. This is too many as I want to train NN for atleast 500 epochs. Is there ...
Ali.A's user avatar
  • 103
1 vote
2 answers
84 views

I build my first neural network! What's next?

For an assignment we are given a dataset and we need to build a neural network to make new predictions. Personal milestone; I built my first neural network! I followed the following steps on my own ...
Tim's user avatar
  • 111
0 votes
2 answers
403 views

How to improve accuracy on a single class out of 3 classes in model

I am training a classification model with 3 classes using a deep neural network. The classes have been resampled and balanced. I have around 600000 samples... equally distributed. The dataset is also ...
Th3Nic3Guy's user avatar
0 votes
3 answers
243 views

Reduce false positives having imbalanced data

I'm using a DNN-48 having the following scenario: Features: 8 (48 at the end because I generate conditional sequences of 6 elements each) Classes: Y=0 (90%), Y=1 (10%) Precision and recall are good ...
Gabriel's user avatar
0 votes
1 answer
61 views

This simple python Feed forward Neural Network isn't learning. What am I doing wrong?

The backpropagation procedure is taken from the approach outlined in here. Here is the code, commented: ...
blundered_bishop's user avatar
0 votes
0 answers
251 views

Training loss is much higher than validation loss

I am trying to train a neural network with 2 hidden layers to perform a multi class classification of 3 different classes. There is a huge imbalance to the classes, with the distribution being around ...
joseph wong's user avatar
0 votes
0 answers
83 views

Why I am getting error in dataloader in defining a NN?

I am trying to write a NN. However I am getting error. Here is my Code: ...
Ali.A's user avatar
  • 103
0 votes
1 answer
444 views

Appropriate input size for nn.Embedding

I’m quite new to using Pytorch and deep learning. What size of unique categories of a categorical variable is appropriate for applying the nn.Embedding ideally (best practices)? for example, if a ...
Любовь Пономарева's user avatar
1 vote
0 answers
141 views

Why do I keep on getting ResourceExhaustedError while training on video data using CONV3D on tensorflow?

I'm encountering a memory allocation problem while training a deep learning model on my computer, which has a Core i9 10th Gen CPU, 64 GB of RAM, and an NVIDIA GTX 1660 Super with 6GB of VRAM. Despite ...
Ali Subhan's user avatar
1 vote
1 answer
74 views

Why my validation loss and accuracy decays over epochs?

Im trying to build 2 simple networks with cleaned dataset for tweets sentiment classification(0/1): one with all dense layers(binary bag of words) another with RNN layer(embedding layer). But it both ...
emily 's user avatar
  • 35
0 votes
1 answer
84 views

Tensorflow diagram for attention mechanism

I was reading the tutorial from tensorflow on the transformer model, however, when they explain the transformer model, they display such a picture : which I don't understand. What do the ingoing ...
edamondo's user avatar
  • 101
0 votes
1 answer
37 views

What Model to Choose for a NN with a Very Wide Output Layer?

The input of my neural network consists of 20 features, whereas the output consists of 20,000 of them (predicting a "quantum classical shadow" based on a few parameters: the rotation angle ...
avpol's user avatar
  • 21

1 2 3
4
5
87