Coder Social home page Coder Social logo

ethan-keller / fct-gan Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 501 KB

The first GAN-based tabular data synthesizer integrating the Fourier Neural Operator for global dependency imitation

Jupyter Notebook 10.76% Python 89.24%
tudelft-cse-research-project fourier-neural-operator generative-adversarial-network

fct-gan's Introduction

FCT-GAN

FCT-GAN is the first GAN-based tabular data synthesizer integrating the Fourier Neural Operator to improve global dependency imitation. This repository contains the source code for FCT-GAN, and an example dataset called Adult. Additionally, two Jupyter notebooks have been added to this repository. The first notebook will run FCT-GAN on the Adult dataset. The second one plots the individual losses to evaluate the training process.

Prerequisites

The required python packages:

numpy
torch
pandas
sklearn
dython==0.6.4.post1
scipy

Example Jupyter notebooks

Adult notebook

Experiment_Script_Adult.ipynb is an example Jupyter notebook to train FCT-GAN on the Adult dataset. The dataset is included in the Real_Datasets directory. The evaluation code is also provided.

Loss notebook

plot_losses.ipynb is an example Jupyter notebook to plot losses. If you want to plot losses during training, uncomment lines 586 to 597 in model/synthesizer/fctgan_synthesizer.py. This will plot individual losses after every epoch.

Large datasets

If your dataset has a large number of columns, you may encounter the problem that the current code cannot encode all of your data. What you can do is change lines 404 and 411 in model/synthesizer/fctgan_synthesizer.py:

sides = [4, 8, 16, 24, 32]

sides is the side size of an embedded image in FCT-GAN. You can enlarge the list as shown below to accept larger datasets:

# sides = [4, 8, 16, 24, 32]

# enlarged sides
sides = [4, 8, 16, 24, 32, 64]

# or even larger
sides = [4, 8, 16, 24, 32, 64, 128]

Affiliation

This research is part of the Research Project coordinated by TU Delft

fct-gan's People

Contributors

ethan-keller avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.