19,963 questions
Best practices
0
votes
14
replies
154
views
How to go from theoretical Concept of Layers (Input, Hidden and Output) of AI Neural Network and Write in CODE
I am currently working on a project to create a working Ai Neural Network in C++, I have watched and read many articles on Layers concept but I still don't know from where to start with the layers ...
Advice
1
vote
6
replies
145
views
Ai Neural Network | C++ | Project Guidance --- Matrix Part
I’m an undergraduate CS student working on a final project due in about a month, and I’m trying to design and implement a C++-based AI Neural Network Simulator integrated into a small game environment....
Best practices
0
votes
1
replies
87
views
How to design similarity search for mechanical products
I have a website which shows different products about machines and its different parts. There are 10000 of product pages, and want to build a functionality which shows similar product pages and ...
Advice
0
votes
2
replies
117
views
How initializing weights with large value causes vanishing gradient problem in neural network
I was watching this tutorial on weight initialization in neural network, and im not able to understand this statement:
In case of Tanh, Sigmoid activation, If we initialize weights with large values (...
2
votes
1
answer
69
views
PyTorch ValueError: optimizer got an empty parameter list when building a Logistic Regression Model
I tried making a logistic regression model using nn.Module
class LogisticRegressionModel(nn.Module):
def __init__(self, input_dim= None) -> None:
super().__init__()
if input_dim ...
1
vote
0
answers
72
views
Why does BatchNorm1d fail with batch size 1 in training mode?
I am training a small PyTorch model and want to use nn.BatchNorm1d.
When the batch size is 1 and the model is in training mode, I get the error below;
ValueError: Expected more than 1 value per ...
1
vote
1
answer
79
views
GluonTS DeepAREstimator fails to load checkpoint in PyTorch 2.6
I am currently working on a project where I have to use GluonTS (the DeepAREstimator and DLinearEstimator). At the beginning it worked well. But now, even when I use the example code from the GluonTS ...
0
votes
0
answers
82
views
opencv::ml::ANN_MLP: the dimension of its weight matrices does not align with model settings
cv::Ptr<cv::ml::ANN_MLP> mlp = cv::ml::ANN_MLP::create();
int inputlayerSize = imagesData[0].total(); //28*28=784
int hiddenLayerSize = 100;
int outputLayerSize = 10;
cv::Mat ...
5
votes
1
answer
108
views
Is my noise function differentially private? Is flattening then reshaping correct? Or it breaks the image?
The main function is apply_noise which applies the noise using the laplacian distribution, the scale of the distribution is b which is calculated with an epsilon value and the sensitivity value that ...
3
votes
1
answer
91
views
Why does this PyTorch model produce non-identical outputs on identical inputs even with fixed random seeds?
I am running inference on a trained PyTorch model using the same input tensor, fixed random seeds, and evaluation mode enabled.
import torch
torch.manual_seed(42)
torch.cuda.manual_seed_all(42)
model....
2
votes
0
answers
57
views
Problem in forecast errors when combining tscv and nnetar
I’m encountering an issue when combining tsCV with nnetar (with h = 2 and additional input variables). The forecast errors for both horizons (h = 1 and h = 2) terminate two observations before the end ...
Advice
1
vote
4
replies
112
views
Python library recommendation for the implementation of a neural network modification algorithm
I want to implement in python some algorithms from a paper that allow for a pre-trained neural network to be modified (adding or removing neurons or layers) conserving (theoretically) the outputs of ...
Advice
0
votes
0
replies
50
views
Large Kernel in ConvNets
I want to find a convolutional network with a large kernel (larger than 5x5 or 7x7). I want to perform kernel analysis, and to do this, I need to convert the model to the onnx format. I found ...
1
vote
1
answer
143
views
Torch Conv2d results in both dimensions convolved
I have input shape to a convolution (50, 1, 7617, 10). Here, 7617 is word vectors as rows, and 10 is the number of words in columns. I want to convolve column-wise and obtain (2631, 1, 7617, 1), 1 ...
1
vote
0
answers
607
views
Installation error while installing GroundingDino
I am trying to install the GroundingDino as instructed in the README file of their official GitHub repo, but I am facing the error below:
Obtaining file:///home/kgupta/workspace/Synthetic_Data_gen/...