Questions tagged [false-positive]

False positive is the case where the positive result of a test doesn't correspond to reality. It can lead to the wrong decision.

236 questions
2
votes
0 answers

Tensorflow/Keras: Cost function that penalizes specific errors/confusions

I have a classification scenario with more than 10 classes where one class is a dedicated "garbage" class. With a CNN I currently reach accuracies around 96%, which is good enough for me. In this particular application false positives (recognizing…
Johannes
  • 3,300
  • 2
  • 20
  • 35
2
votes
1 answer

Reed Solomon Error DETECTION capability is not 2T

I am setting up a Reed Solomon library to correct AND detect errors as the come in. For simplicity, let's look at a Reed Solomon configuration where m(symbol size) : 8 [GF(256)] k(user payload) : 2 2T(parity symbols): 2 Yielding a transmitted…
2
votes
0 answers

Can Pex instrumentation cause code to change its effect?

I've got a simple JSON lexer class; it takes a string and generates an IJSONValue; the IJSONValue has a ToJSONString method that returns a valid JSON string. The code for that, of course, is quite complicated with plenty of branches; that's why I…
configurator
  • 40,828
  • 14
  • 81
  • 115
2
votes
4 answers

Sonarqube false positive for "Use try-with-resources or close this "ResultSet" in a "finally" clause"

Sonarqube keeps marking code with this issue which is, in my opinion, a false positive. Code looks like this: try(PreparedStatement st=con.prepareStatement(myQuery)){ st.setInt(1, myValue); ... ResultSet rs = st.executeQuery(); …
Pablo Fradua
  • 369
  • 1
  • 4
  • 16
2
votes
0 answers

PHPUnit false positives when running tests in separate processes

I have my test class like this: /** * @runTestsInSeparateProcesses */ class ProfileTest extends TestCase { public function testFalsePositive() { $this->assertFalse(true); } } And the weird thing is, this test class passes…
IFeel3
  • 167
  • 1
  • 13
2
votes
0 answers

P-adjustment (FDR) on Hierarchical Clustering On Principle Components (HCPC) in R

I'm working right now with "Hierarchical Clustering On Principle Components (HCPC)". In the end of the analysis, p-values are computed by the HCPC function. I searched but I couldn't find any function that could adjust the p-value based on FDR…
2
votes
0 answers

Error in generating samples for trainCascadeObjectDetector in MATLAB

I was trying to train the cascade object detector in matlab with the 30 positive images with specified ROI and 10 negative images (without specified ROI). My code resembles with the matlab example code of 'Stop Sign Detector'. But when I tried to…
2
votes
1 answer

How to detect anomalous resource consumption reliably?

This question is about a whole class of similar problems, but I'll ask it as a concrete example. I have a server with a file system whose contents fluctuate. I need to monitor the available space on this file system to ensure that it doesn't fill…
2
votes
1 answer

How can I prevent Modsecurity false positives caused by SignalR?

I recently built a brand new development server in order to experiment with Modsecurity. However I am getting lots of false-positives generated by a .NET 4 application using SignalR for client-server communications. How can I prevent false-positives…
CowWarrior
  • 3,147
  • 2
  • 15
  • 10
2
votes
3 answers

Protractor - run test again if fails

I'm using shell script to run protractor tests. I want to make sure that if the test fails (exit code != 0) then it will run again - three times most. I'm already using Teamcity, but Teamcity sends the 'FAIL' email and only then tries again. I want…
user2880391
  • 2,683
  • 7
  • 38
  • 77
2
votes
3 answers

How to plot miss rate vs false positive rate?

i have a problem to plot a curve for miss rate vs false positive rate to analyze the performance of my proposed system (as sampled on picture below). I have two samples dataset for positive and negative sample. I want to plot the performance of my…
2
votes
2 answers

Hidden selector always deciding that an element is visible, even when its not

One of the things I'm working on for an upcoming project is a callout/tooltip system. In theory, it's a simple little thing. You take some markup like this: Click Me
Andrew Gray
  • 3,756
  • 3
  • 39
  • 75
2
votes
2 answers

Valgrind mark deliberate leak

I feel like this has to be a feature, but my Google-Fu has failed me. I apologize in advance if this has been asked/answered before, it feels so obvious, but I couldn't find anything. Is there a means to mark an allocation as deliberately leaking?…
Pat
  • 1,882
  • 2
  • 15
  • 22
2
votes
2 answers

Batch check if a variable is negative

i have a little problem in batch and i don't find a way to solve it ! I'm working on a point system and just need a string that checks if a variable is negative. It would be something like this : set /p points=10 set /p price=15 set /a…
ratouney
  • 49
  • 2
  • 9
2
votes
2 answers

why is that str.count('') ≠ (from str.count('A') + str.count('B') + ... + str.count('Z'))

It (should, to me,) say True if there are only vowels in the string(phrase); otherwise says False. I don't understand why it always will return False, since (x >= x) always returns True. I thank anyone for checking the solution to this query. (str)…