tanjascats / fingerprinting-toolbox Goto Github PK
View Code? Open in Web Editor NEWFingerprinting toolbox that allows embedding and extracting fingerprints into the relational data
License: Apache License 2.0
Fingerprinting toolbox that allows embedding and extracting fingerprints into the relational data
License: Apache License 2.0
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.