Using the model from , I'm training a 3-layers perceptron with log returns over a very large dataset (~55,000 points). The output's layer contains two neurons, one for each of the classes (either the returns are + or -) in which I am trying to cluster my inputs (returns for the past n days).   The machine always predicts the same value, ie the output which has the highest probability over the entire dataset. Has anyone faced a similar problem before? How is this even possible?  Inputs: 100d-array of log returns (quasi normally distributed).  Target Output: sign of consecutive log return (1 or 0).
I'm training a neural network but the training loss doesn't decrease. How can I fix this?  I'm not asking about overfitting or regularization. I'm asking about how to solve the problem where my network's performance doesn't improve on the training set.    This question is intentionally general so that other questions about how to train a neural network can be closed as a duplicate of this one, with the attitude that "if you give a man a fish you feed him for a day, but if you teach a man to fish, you can feed him for the rest of his life." See this Meta thread for a discussion:   If your neural network does not generalize well, see:
Java in Eclipse: Where do I put files on the filesystem that I want to load using getResource? (e.g. images for an ImageIcon) I know the file needs to be where the getClass().getResource(filename) can find it, but I don't know where that is.  I'm interested both in where to put the files on the filesystem itself, and how to go about using Eclipse's functionality to set up the resources. Viewer-independent copyable spaces at the beginning of a line? Do I need a Kuwait transit visa as an Indian national? I am an Indian national and passport holder, traveling from New Delhi to Frankfurt (via Kuwait) and back with Kuwait Airways. I see no Terminal change for the onward and return journeys. I have no plans to leave the airport due to short layovers.  Do I need a Kuwait transit visa? Are getters and setters poor design? Contradictory advice seen I'm currently working on a simple game in Java with several different modes. I've extended a main Game class to put the main logic within the other classes. Despite this, the main game class is still pretty hefty.  After taking a quick look at my code the majority of it was Getters and Setters (60%) compared to the rest that is truly needed for the logic of the game.  A couple of Google searches have claimed that Getters and Setters are evil, whilst others have claimed that they are necessary for good OO practice and great programs.  So what should I do? Which should it be? Should I be changing my Getters and Setters for my private variables, or should I stick with them? Do gravitational lenses work on gravitational waves? I want to know how to get size of objects like a string, integer, etc. in Python.  Related question:   I am using an XML file which contains size fields that specify the size of value. I must parse this XML and do my coding. When I want to change the value of a particular field, I will check the size field of that value. Here I want to compare whether the new value that I'm gong to enter is of the same size as in XML. I need to check the size of new value. In case of a string I can say its the length. But in case of int, float, etc. I am confused. Last Logon Time of All Users - RDP server not on a domain I have a question, I think it concerns with field theory.     Why the polynomial $$x^{p^n}-x+1$$ is irreducible in ${\mathbb{F}_p}$ only when $n=1$ or $n=p=2$?   Thanks in advance. It bothers me for several days. How to dismiss the Windows 8.1 Upgrade banner? As of today, my Windows 8 system is displaying a large banner covering about a quarter of the screen, demanding that I upgrade to Windows 8.1 for free.  The banner helpfully informs me that that I can continue to use the computer while the upgrade is downloading.  There's a button to go to the store for the upgrade, but no other choices, such as No Thanks, Maybe Later, or Absolutely Not.    I can't find a way to dismiss the banner, and I can start programs but can't give them focus while the banner is present.  So I'm dead in the water.  How can I fix this?  Bringing up Task Manager doesn't give me any options.    My employer doesn't yet support Windows 8.1 (which is also an issue, but beyond my control) so I won't be able to connect to work if install the upgrade.  So there is no way on God's green earth that I'm going to install this upgrade now.    UPDATE: The banner went away after the second restart and I was able to run regedit as @magicandre suggested.  The banner hasn't reappeared.  So far, so good. What is the /boot partition really for? I'm reading a relatively old text on Linux partitions and file systems (the LPIC 1 Certification Bible). It says:     Some versions of the Linux boot loaders cannot access a kernel that is   outside the first 1024 cylinders on a disk. By putting the /boot   partition at the beginning of the drive you can be assured of not   having a problem when accessing the kernel at boot. This problem shows   itself most often in cases of dual booting Linux along with another   operating system that is on the first partition.   Why would a boot loader have "no access to the kernel outside the first 1024 cylinders on a disk"?  Also, what does "putting the /boot partition at the beginning of the drive" mean? Whenever I open my files, my hidden files show up. I can hide them but when I open up my files again, they're showing again. How do I make the hidden files invisible permanently? What happens if I unsubscribe from Apple Music, then resubscribe at a later date? An inequality involving 4 real or complex numbers I would like to know if it's possible to win in Don't Starve? Or is it just the matter of how long until you die? Let $\times$ = cross product and $a$ and $b$ have vector signs on them.  $a = [a_1, a_2, a_3]$  $b = [b_1, b_2, b_3]$  How would I prove this? Do I expand out cross product?  Any help is appreciated! I have a ext4 partition and I've set the group owner for all subdirectors to mygroup:  # chgrp -R mygroup /mount/abc # chmod -R g+swrx /mount/abc   My user is part of that group. Inside that partition is a folder who is owned by user 'nobody' and now by the group 'mygroup'. My user is part of 'mygroup'. Here's an ls -l:  myuser@host:/mount/abc/folder$ ls -l drwxr-sr-x 2 nobody      mygroup      4096 Apr 25 12:08 ./ drwxrwsrwx 6 nobody      mygroup      4096 Apr 24 07:57 ../ -rw-r-xr-- 1 otheruser   mygroup    159539 Apr 23 23:44 test.png*  myuser@host:/mount/abc/folder$ groups myuser myuser : mygroup {... a list of other groups also...}   myuser@host:/mount/abc/folder$ rm test.png  rm: remove write-protected regular file ‘test.png’? y rm: cannot remove ‘test.png’: Permission denied  myuser@host:/mount/abc/folder$ touch test.txt touch: cannot touch ‘test.txt’: Permission denied   Note that I cannot delete nor create a file that is owned by a group that my user is a part of.  I guess I don't fully understand how groups work. I thought if you were part of a group then you inherit the permissions of that group. Am I doing something wrong?  Thanks Comparing complex numbers If $a+ib$, $c+id$, $e+if$ are three complex numbers, than can we tell which one is greater or smaller between them? If yes, then how and if no then why not?   Can somebody give explanation on this.... I will be grateful to him. What is the antiderivative of $e^{-x^2}$ I was wondering what the antiderivative of $e^{-x^2}$ was, and when I wolfram alpha'd it I got $$\displaystyle \int e^{-x^2} \textrm{d}x = \dfrac{1}{2} \sqrt{\pi} \space  \text{erf} (x) + C$$  So, I of course didn't know what this $\text{erf}$ was and I looked it up on wikipedia, where it was defined as:   $$ \text{erf}(x) = \dfrac{2}{\sqrt{\pi}} \displaystyle \int_0^x e^{-t^2} \textrm{d}t $$   To my mathematically illiterate mind, this is a bit too circular to understand. Why can't we express $\int e^{-x^2} \textrm{d}x$ as a 'normal function'? Also, what is the use of the error function? Currently selected indicator's colour in flag summary and help pages, can be the same as the site's colour code How do I learn where the source file for a given Python module is installed? Is the method different on Windows than on Linux?  I'm trying to look for the source of the datetime module in particular, but I'm interested in a more general answer as well.