Skip to main content
Corrected grammar
Source Link
Shayan Shafiq
  • 1k
  • 4
  • 13
  • 24

The main problem in your test is that your X has the same scale as your noise level (0-1), as a result, adding a noise changes your data distribution significantly.

This is your data distribution before and after adding noise.

enter image description here

It is like the noise is 50-200% more than your initial data. That's why you get a better result with CV than the "ground truth weights". Because the new fitted model by CV is tuned for an X with a new distribution.

However, if you increase your X values scale, for example, 100*np.random.rand(ntrials,nneurons), the your data have the same distribution before and after adding noise.

enter image description here

Now if you run your code, you will get what you expected.

result

The main problem in your test is that your X has the same scale as your noise level (0-1), as a result, adding a noise changes your data distribution significantly.

This is your data distribution before and after adding noise.

enter image description here

It is like the noise is 50-200% more than your initial data. That's why you get a better result with CV than the "ground truth weights". Because the new fitted model by CV is tuned for an X with a new distribution.

However, if you increase your X values scale, for example 100*np.random.rand(ntrials,nneurons), the your data have same distribution before and after adding noise.

enter image description here

Now if you run your code, you will get what you expected.

result

The main problem in your test is that your X has the same scale as your noise level (0-1), as a result, adding a noise changes your data distribution significantly.

This is your data distribution before and after adding noise.

enter image description here

It is like the noise is 50-200% more than your initial data. That's why you get a better result with CV than the "ground truth weights". Because the new fitted model by CV is tuned for an X with a new distribution.

However, if you increase your X values scale, for example, 100*np.random.rand(ntrials,nneurons), your data have the same distribution before and after adding noise.

enter image description here

Now if you run your code, you will get what you expected.

result

added 6 characters in body
Source Link
Mehdi
  • 344
  • 1
  • 6

The main problem in your test is that your X has the same scale as your noise level (0-1), as a result, adding a noise changes your data distribution significantly.

This is your data distribution before and after adding noise.

enter image description here

It is like the noise is 50-200% more than your initial data. That's why you get a better result with CV than the "ground truth weights". Because the new fitted model by CV is tuned for an X with a new distribution.

However, if you increase your X values scale, for example 100*np.random.rand(ntrials,nneurons), the your data have same distribution before and after adding noise.

enter image description here

Now if you run your code, you will get what you expected.

result

The main problem in your test is that your X has the same scale as your noise level (0-1), as a result, adding a noise changes your data distribution significantly.

This is your data distribution before and after adding noise.

enter image description here

It is like the noise is 50-200% more than your initial data. That's why you get a better result with CV than the "ground truth weights". Because the new fitted model by CV is tuned for an X with a new distribution.

However, if you increase your X values, for example 100*np.random.rand(ntrials,nneurons), the your data have same distribution before and after adding noise.

enter image description here

Now if you run your code, you will get what you expected.

result

The main problem in your test is that your X has the same scale as your noise level (0-1), as a result, adding a noise changes your data distribution significantly.

This is your data distribution before and after adding noise.

enter image description here

It is like the noise is 50-200% more than your initial data. That's why you get a better result with CV than the "ground truth weights". Because the new fitted model by CV is tuned for an X with a new distribution.

However, if you increase your X values scale, for example 100*np.random.rand(ntrials,nneurons), the your data have same distribution before and after adding noise.

enter image description here

Now if you run your code, you will get what you expected.

result

Source Link
Mehdi
  • 344
  • 1
  • 6

The main problem in your test is that your X has the same scale as your noise level (0-1), as a result, adding a noise changes your data distribution significantly.

This is your data distribution before and after adding noise.

enter image description here

It is like the noise is 50-200% more than your initial data. That's why you get a better result with CV than the "ground truth weights". Because the new fitted model by CV is tuned for an X with a new distribution.

However, if you increase your X values, for example 100*np.random.rand(ntrials,nneurons), the your data have same distribution before and after adding noise.

enter image description here

Now if you run your code, you will get what you expected.

result