Giter VIP home page Giter VIP logo

sunjingnjupt / tcnn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kevinqiu1990/tcnn

0.0 0.0 0.0 70.1 MB

Transfer Convolutional Neural Network for Cross-Project Defect Prediction

Python 40.83% HTML 57.61% XSLT 0.87% FreeMarker 0.01% Groovy 0.01% Java 0.03% Ruby 0.01% XQuery 0.01% Scala 0.08% Tcl 0.01% CSS 0.19% Batchfile 0.06% Shell 0.08% Perl 0.04% Clean 0.01% JavaScript 0.07% C++ 0.01% Perl 6 0.01% Roff 0.09% Lex 0.03%

tcnn's Introduction

TCNN

Transfer Convolutional Neural Network for Cross-Project Defect Prediction.

TCNN aims to mine the transferable semantic (deep-learning (DL)-generated) features for CPDP tasks. Specifically, our approach first parses the source file into integer vectors as the network inputs. Next, to obtain the TCNN model, a matching layer is added into convolutional neural network where the hidden representations of the source and target project-specific data are embedded into a reproducing kernel Hilbert space for distribution matching. By simultaneously minimizing classification error and distribution divergence between projects, the constructed TCNN could extract the transferable DL-generated features. Finally, without losing the information contained in handcrafted features, we combine them with transferable DL-generated features to form the joint features for CPDP performing.

Build running environment

  1. Anaconda python 3.6 version (https://www.anaconda.com)

  2. Pytorch 0.4.1 (https://pytorch.org)

Demo

After environment building, please run following file:

  1. runTra.py is used to perform traditional methods.

  2. runCNN.m is used for CNN/DPDBN performing.

  3. runDBN.m is used for DBN/DPDBN performing.

  4. runTCNN.m is used for TCNN/DPTCNN performing.

Contacts

If any issues, please feel free to contact the author.

Author Name: Kevin Qiu

Author Email: [email protected]

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.