Giter Site home page Giter Site logo

tanjascats / fingerprinting-toolbox Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 3.0 150.21 MB

Fingerprinting toolbox that allows embedding and extracting fingerprints into the relational data

License: Apache License 2.0

Python 2.38% Jupyter Notebook 97.62%

fingerprinting-toolbox's People

Contributors

martinweise avatar tanjascats avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

fingerprinting-toolbox's Issues

float attributes raise a TypeError

When trying the universal scheme insertion (fingerprinted_data_weighted = scheme.insertion(main_X, secret_key=secret_key, recipient_id=recipient_id, attributes_weights=rf_model.feature_importances_)) I get the following error:

Traceback (most recent call last):
  File "run.py", line 240, in <module>
    main()
  File "run.py", line 181, in main
    fingerprinted_data_weighted = scheme.insertion(main_X, secret_key=secret_key, recipient_id=recipient_id, attributes_weights=rf_model.feature_importances_)
  File "~/fingerprinting-toolbox/scheme/_universal.py", line 158, in insertion
    marked_attribute = set_bit(attribute_val, bit_idx, mark_bit)
  File "~/fingerprinting-toolbox/utils.py", line 87, in set_bit
    val = val & mask
TypeError: unsupported operand type(s) for &: 'numpy.float64' and 'int'

To reproduce the error use the Bank_Personal_Loan_Modelling.csv dataset (https://www.kaggle.com/krantiswalke/bank-personal-loan-modelling-supervised-learning). The problem happens exactly with the 'CCAvg' attribute (type float) and is resolved if the latter is excluded.

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.