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
0
votes
1 answer

Specificity and sensitivity measures

I have been trying to calculate some measures about specificity and sensitivity. The SDMTools R package worked great to get the overall estimates. library(SDMTools) a <- c(1,1,1,1,0,0,0,1,0,1,1,1) #observed b <- c(1,1,0,0,1,0,0,1,0,0,1,1)…
Michael Matta
  • 394
  • 2
  • 16
0
votes
2 answers

Understanding ROC curve

import matplotlib.pyplot as plt from sklearn.metrics import roc_curve, auc , roc_auc_score import numpy as np correct_classification = np.array([0,1]) predicted_classification = np.array([1,1]) false_positive_rate, true_positive_rate, tresholds =…
blue-sky
  • 51,962
  • 152
  • 427
  • 752
0
votes
1 answer

ROC-AUC FPR FNR in Python and R?

I have a dataframe object in R/Python that looks like: df columns: fraud = [1,1,0,0,0,0,0,0,0,1] score = [0.84, 1, 1.1, 0.4, 0.6, 0.13, 0.32, 1.4, 0.9, 0.45] When I use roc_curve in Python I get fpr, fnr and thresholds. I have 2 questions, maybe a…
0
votes
1 answer

Differences in FP and FN rates between two algorithems

I am conducting binary classification using logistic regression with and without applying PCA. The application of PCA before logistic regression gives a higher accuracy and lower FNs in comparison to logistic regression alone. I would like to find…
0
votes
1 answer

False positive warning PVS Studio: V821 Decreased perfomance. The 'rhs' variable can be constructed in a lower level scope

PVS Studio 6.17 (Windows 7, 64Bit, VS2017, C++-03) seems to give a wrong warning on following reduced code #include #include #include bool fred(const std::string &x) { return x == "ab"; } std::vector
orbitcowboy
  • 1,438
  • 13
  • 25
0
votes
2 answers

How do I make visual studio online fail a build when visual studio test step does not discover any tests

Scenario Visual Studio Online build definition. Using a Visual Studio Test - Test Assemblies step to run tests in a specific dll. The tests in this dll are more like build steps (highly customized builders), than tests. The test step has "Continue…
Marjan Venema
  • 19,136
  • 6
  • 65
  • 79
0
votes
1 answer

OpenCV Hog person detect is fooled by vertical lines?

I've been testing openCV on an RPi using Python. The video is coming from a USB grabber from a CCTV camera. I tested it in a room with 'ideal' stick figures and it worked great, tracking and zoom automatically. However when testing in the real…
Richard
  • 101
  • 1
0
votes
0 answers

Matlab executes the first statement even if is false

I have the following function in matlab. I am trying to shuffle a matrix. But somehow matlab keeps executing the code from if even if the statement should go to else. And when it comes to else I have to put some aditional code, even if all it does…
0
votes
1 answer

Fasle positive alerts in my app (AV)

I have made a programm that modifies the Windows-Registry so you can add shortcuts to the contextmenu on the Desktop. On my computer everything is fine, but when i switch to another PC with an AV, it gets a positive alert (I acsess…
Max
  • 5
  • 4
0
votes
1 answer

How to model to ignore Coverity Scan C++ 'noexcept' false-positives?

With Coverity starting to recognize C++11 noexcept as throw(), it is producing spurious false positives in code calling third-party libraries like Boost. Moreover, some code deliberately intents to crash on exception because the exception in that…
0
votes
0 answers

Is it now possible to copy sonarqube false positive to a branch?

Sonarqube allows to mark issues as false positive. However, when analyzing a new branch, sonarqube handles this branch as independent and the false positives have to be marked again. This becomes quickly unpractical as the project grows. It would be…
Jidehem
  • 1,066
  • 11
  • 18
0
votes
2 answers

Identifying circles besides using `imfindcircle` function

I have an image of particles of which I am trying to identify whether they have bonded in the image or not by whether or not they are touching. I have already used the imfindcircles function but have noticed it always comes up with some false…
0
votes
2 answers

mvwaddstr() causes false positive with McAfee

I've been writing a C Curses application with PDCurses. It was compiling and running fine, but when I added some code to draw a string in a window, McAfee quarantines my compiled .exe as a trojan. Here is the line that causes the false…
Lucas Baizer
  • 305
  • 2
  • 5
  • 13
0
votes
1 answer

Excel function not evaluating last IF Statement

I have this function that compares cells and the data that is stored within the cell. Function:…
0
votes
1 answer

PHP - How can echo a part of SQL column just has value?

I have 5 types of users, and some of them have access to more functions than others. In my database I have a table for user_type and a table for users. In the user table I have a column rion for which only one of the user types has values. I need to…
aann
  • 19
  • 2