Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
1 answer
182 views

Can a ML model learn the hyperparameters landscape?

(I assume that this is not possible because I've never seen anyone talk about this.) Let's take a classic MLP (named f) that, for example classify some images (from ...
Arthur Delannoy's user avatar
1 vote
0 answers
18 views

Looking for a way to train a model to learn optimal parameters/hyperparameters of clustering

I have 5000 docs, each is a review. For each review, i'm plotting the sentences in a semantic dimension. Now, I'm applying clustering to these points for each review. The success of my model depends ...
Prithvi's user avatar
  • 11
-1 votes
1 answer
500 views

GPT beam search length (number of tokens)

Background: I'm currently trying to use GPT to give me numerical scores, and looking for tips on prompt design, see my previous StackExchange post. To craft good prompts it seems important to have a ...
just another mathmo's user avatar
0 votes
1 answer
38 views

Patterns binary classification - model doesn't overfit

I am working on a very basic binary classification problem. For each set of four float numbers $(x,y,z,w)$, I want to check if they fall or not into one category. I have written a model with 3 dense ...
apt45's user avatar
  • 123
2 votes
1 answer
421 views

What's the architecture and size of neural-network-based reward models as used in reinforcement learning by human feedback

My rough understanding of RLHF as used for ChatGPT in a nutshell is this: A reward model is trained using comparisons of different responses to the same prompt. Human trainers rank these responses ...
Hans-Peter Stricker's user avatar
0 votes
1 answer
129 views

How to approach a toy classification problem using a neural network?

The toy problem: 50 unique numbers are randomly selected from number 0 to 99. If number 1 appears in the selection but number 2 doesn't, the selection is labelled as "1". If number 2 ...
Yang's user avatar
  • 1
0 votes
1 answer
225 views

Do different architectures really make a difference or is it just a matter of the training process?

I was wondering which influence different architectures for deep learning truly have on the performance. Of course, substantial changes in the paradigms we use when building neural networks (such as ...
convaldo's user avatar
  • 121
1 vote
1 answer
130 views

Are there any guidelines on picking hyperparameters for Deep Reinforcement Learning?

I am trying to learn machine learning from Andrew NG's Machine learning specialization on Coursera. In the chapter about reinforcement learning Andrew NG said that if you do not select correct ...
EmperorAurelian's user avatar
4 votes
1 answer
4k views

What's the relationship between number of heads and embedding dimension in Transformers?

I am reading the book: Natural Language Processing with Transformers. It has the following paragraph Although head_dim does not have to be smaller than the number of embedding dimensions of the ...
desert_ranger's user avatar
1 vote
2 answers
1k views

What should I do if my validation score is good, but my test score is bad?

I've trained my artificial neural network, and, as per standard practice, I've picked out the one neural network throughout training that did the best on my validation dataset. That is, the neural ...
Pro Q's user avatar
  • 113
1 vote
0 answers
49 views

How to make my neural networks designs more robust

Whenever, I design a neural network to solve a novel problem (requires a novel loss function i.e. not image classification) it always ends up being hypersensitive to batch size and learning rate. ...
Tom Huntington's user avatar
0 votes
1 answer
241 views

Which paper describes the effect of learning_starts in Reinforcement Learning?

I have seen many popular RL libraries have a learning_start parameter. This allows the agent to collect enough experiences before training on the replay_buffer. However, I am unable to find the paper ...
desert_ranger's user avatar
1 vote
1 answer
399 views

Is the described Q-table considered large?

I never saw any rule of thumb as to what size is said as large for a q-table but I have a Q-table with like 2500 entries. Is it considered large for a tabular approach? Anyone from experience can ...
knowledge_seeker's user avatar
3 votes
2 answers
3k views

How many training steps does it usually take to train an RL model?

This is my model average rewards as follow image. How to tell if it is undertrained or not convergent? How many training steps does it usually take to train an RL model? And I'm using PPO to train.
huang's user avatar
  • 303
4 votes
1 answer
988 views

Why is a large replay buffer inefficient?

Open AI spin up says ... the replay buffer should be large enough to contain a wide range of experiences, but it may not always be good to keep everything. If you only use the very-most recent data, ...
Sara's user avatar
  • 141
2 votes
1 answer
654 views

For continuing tasks, is the choice of episode length completely arbitrary?

Let's say I'm training a reinforcement learning agent to act in some environment that perpetually continues to give the agent opportunities to earn rewards, and there is no cap on the score and there ...
Vladimir Belik's user avatar
0 votes
1 answer
270 views

Why should data batches in a neural network have an equal size?

Why should data batches in a neural network have an equal size? I have seen some recent research works on making the batch size dynamic, but still, I can't find an answer to my question.
Minions's user avatar
  • 123
2 votes
1 answer
2k views

Could it make any sense to choose a larger dimension for the latent space of the VAE with respect to the original input?

Could it make any sense to choose a larger dimension for the latent space of the VAE with respect to the original input? For example, we may want to learn how to reconstruct a relatively low-...
James Arten's user avatar
0 votes
3 answers
587 views

What can I infer if my model is converging extremely fast?

I am running a model with fixed hyperparameters. To my surprise/shock, the model converged extremely fast with the least loss possible. I want to know the causes of this phenomenon. I have the ...
hanugm's user avatar
  • 3,990
0 votes
2 answers
460 views

Is it true that batch size of form $2^k$ gives better results?

I am confused among the following in selecting the batch size for my model. #1: powers of 2 I generally see that batch sizes are in powers of two: 32, 64, 128, 256. #2: maximum GPU Suppose my GPU ...
hanugm's user avatar
  • 3,990
2 votes
1 answer
111 views

What components of reinforcement learning influence the result the most?

I'm working on my thesis concerning a reinforcement learning problem and am trying to prioritise my time on different components of it: Formalising the agent environment (like the design of state-, ...
kitaird's user avatar
  • 119
3 votes
2 answers
431 views

When can I call an entity a hyperparameter?

As per my knowledge, any entity that is learnable by a training algorithm can be called a parameter. Weights of a neural network are called parameters because of this reason only. But I have doubts ...
hanugm's user avatar
  • 3,990
1 vote
2 answers
2k views

Is there any relationship between the batch size and the number of epochs?

I am currently running a program with a batch size of 17 instead of batch size 32. The benchmark results are obtained at a batch size of 32 with the number of epochs 700. Now I am running with batch ...
hanugm's user avatar
  • 3,990
0 votes
2 answers
176 views

How to reduce the number of clusters produced by the Markov Clustering Algorithm?

I have used the Markov Clustering Algorithm (MCL) to cluster tweets, based on their similarity. However, I got a too high number of clusters, and most of the clusters have only one tweet. Any ...
Adnan Hussein's user avatar
0 votes
2 answers
119 views

Why data required for hyperparameter tuning is considered as an additional data?

Any parametric model may have parameters as well as hyperparameters. Learning algorithm deals with parameters and hyperparameters should be dealt outside learning algorithm. Consider the following ...
hanugm's user avatar
  • 3,990
3 votes
1 answer
579 views

Why is the input layer of a neural network usually not counted?

I came across the following statement from the caption of figure 7.8 from the textbook Neural Networks and Neural Language Models the input layer is usually not counted when enumerating layers Why ...
hanugm's user avatar
  • 3,990
13 votes
3 answers
24k views

How to determine the embedding size?

When we are training a neural network, we are going to determine the embedding size to convert the categorical (in NLP, for instance) or continuous (in computer vision or voice) information to hidden ...
Lerner Zhang's user avatar
1 vote
1 answer
212 views

How many singular vectors do we need to calculate for SVD?

In the geometrical interpretation of SVD, the data points that we have need to be imagined as points in high dimensional space (say $d$-dimensional space). But we need to find a hyperplane in $k-$...
hanugm's user avatar
  • 3,990
0 votes
2 answers
221 views

How to ensure that the ES-HyperNEAT algorithm generates an ANN in the substrate?

I'm trying to implement the ES-HyperNEAT algorithm using the original paper, as well as the pseudocode provided in the official user page. Occasionally, the algorithm would be unable to generate a ...
SirBob's user avatar
  • 1
4 votes
0 answers
3k views

Optimal episode length in reinforcement learning

I have a custom environment for stock trading where an episode can be as long as 2000-3000 steps. I've run several experiments with td3 and sac algorithms, average reward per episode flattens after ...
Mika's user avatar
  • 361
7 votes
2 answers
4k views

What are the best hyper-parameters to tune in reinforcement learning?

Obviously, this is somewhat subjective, but what hyper-parameters typically have the most significant impact on an RL agent's ability to learn? For example, the replay buffer size, learning rate, ...
Dylan Kerler's user avatar
2 votes
0 answers
56 views

Is there an optimal number of species for NEAT?

Is there an optimal number of species for NEAT? Since too low and too high is bad, I am thinking about adjusting the threshold of the distance function at runtime in order to have the number of ...
IAmUser's user avatar
  • 51
1 vote
0 answers
21 views

Hyperparameters for Reproducing the Results of IRGAN on MovieLens 1M

I am trying to reproduce results reported for IRGAN (information retrieval GAN) on the MovieLens 1M dataset. The results I want to reproduce and their sources are listed in the table below. Model ...
Lukas's user avatar
  • 111
3 votes
1 answer
116 views

What is the most statistically acceptable method for tuning neural network hyperparameters on very small datasets?

Neural networks are usually evaluated by dividing a dataset into three splits: training, validation, and test The idea is that critical hyperparameters of the network such as the number of epochs ...
Mike NZ's user avatar
  • 411
2 votes
1 answer
864 views

Is it a good idea to use different width and height of the kernel in a CNN?

I always see that the width and height of the kernel are the same. But is it a good idea to use different numbers? Recently I tried to use GoogLeNet (which expects images to be 224x224) on my images (...
user avatar
2 votes
0 answers
71 views

Given a 2-layer GCN, can we choose the dimensions of the 2nd weight matrix, such that this architecture has the same capacity as a 1-layer GCN?

This might be more of a question about nested function classes: For $k$ class node classification in a graph with $n$ nodes, and $d$ feature vector. I want to compare Architecture I: the GCN model of ...
Tinatim's user avatar
  • 121
2 votes
0 answers
271 views

How will the filter size affect the transpose convolution operation?

After a series of convolutions, I am up-sampling a compressed representation, I was curious what is the methodology I should follow to choose an optimum kernel size for up-sampling. How will the ...
Vortex's user avatar
  • 51
1 vote
0 answers
238 views

How does noise input size affect fake image generation with GANs?

In Generative Adversarial Networks, the Generator takes noise vector as input and feeds it forward to create an image. The noise vector consists of random numbers sampled from the normal distribution. ...
mark mark's user avatar
  • 793
2 votes
1 answer
182 views

For episodic tasks with an absorbing state, why can't we both have $\gamma=1$ and $T= \infty$ in the definition of the return?

For episodic tasks with an absorbing state, why can't $\gamma=1$ and $T= \infty$? In Sutton and Barto's book, they say that, for episodic tasks with absorbing states that becomes an infinite sequence, ...
user8714896's user avatar
3 votes
1 answer
5k views

What should the value of epsilon be in the Q-learning?

I am trying to understand Reinforcement Learning and already explored different Youtube videos, blog posts, and Wikipedia articles. What I don't understand is the impact of $\epsilon$. What value ...
Exploring's user avatar
  • 373
1 vote
2 answers
919 views

Why is an embedding of dimension 400 enough to represent 70000 words?

I am learning PyTorch on Udacity. In lesson 8, section 11: Training the Model, the instructor writes: Then I have my embedding and hidden dimension. The embedding dimension is just a smaller ...
Franva's user avatar
  • 181
1 vote
1 answer
464 views

Should the range and initial values of weights and biases be adjusted to fit input and output data?

As a routine (in typical everyday tasks) of a data scientist, should they usually decide about weights and biases range and initial values as a function of which data they are planning to insert as ...
Igor's user avatar
  • 303
2 votes
1 answer
143 views

Which hyperparameters in neural network are accesible to users adjustment

I am new to Neural Networks and my questions are still very basic. I know that most of neural networks allow and even ask user to chose hyper-parameters like: amount of hidden layers amount of ...
Igor's user avatar
  • 303
1 vote
1 answer
124 views

Why one unit in the layers of neural network is not enough?

In a deep connected network, when every unit gets all the input features(X) so it has one parameter for every feature and every unit tweaks its parameters for loss optimization. What if we use only ...
Hitesh Somani's user avatar
3 votes
1 answer
1k views

What is the intuition behind the number of filters/channels for each convolutional layer?

After having chosen the number of layers for a convolutional neural network, we must also choose the number of filters/channels for each convolutional layer. The intuition behind the filter's spatial ...
yuri's user avatar
  • 33
1 vote
1 answer
3k views

What is the best activation function for the embedding layer in a deep auto-encoder?

I am designing a deep autoencoder for graph embedding (exactly node embedding) following this paper SDNE. In the original paper, they used the sigmoid activation for all hidden layers in the ...
Truong Hoang's user avatar
1 vote
1 answer
2k views

How to determine the number of hidden layers and units of a deep auto-encoder?

I am using a deep autoencoder for my problem. However, the way I choose the number of hidden layers and hidden units in a hidden layer is still based on my feeling. The size of the model that ...
Truong Hoang's user avatar
3 votes
1 answer
3k views

How should I choose the target's update frequency in DQN?

I have been dealing with a problem that I'm trying to solve with DQN. A general question that I have is regarding the target's update frequency. How should it change? Depending on what factor do we ...
Hossein Ostovar's user avatar
3 votes
1 answer
139 views

How are training hyperparameters determined for large models?

When training a relatively small DL model, which takes several hours to train, I typically start with some starting points from literature and then use a trial-and-error or grid-search approach to ...
Kao's user avatar
  • 133
3 votes
1 answer
616 views

Why does every neuron in hidden layers of a multi-layer perceptron typically have the same activation function? [duplicate]

Why does every neuron in a hidden layer of a multi-layer perceptron (MLP) typically have the same activation function as every other neuron in the same or other hidden layers (so I exclude the output ...
user8714896's user avatar