I am training a binary classification algorithm in Keras, the loss is cross-entropy model.compile(loss='binary_crossentropy', optimizer=optimizer, metrics=['accuracy']). What confused me most is that my train_acc and train_loss are not consistent. Sometimes train_acc is 1 but train_loss is near 3.  If I think right, if train_accuracy is 1, train_loss should not be greater than 0.693, which is the cross-entropy loss for all predictions are 0.5.  I have checked the data, the label is 0 for false and 1 for true. The other dataset works well with the same code. What can be the possible reason for this uncommon problem? or am I wrong?   I uploaded a picture for illustration. But it does not show up, maybe a bug.
In theory, is it possible that the loss on the train set will increase together with the train set accuracy? (in the normal case the train set loss should go down) And vice versa, can the train loss decrease along with the accuracy?   Note: This is obviously different than the classic underfit / overfit cases which are easier to grasp.
Is $v=\ (r_i)^{-1}\cdot z $, a uniformly random value of a field? We consider a finite field $\mathbb{F}_q$ where $q=2p+1$ and $q$ and $p$ are prime numbers.  Let $r_i$ be a value picked uniformly at random from the field such that $r_i&gt;\frac{q}{2}$. Let $z$ be a fixed field element.   Question: Is $v=(\ (r_i)^{-1}\cdot z) \bmod q$, a uniformly random value of the field? This applies to all d20 systems, but with an example from the from the Pathfinder  (emphasis mine):  Stonecunning: Dwarves receive a +2 bonus on Perception checks to potentially notice unusual stonework, such as traps and hidden doors located in stone walls or floors. They receive a check to notice such features whenever they pass within 10 feet of them, whether or not they are actively looking.  In this case, does the GM roll the check in secret or ask the player roll the check? If the GM asks the player to roll for the check, what stops situations like:  GM: (interrupting) &quot;Gimli, Roll a perception check.&quot; Dwarf player: &quot;Oh, it's a natural one, I guess I don't see anything.&quot; Human player: &quot;Okay, I'll roll a perception check for anything unusual in this room. Nice! 19. How about 19, does 19 work for you?&quot; GM: &quot;Gimli, everything looks kosher to you. Aragon, you notice a rock coloured tarp on the ground here, covering what looks like a pit trap.&quot;  In this case, by telling the dwarf to roll his &quot;free&quot; perception check, he's telegraphed to the players that there is something to notice. How can this be fixed, without bluffing checks for nothing in particular to throw off the signal to noise ratio of similar checks? I'm talking about the movie  Spoilers ahead.  Walter (Daniel Radcliffe) gave the task or blackmailed the Four Horsemen to steal a chip from a lab which can access any digital device. So they did steal the chip. And when they rescue Dylan Rhodes (Mark Ruffalo) from drowning in the water, Jack Wilder said that the chip is fake.     Jack: Wait something is not right.      Atlas: What's wrong?      Jack: It's fake.   Then they assumed that Walter did not know that the chip is fake. So they came with a plan to bluff. They pretended that they had the real chip. After they got caught by Walter, they gave the fake chip to Walter. Walter checked the chip and declared it as real. The Four Horsemen were surprised.     Walter: I'm sorry to interrupt. But I have to say congratulations and   thank you. It's real.      Lula: What? It's real!!!!!      Atlas: What? Is it real?      Jake: What is he talking about?   What happened? I didn't get it. What did I miss? Was the chip real? Was Walter pretending it to be real? If so, then why? If not, who switched the real chip with the fake one? Who had the real chip before? Converting Degree Minutes to decimal degrees using Excel formula? I have location points collected from a garmin device stored in an excel sheet in Degree Minutes format --- W00208.172,N1046.977.  I am looking for an Excel formula to convert either to Decimal Degrees or Degrees Minutes seconds Format ? Do tag edits count for Archaeologist? I know tag-edits do not count towards the 500 edits required for the Copy Editor badge. Do they count to the 100 for the Archaeologist badge? It seems they should because you are making a 6-month-inactive post active again. Is there a option to search within manpages? Proving that $AB-BA=cI$ for nontrivial $c \in \mathbb{C}$ I have a homework question I can`t solve:  Let $X$ be a normed linear space, $A,B \in B(X)$. Show that there exists no nontrivial $c \in \mathbb{C} $ such that $AB-BA=cI$.  Thanks alot already guys! I seem to have a professor who gives impossible homework problems.  The hint he gave: $A^{n}B-BA^{n}=ncA^{n-1}$, $n \in \mathbb{N}$ Why absence of electron is called hole? How do I set 'nomodeset' after I've already installed Ubuntu? Convert python datetime to epoch with strftime I recently found out about Ubuntu for Android Multi-Core Smartphones and was digging around on the Ubuntu website as well as the Canonical website but have yet to find any information on if it available to the public yet ?  I am very interested to try it our on my Android and if it is available for the public am wondering where and how I can get a copy of "Ubuntu for Android" ?  If it is not available then perhaps someone can shed some lite on what sort of timeframe it will be until it is available to the general public? Allow suppression of automatic linking of web addresses How to add horizontal cylinder at end of cube Remember window locations when docked and undocked I find this beyond frustrating.  I have two extra screens on my laptop at work. I take my laptop and go home, with no extra screens connected. I come back, dock the laptop, and the windows need to be rearranged again.  Is there a way to get windows (or a utility) to keep track of the overall screen configuration (#, size, resolution), and remember where windows were placed, so when the screen configuration matches again, it puts applications BACK where they were? I'm looking for a programmers' editor. I know Xcode and I use it for application programming but I'm looking for something that will:   Syntax highlight PHP, SQL, Javascript (including jQuery) and CSS not required but would be nice; also Lua, Python, and Perl    IntelliSense type stuff, start typing and get all the functions/objects/variables it could be and any parameters. Xcode does this well for C/C++/Objective-C but looking for languages that are listed above. Would be nice if it worked with projects and not just files    Integrated with SVN, CVS, or GIT Had upload-to-server functionality built in   I am aware of  but am looking for other options before I drop 100 bucks. How to rename multiple files by removing the extension? Simple UV Mesh Unwrapping Scale issue How do I identify predatory and low quality journals? With Beall's List gone, how can I tell if a journal is spam? . While the reasons for his doing this are not yet public, this is a real loss of a valuable service. Does anyone know of similar services available to the general public?  Edit:  is definitely relevant, but that approach is more appropriate for finding top journals rather than identifying bottom ones. I.e., following that method would probably exclude lots of valid, lower-tier journals. Are there any approaches to easily identifying a predatory publisher? I am a precision modeler, which means I like to be exact instead of "eyeballing" things when I model. I am very happy to see the option to Edge Slide with Clamping Off in v2.75a, but I don't seem to be able to snap the edge slide destination to a vertex point elsewhere on the model. Is this possible and I am just missing something? Before I start, don't lecture me on the fact that FAT32 is old and hasn't been updated for nearly 20 years. Right now I have sorted that. I am trying to install Ubuntu Linux onto a 64GB flash drive and it wants me to format it to one of the EXT file systems.  The problem is if I put the flash drive into a Windows PC, I can't use it. I also can't install the required software onto every Windows PC that I will use. When I tried to install it on FAT32 I got an error and there is no option for NTFS.  Does anyone know how I could do this? Maybe a Windows based tool? Thanks in advance.