Git Product home page Git Product logo

fewsome's People

Contributors

niamhbelton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

aytek03

fewsome'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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.