Git Product home page Git Product logo

Comments (6)

fjxmlzn avatar fjxmlzn commented on July 29, 2024

This is the code snippet is here

# After GAN is trained

# Load the final checkpoint
gan.load()

# train_data_feature, train_data_attribute are loaded from https://github.com/fjxmlzn/DoppelGANger/blob/e732a4d077ba1504e6e401df9c2d1048c8efb2a9/example_training/gan_task.py#L20-L45 
d_train = gan.discriminate_from(
    [train_data_feature], [train_data_attribute])

# test_data_feature, test_data_attribute are loaded by the same way, except passing flag="test" to load_data
d_test = gan.discriminate_from(
    [test_data_feature], [test_data_attribute])

num_train = train_data_feature.shape[0]

sort_id = np.argsort(list(d_train) + list(d_test))[::-1]

acc = np.where(sort_id[0: num_train] < num_train)[0].shape[0] / float(num_train)

from doppelganger.

fxctydfty avatar fxctydfty commented on July 29, 2024

What is "acc" meaning here?

from doppelganger.

fjxmlzn avatar fjxmlzn commented on July 29, 2024

The attack accuracy, y-axis of Figure 15

from doppelganger.

fxctydfty avatar fxctydfty commented on July 29, 2024

Thanks.

from doppelganger.

fxctydfty avatar fxctydfty commented on July 29, 2024

Hey,
I need some help.
I understand from here # train_data_feature, train_data_attribute are loaded from https://github.com/fjxmlzn/DoppelGANger/blob/e732a4d077ba1504e6e401df9c2d1048c8efb2a9/example_training/gan_task.py#L20-L45
Could you please explain little bit before that like, "load and call DoppleGANger".
Thanks for your help.

from doppelganger.

fjxmlzn avatar fjxmlzn commented on July 29, 2024

What I meant is that you can just append these codes at the end of https://github.com/fjxmlzn/DoppelGANger/blob/master/example_training/gan_task.py, where DoppelGANger is trained

from doppelganger.

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.