Coder Social home page Coder Social logo

manip-ml's Introduction

manip-ml

Code for the IEEE S&P 2018 paper 'Manipulating Machine Learning: Poisoning Attacks and Countermeasures for Regression Learning'

manip-ml's People

Contributors

jagielski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

manip-ml's Issues

Attribute error colmap not defined

for initit in range(args.numinit):
    poisx,poisy = init(trainx,trainy,int(args.trainct*totprop/(1-totprop)+0.5))
    clf, _ = genpoiser.learn_model(np.concatenate((trainx,poisx),axis=0),trainy+poisy,None)
    err = genpoiser.computeError(clf)[0]
    print("Validation Error:", err)
    if err > besterr:
        bestpoisx, bestpoisy, besterr = np.copy(poisx), poisy[:], err
poisx, poisy = np.matrix(bestpoisx), bestpoisy
poiser = types[args.model](trainx, trainy, testx, testy, validx, validy,\
                           args.eta, args.beta, args.sigma, args.epsilon,\
                           args.multiproc, trainfile, resfile,\
                           args.objective, args.optimizey, colmap)

Sir with respect, i have implemented your code but there raised an issue after visualisation was set to true for visualising the dataset i.e the global "colmap" is triggering error which state that it was not defined. I am unable to trace it where it be place. Please kindly share your suggestions.
With rgrd
Tiken

question about startup

hi,I tried to run the code and rebuild the experiment, where should I get start firstly?

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.