GithubHelp home page GithubHelp logo

Comments (7)

dgl547437235 avatar dgl547437235 commented on August 20, 2024 2

@hqabcxyxz ,你好,我的最大编码距离是GNet在所有训练过的normal数据集上得出的,你可以试着把编码损失的权重增大,这么做可以有效提高异常样本的编码距离

from ganomaly.

Johncheng1 avatar Johncheng1 commented on August 20, 2024

can you share your test code?Thank you! @dgl547437235

from ganomaly.

dgl547437235 avatar dgl547437235 commented on August 20, 2024

@Johncheng1 ,由于是业务代码,所以不能共享,下面是我的逻辑,我训练的正样本集是A,测试的正样本集是B,测试的负样本集是C,我每训练一定的批次,就去计算在A上的最大编码距离,然后用该距离去测试B和C,超过最大编码距离则判定为NG

from ganomaly.

Johncheng1 avatar Johncheng1 commented on August 20, 2024

from ganomaly.

dgl547437235 avatar dgl547437235 commented on August 20, 2024

@ Johncheng1,效果不错,真阳率和真阴率可以同时达到100%

from ganomaly.

Baitom avatar Baitom commented on August 20, 2024

@ Johncheng1,效果不错,真阳率和真阴率可以同时达到100%

请问自己建立的模型出现这种情况该如何处理:G模型的损失值在逐步下降,而D模型的损失值基本不怎么变换,且不能区分出正样本和负样本(正样本和负样本的距离值的分布基本吻合)

from ganomaly.

captainfffsama avatar captainfffsama commented on August 20, 2024

@dgl547437235 你好,我想请教以下您这里用的最大编码距离是什么距离?
因为代码的test里写的是用欧式距离,但是论文里分数用的L1范数。。。我将0设置为alnomaly,在mnist上训练了15轮之后,测试的时候发现NetG对0的重建效果也很好= =|||,分数无论用L1范数还是L2范数似乎都不能很好的找个阈值来区分正常和异常样本。

from ganomaly.

Related Issues (20)

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.