fewsome's People
Forkers
aytek03fewsome's Issues
The computation of F1 is wrong thoroughly!
In my opinion, the computation of F1 is wrong.
The output with "outputs > thres" are first set to be 1. Then, these "1" are also used for the following "outputs <= thres".
To my complete shock, the threshold is chosen by "the outputs of testing" by 10% proportion. In this way, your testing accuracy is fixed and can be predicted in advance to be 90% (F1 can be a bit biased, but it is also fixed and can be predicted in advance). Then, due to the above fault, your F1 float around 90%, as shown in your paper.
Beacause your test dataset including anomalies, 90% may be not very accurate and even higher. For example, CIFAR10 testing cosists of 10% targets and 90% anomalies. Targets always have lower/higher distances/scores than anomalies due to your model trained only using targets. Ideally, you get 100% accuracy by your threshold setting.
But, the threshold is also a part of your model. It can't be derived from the testing. In other words, your high accuracy is caused by the testing information leakage.
What you do will mislead the people who will work in this field in the future.
[Image normalization before feeding to the backbone model]
Hi, in the following snippet the image (x) is being passed as is. However, the base model would expect normalized image. The image was not normalized elsewhere in the code. Is it supposed to be like this?
class RESNET_pre(nn.Module):
def __init__(self):
super(RESNET_pre, self).__init__()
self.features = models.resnet18(pretrained=True)
def forward(self, x):
x = torch.unsqueeze(x, dim =0)
x= self.features(x)
x=nn.Sigmoid()(x)
return x #output
The computation of F1 is wrong thoroughly!
In my opinion, the computation of F1 is wrong.
The output with "outputs > thres" are first set to be 1. Then, these "1" are also used for the following "outputs <= thres".
To my complete shock, the threshold is chosen by "the outputs of testing" by 10% proportion. In this way, your testing accuracy is fixed and can be predicted in advance to be 90% (F1 can be a bit biased, but it is also fixed and can be predicted in advance). Then, due to the above fault, your F1 float around 90%, as shown in your paper.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.